Function at 0x1017ee9
Capabilities:
Start http server

Disassembly:
push 0x47c
mov eax, 0x1026375
call fcn.0100a0f9
mov eax, dword [ebp + 8]
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 0x43c], eax
cmp dword [esi + 0x2424], ecx
jne 0x1017f2e
push ecx
push 0x54f
push 0x1004cb4
push 0x320
push 0x10045e8
call fcn.0100a7b1
xor eax, eax
jmp 0x10184e6
cmp eax, ecx
jne 0x1017f44
push ecx
push 0x54f
push 0x1004cac
push 0x321
jmp 0x1017f1d
mov eax, dword [0x102b00c]
mov edi, 0x102b00c
mov ebx, 0x200000
cmp eax, edi
je 0x1017f8f
test dword [eax + 0x1c], ebx
je 0x1017f74
push esi
push 0x10045d4
push 0x21
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019984
mov eax, dword [0x102b00c]
cmp eax, edi
je 0x1017f8f
test dword [eax + 0x1c], ebx
je 0x1017f8f
push 0x10045d4
push 0x22
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100904c
xor edi, edi
xor eax, eax
inc edi
mov dword [ebp - 0x444], eax
mov dword [ebp - 0x44c], eax
cmp dword [esi + 0x2488], eax
jne 0x1017fb7
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.01013299
mov edi, eax
lea ecx, [ebp - 0x464]
call fcn.0100fddb
and dword [ebp - 4], 0
test edi, edi
je 0x1018121
cmp dword [esi + 0x2470], 0
je 0x1018121
push dword [ebp - 0x43c]
mov ecx, dword [esi + 0x2428]
lea eax, [ebp - 0x464]
push eax
call fcn.0101f246
mov edi, eax
test edi, edi
jne 0x1018012
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x43c]
mov ecx, esi
push eax
call fcn.01012e3b
jmp 0x1018121
cmp dword [esi + 0x2488], 0
je 0x1018031
lea eax, [ebp - 0x464]
push eax
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.01017b0b
mov edi, eax
test edi, edi
je 0x1018121
lea eax, [ebp - 0x464]
push eax
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.01013852
mov edi, eax
test edi, edi
je 0x1018121
xor eax, eax
inc eax
mov word [ebp - 0x440], ax
xor eax, eax
push eax
push 2
mov word [ebp - 0x43e], ax
push dword [ebp - 0x440]
call dword [sym.imp.HTTPAPI.dll_HttpInitialize]
test eax, eax
jne 0x10180ac
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x10180a0
test dword [eax + 0x1c], ebx
je 0x10180a0
push 0x10045d4
push 0x23
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100904c
mov dword [ebp - 0x444], 1
jmp 0x101810e
cmp eax, 5
jne 0x10180e5
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x10180d8
test dword [eax + 0x1c], 0x400000
je 0x10180d8
push 0x10045d4
push 0x24
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100904c
mov ecx, dword [ebp - 0x43c]
mov eax, dword [ecx]
call dword [eax + 0x10]
jmp 0x101810c
mov ecx, dword [ebp - 0x43c]
cmp eax, 0xe
jne 0x10180f7
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x101810c
mov edx, dword [ecx]
push eax
push 0x1004b20
push 0x4033c360
push eax
push ecx
call dword [edx + 0x1c]
add esp, 0x14
xor edi, edi
test edi, edi
je 0x1018121
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.0101585b
mov edi, eax
lea ecx, [ebp - 0x438]
call fcn.0101314d
mov byte [ebp - 4], 1
xor ebx, ebx
cmp edi, ebx
je 0x1018188
cmp dword [esi + 0x2478], ebx
je 0x1018188
push dword [ebp - 0x43c]
mov ecx, dword [esi + 0x2428]
lea eax, [ebp - 0x438]
push eax
call fcn.0101f1b2
mov edi, eax
cmp edi, ebx
jne 0x1018172
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x43c]
mov ecx, esi
push eax
call fcn.01012e3b
jmp 0x1018188
lea eax, [ebp - 0x438]
push eax
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.01013d19
mov edi, eax
cmp dword [esi + 0x247c], ebx
je 0x101824a
lea ecx, [ebp - 0x228]
mov dword [esi + 0x2484], 1
call fcn.01013097
mov byte [ebp - 4], 2
cmp edi, ebx
je 0x101823b
push dword [ebp - 0x43c]
mov ecx, dword [esi + 0x2428]
lea eax, [ebp - 0x228]
push eax
call fcn.0101f0c5
mov edi, eax
cmp edi, ebx
jne 0x10181e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x43c]
mov ecx, esi
push eax
call fcn.01012e3b
jmp 0x101823b
cmp dword [esi + 0x2488], ebx
je 0x1018207
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.01012dda
mov edi, eax
cmp edi, ebx
je 0x101823b
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.01013aca
mov edi, eax
cmp edi, ebx
je 0x101823b
lea eax, [ebp - 0x44c]
push eax
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.01014d2b
mov edi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x228]
call fcn.010130f2
mov eax, dword [esi + 0x2488]
xor ebx, ebx
mov dword [ebp - 0x448], ebx
mov dword [ebp - 0x440], ebx
cmp eax, ebx
je 0x101831c
cmp dword [esi + 0x2470], ebx
je 0x101829e
cmp edi, ebx
je 0x1018336
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.01014b1d
mov edi, eax
test edi, edi
je 0x1018336
xor eax, eax
inc eax
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x448], eax
jmp 0x101831c
cmp eax, ebx
je 0x101831c
cmp dword [esi + 0x247c], ebx
je 0x10182d0
cmp edi, ebx
je 0x1018336
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.010143ce
mov edi, eax
test edi, edi
je 0x1018336
xor ebx, ebx
inc ebx
mov dword [ebp - 0x440], ebx
jmp 0x101831c
cmp eax, ebx
je 0x101831c
cmp dword [esi + 0x2478], ebx
je 0x10182ef
cmp edi, ebx
je 0x1018336
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.01014679
jmp 0x101830c
cmp eax, ebx
je 0x101831c
cmp dword [esi + 0x2480], ebx
je 0x101831c
cmp edi, ebx
je 0x1018336
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.01014924
mov edi, eax
test edi, edi
je 0x1018336
mov dword [ebp - 0x440], 1
test edi, edi
je 0x1018336
lea eax, [ebp - 0x440]
push eax
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.010179aa
mov edi, eax
cmp dword [esi + 0x247c], 0
je 0x10183cc
test edi, edi
jne 0x10183cc
cmp dword [ebp - 0x44c], edi
je 0x101835a
mov ecx, esi
call fcn.01013466
test ebx, ebx
je 0x10183cc
push 1
lea ecx, [ebp - 0x488]
call fcn.0100e3af
mov byte [ebp - 4], 3
push 1
push 1
lea eax, [ebp - 0x488]
push eax
mov ecx, esi
call fcn.01013f12
test eax, eax
jne 0x10183bd
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x10183bd
test dword [eax + 0x1c], 0x400000
je 0x10183bd
lea ecx, [ebp - 0x488]
call fcn.01009ad7
push eax
mov eax, dword [0x102b00c]
push 0x10045d4
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019984
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x488]
call fcn.0100e3a3
cmp dword [esi + 0x2470], 0
je 0x10184aa
mov ecx, esi
test edi, edi
je 0x10183ed
lea eax, [ebp - 0x464]
push eax
call fcn.01016abe
jmp 0x1018469
call fcn.01016bbc
cmp dword [ebp - 0x448], 0
je 0x1018469
push 1
lea ecx, [ebp - 0x488]
call fcn.0100e3af
mov byte [ebp - 4], 4
push 1
push 1
lea eax, [ebp - 0x488]
push eax
mov ecx, esi
call fcn.01016668
test eax, eax
jne 0x101845a
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x101845a
test dword [eax + 0x1c], 0x400000
je 0x101845a
lea ecx, [ebp - 0x488]
call fcn.01009ad7
push eax
mov eax, dword [0x102b00c]
push 0x10045d4
push 0x26
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019984
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x488]
call fcn.0100e3a3
cmp dword [ebp - 0x444], 0
je 0x10184aa
push 0
push 2
call dword [sym.imp.HTTPAPI.dll_HttpTerminate]
test eax, eax
je 0x10184aa
mov ecx, dword [0x102b00c]
cmp ecx, 0x102b00c
je 0x10184aa
test dword [ecx + 0x1c], 0x400000
je 0x10184aa
push eax
push 0x10045d4
push 0x27
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01019984
test edi, edi
je 0x10184c6
cmp dword [ebp - 0x440], 0
je 0x10184c6
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.0101af7a
mov edi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x438]
call fcn.010131a2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x464]
call fcn.0100fe23
mov eax, edi
call fcn.0100a18b
ret 4