Function at 0x10168c9
Capabilities:
Start http server

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10264bb
mov eax, dword fs:[0]
push eax
mov eax, 0x2434
call fcn.01024da0
mov eax, dword [0x102b01c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x2424], esi
jne 0x101692d
push esi
push 0x54f
push 0x1004b28
push 0x62c
push 0x10045b8
call fcn.0100a7c1
xor eax, eax
jmp 0x1016cfe
cmp ebx, esi
jne 0x1016943
push esi
push 0x54f
push 0x1004b1c
push 0x62d
jmp 0x101691c
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x101696b
test dword [eax + 0x1c], 0x200000
je 0x101696b
push edi
push 0x10045a8
push 0x3f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a936
mov ecx, dword [edi + 0x2428]
lea eax, [ebp - 0x2424]
push eax
push ebx
mov dword [ebp - 0x2424], esi
call fcn.0101bd5c
test eax, eax
je 0x1016926
cmp dword [ebp - 0x2424], esi
je 0x10169d7
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x10169b7
test dword [eax + 0x1c], 0x400000
je 0x10169b7
push 0x10045a8
push 0x40
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100905c
mov eax, dword [ebx]
push 0x4033c413
mov esi, 0x8033808a
push esi
push ebx
call dword [eax + 0x1c]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1016926
xor eax, eax
inc eax
mov dword [ebp - 0x2414], eax
mov dword [ebp - 0x2420], esi
cmp dword [ebp + 0xc], esi
jne 0x1016cb7
mov word [ebp - 0x2418], ax
push esi
xor eax, eax
push 2
mov word [ebp - 0x2416], ax
push dword [ebp - 0x2418]
call dword [sym.imp.HTTPAPI.dll_HttpInitialize]
cmp eax, esi
jne 0x1016a1e
mov dword [ebp - 0x2420], 1
jmp 0x1016a55
cmp eax, 5
jne 0x1016a2c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10]
jmp 0x1016a4f
cmp eax, 0xe
jne 0x1016a3a
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
jmp 0x1016a4f
mov ecx, dword [ebx]
push eax
push 0x1004afc
push 0x4033c360
push eax
push ebx
call dword [ecx + 0x1c]
add esp, 0x14
mov dword [ebp - 0x2414], esi
lea ecx, [ebp - 0x2440]
mov dword [ebp - 0x2418], esi
call fcn.01010069
mov dword [ebp - 4], esi
cmp dword [ebp - 0x2414], esi
je 0x1016bba
mov ecx, dword [edi + 0x2428]
push ebx
lea eax, [ebp - 0x2440]
push eax
call fcn.0101f477
mov dword [ebp - 0x2414], eax
cmp eax, esi
je 0x1016b50
mov ecx, dword [edi + 0x2428]
push esi
lea eax, [ebp - 0x2418]
push eax
lea eax, [ebp - 0x1410]
push eax
mov esi, 0x400
push esi
push 0xbb9
push ebx
call fcn.0101e658
mov dword [ebp - 0x2414], eax
test eax, eax
je 0x1016b4e
mov ecx, dword [edi + 0x2428]
push 0
lea eax, [ebp - 0x2418]
push eax
lea eax, [ebp - 0x810]
push eax
push esi
push 0xbba
push ebx
call fcn.0101e658
mov dword [ebp - 0x2414], eax
test eax, eax
je 0x1016b4e
mov ecx, dword [edi + 0x2428]
push 0
lea eax, [ebp - 0x2418]
push eax
lea eax, [ebp - 0x1c10]
push eax
push esi
push 0xbbd
push ebx
call fcn.0101e658
mov dword [ebp - 0x2414], eax
test eax, eax
je 0x1016b4e
mov ecx, dword [edi + 0x2428]
push 0
lea eax, [ebp - 0x2418]
push eax
lea eax, [ebp - 0x2410]
push eax
push esi
push 0xbbe
push ebx
call fcn.0101e658
mov dword [ebp - 0x2414], eax
test eax, eax
jne 0x1016b69
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
mov ecx, edi
call fcn.01013104
cmp dword [ebp - 0x2414], esi
je 0x1016bba
jmp 0x1016b6b
xor esi, esi
mov edx, 0x1001c58
lea eax, [ebp - 0x2410]
mov cx, word [eax]
cmp cx, word [edx]
jne 0x1016b9c
cmp cx, si
je 0x1016b98
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x1016b9c
add eax, 4
add edx, 4
cmp cx, si
jne 0x1016b76
xor eax, eax
jmp 0x1016ba1
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
je 0x1016bba
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x2440]
push eax
mov ecx, edi
call fcn.010132f8
mov dword [ebp - 0x241c], esi
mov byte [ebp - 4], 2
cmp dword [ebp - 0x2414], esi
je 0x1016c5a
push esi
lea eax, [ebp - 0x1c10]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x1410]
push eax
push ebx
call fcn.0100c9df
push eax
lea ecx, [ebp - 0x241c]
call fcn.0100c5d6
cmp dword [ebp - 0x241c], esi
jne 0x1016c0d
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
mov dword [ebp - 0x2414], esi
cmp dword [ebp - 0x2414], esi
je 0x1016c5a
lea eax, [ebp - 0x2428]
push eax
push dword [ebp - 0x241c]
lea eax, [ebp - 0x2440]
push eax
push ebx
mov ecx, edi
call fcn.010164fa
test eax, eax
je 0x1016c5a
cmp dword [ebp - 0x2428], esi
jne 0x1016c5a
push dword [ebp - 0x241c]
mov ecx, edi
push ebx
call fcn.0101682c
test eax, eax
jne 0x1016c5a
push dword [ebp - 0x241c]
call fcn.0101068c
cmp dword [ebp - 0x2420], esi
je 0x1016c99
push esi
push 2
call dword [sym.imp.HTTPAPI.dll_HttpTerminate]
cmp eax, esi
je 0x1016c99
mov ecx, dword [0x102b00c]
cmp ecx, 0x102b00c
je 0x1016c99
test dword [ecx + 0x1c], 0x400000
je 0x1016c99
push eax
push 0x10045a8
push 0x41
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0100a936
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x241c]
call fcn.0100c5c0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2440]
call fcn.010100b1
lea eax, [ebp - 0xc10]
push eax
push ebx
mov ecx, edi
call fcn.01013820
cmp eax, esi
je 0x1016cea
push 1
lea eax, [ebp - 0xc10]
push eax
push ebx
call fcn.0101b064
cmp eax, esi
je 0x1016cea
cmp dword [ebp + 0x10], esi
je 0x1016cea
push ebx
mov ecx, edi
call fcn.0101b1b1
cmp dword [ebp - 0x2414], esi
je 0x1016cf8
mov dword [ebp - 0x2414], eax
mov eax, dword [ebp - 0x2414]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0100a07f
leave
ret 0xc