Function at 0x1016768
Capabilities:
Start http server

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1026369
mov eax, dword fs:[0]
push eax
mov eax, 0x2434
call fcn.01024c70
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 0x10167cc
push esi
push 0x54f
push 0x1004bd8
push 0x62c
push 0x1004668
call fcn.0100a8b1
xor eax, eax
jmp 0x1016b9d
cmp ebx, esi
jne 0x10167e2
push esi
push 0x54f
push 0x1004bcc
push 0x62d
jmp 0x10167bb
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x101680a
test dword [eax + 0x1c], 0x200000
je 0x101680a
push edi
push 0x1004658
push 0x3f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019a84
mov ecx, dword [edi + 0x2428]
lea eax, [ebp - 0x2424]
push eax
push ebx
mov dword [ebp - 0x2424], esi
call fcn.0101bc25
test eax, eax
je 0x10167c5
cmp dword [ebp - 0x2424], esi
je 0x1016876
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x1016856
test dword [eax + 0x1c], 0x400000
je 0x1016856
push 0x1004658
push 0x40
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100914c
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 0x10167c5
xor eax, eax
inc eax
mov dword [ebp - 0x2414], eax
mov dword [ebp - 0x2420], esi
cmp dword [ebp + 0xc], esi
jne 0x1016b56
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 0x10168bd
mov dword [ebp - 0x2420], 1
jmp 0x10168f4
cmp eax, 5
jne 0x10168cb
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10]
jmp 0x10168ee
cmp eax, 0xe
jne 0x10168d9
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
jmp 0x10168ee
mov ecx, dword [ebx]
push eax
push 0x1004bac
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.0100fedb
mov dword [ebp - 4], esi
cmp dword [ebp - 0x2414], esi
je 0x1016a59
mov ecx, dword [edi + 0x2428]
push ebx
lea eax, [ebp - 0x2440]
push eax
call fcn.0101f340
mov dword [ebp - 0x2414], eax
cmp eax, esi
je 0x10169ef
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.0101e521
mov dword [ebp - 0x2414], eax
test eax, eax
je 0x10169ed
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.0101e521
mov dword [ebp - 0x2414], eax
test eax, eax
je 0x10169ed
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.0101e521
mov dword [ebp - 0x2414], eax
test eax, eax
je 0x10169ed
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.0101e521
mov dword [ebp - 0x2414], eax
test eax, eax
jne 0x1016a08
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
mov ecx, edi
call fcn.01012f3b
cmp dword [ebp - 0x2414], esi
je 0x1016a59
jmp 0x1016a0a
xor esi, esi
mov edx, 0x1001c68
lea eax, [ebp - 0x2410]
mov cx, word [eax]
cmp cx, word [edx]
jne 0x1016a3b
cmp cx, si
je 0x1016a37
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x1016a3b
add eax, 4
add edx, 4
cmp cx, si
jne 0x1016a15
xor eax, eax
jmp 0x1016a40
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
je 0x1016a59
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x2440]
push eax
mov ecx, edi
call fcn.0101312f
mov dword [ebp - 0x241c], esi
mov byte [ebp - 4], 2
cmp dword [ebp - 0x2414], esi
je 0x1016af9
push esi
lea eax, [ebp - 0x1c10]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x1410]
push eax
push ebx
call fcn.0100c9c4
push eax
lea ecx, [ebp - 0x241c]
call fcn.0101434f
cmp dword [ebp - 0x241c], esi
jne 0x1016aac
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
mov dword [ebp - 0x2414], esi
cmp dword [ebp - 0x2414], esi
je 0x1016af9
lea eax, [ebp - 0x2428]
push eax
push dword [ebp - 0x241c]
lea eax, [ebp - 0x2440]
push eax
push ebx
mov ecx, edi
call fcn.01016399
test eax, eax
je 0x1016af9
cmp dword [ebp - 0x2428], esi
jne 0x1016af9
push dword [ebp - 0x241c]
mov ecx, edi
push ebx
call fcn.010166cb
test eax, eax
jne 0x1016af9
push dword [ebp - 0x241c]
call fcn.010104d0
cmp dword [ebp - 0x2420], esi
je 0x1016b38
push esi
push 2
call dword [sym.imp.HTTPAPI.dll_HttpTerminate]
cmp eax, esi
je 0x1016b38
mov ecx, dword [0x102b00c]
cmp ecx, 0x102b00c
je 0x1016b38
test dword [ecx + 0x1c], 0x400000
je 0x1016b38
push eax
push 0x1004658
push 0x41
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01019a84
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x241c]
call fcn.0100c61b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2440]
call fcn.0100ff23
lea eax, [ebp - 0xc10]
push eax
push ebx
mov ecx, edi
call fcn.01013657
cmp eax, esi
je 0x1016b89
push 1
lea eax, [ebp - 0xc10]
push eax
push ebx
call fcn.0101af2d
cmp eax, esi
je 0x1016b89
cmp dword [ebp + 0x10], esi
je 0x1016b89
push ebx
mov ecx, edi
call fcn.0101b07a
cmp dword [ebp - 0x2414], esi
je 0x1016b97
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.0100a16f
leave
ret 0xc