Function at 0x1017fe9
Capabilities:
Start http server

Disassembly:
push 0x47c
mov eax, 0x1026465
call fcn.0100a1f7
mov eax, dword [ebp + 8]
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 0x43c], eax
cmp dword [esi + 0x2424], ecx
jne 0x101802e
push ecx
push 0x54f
push 0x1004d3c
push 0x320
push 0x1004668
call fcn.0100a8b1
xor eax, eax
jmp 0x10185e6
cmp eax, ecx
jne 0x1018044
push ecx
push 0x54f
push 0x1004d34
push 0x321
jmp 0x101801d
mov eax, dword [0x102b00c]
mov edi, 0x102b00c
mov ebx, 0x200000
cmp eax, edi
je 0x101808f
test dword [eax + 0x1c], ebx
je 0x1018074
push esi
push 0x1004658
push 0x21
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019a84
mov eax, dword [0x102b00c]
cmp eax, edi
je 0x101808f
test dword [eax + 0x1c], ebx
je 0x101808f
push 0x1004658
push 0x22
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100914c
xor edi, edi
xor eax, eax
inc edi
mov dword [ebp - 0x444], eax
mov dword [ebp - 0x44c], eax
cmp dword [esi + 0x2488], eax
jne 0x10180b7
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.01013399
mov edi, eax
lea ecx, [ebp - 0x464]
call fcn.0100fedb
and dword [ebp - 4], 0
test edi, edi
je 0x1018221
cmp dword [esi + 0x2470], 0
je 0x1018221
push dword [ebp - 0x43c]
mov ecx, dword [esi + 0x2428]
lea eax, [ebp - 0x464]
push eax
call fcn.0101f340
mov edi, eax
test edi, edi
jne 0x1018112
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x43c]
mov ecx, esi
push eax
call fcn.01012f3b
jmp 0x1018221
cmp dword [esi + 0x2488], 0
je 0x1018131
lea eax, [ebp - 0x464]
push eax
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.01017c0b
mov edi, eax
test edi, edi
je 0x1018221
lea eax, [ebp - 0x464]
push eax
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.01013952
mov edi, eax
test edi, edi
je 0x1018221
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 0x10181ac
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x10181a0
test dword [eax + 0x1c], ebx
je 0x10181a0
push 0x1004658
push 0x23
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100914c
mov dword [ebp - 0x444], 1
jmp 0x101820e
cmp eax, 5
jne 0x10181e5
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x10181d8
test dword [eax + 0x1c], 0x400000
je 0x10181d8
push 0x1004658
push 0x24
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100914c
mov ecx, dword [ebp - 0x43c]
mov eax, dword [ecx]
call dword [eax + 0x10]
jmp 0x101820c
mov ecx, dword [ebp - 0x43c]
cmp eax, 0xe
jne 0x10181f7
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x101820c
mov edx, dword [ecx]
push eax
push 0x1004bac
push 0x4033c360
push eax
push ecx
call dword [edx + 0x1c]
add esp, 0x14
xor edi, edi
test edi, edi
je 0x1018221
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.0101595b
mov edi, eax
lea ecx, [ebp - 0x438]
call fcn.0101324d
mov byte [ebp - 4], 1
xor ebx, ebx
cmp edi, ebx
je 0x1018288
cmp dword [esi + 0x2478], ebx
je 0x1018288
push dword [ebp - 0x43c]
mov ecx, dword [esi + 0x2428]
lea eax, [ebp - 0x438]
push eax
call fcn.0101f2ac
mov edi, eax
cmp edi, ebx
jne 0x1018272
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x43c]
mov ecx, esi
push eax
call fcn.01012f3b
jmp 0x1018288
lea eax, [ebp - 0x438]
push eax
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.01013e19
mov edi, eax
cmp dword [esi + 0x247c], ebx
je 0x101834a
lea ecx, [ebp - 0x228]
mov dword [esi + 0x2484], 1
call fcn.01013197
mov byte [ebp - 4], 2
cmp edi, ebx
je 0x101833b
push dword [ebp - 0x43c]
mov ecx, dword [esi + 0x2428]
lea eax, [ebp - 0x228]
push eax
call fcn.0101f1bf
mov edi, eax
cmp edi, ebx
jne 0x10182e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x43c]
mov ecx, esi
push eax
call fcn.01012f3b
jmp 0x101833b
cmp dword [esi + 0x2488], ebx
je 0x1018307
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.01012eda
mov edi, eax
cmp edi, ebx
je 0x101833b
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.01013bca
mov edi, eax
cmp edi, ebx
je 0x101833b
lea eax, [ebp - 0x44c]
push eax
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.01014e2b
mov edi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x228]
call fcn.010131f2
mov eax, dword [esi + 0x2488]
xor ebx, ebx
mov dword [ebp - 0x448], ebx
mov dword [ebp - 0x440], ebx
cmp eax, ebx
je 0x101841c
cmp dword [esi + 0x2470], ebx
je 0x101839e
cmp edi, ebx
je 0x1018436
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.01014c1d
mov edi, eax
test edi, edi
je 0x1018436
xor eax, eax
inc eax
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x448], eax
jmp 0x101841c
cmp eax, ebx
je 0x101841c
cmp dword [esi + 0x247c], ebx
je 0x10183d0
cmp edi, ebx
je 0x1018436
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.010144ce
mov edi, eax
test edi, edi
je 0x1018436
xor ebx, ebx
inc ebx
mov dword [ebp - 0x440], ebx
jmp 0x101841c
cmp eax, ebx
je 0x101841c
cmp dword [esi + 0x2478], ebx
je 0x10183ef
cmp edi, ebx
je 0x1018436
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.01014779
jmp 0x101840c
cmp eax, ebx
je 0x101841c
cmp dword [esi + 0x2480], ebx
je 0x101841c
cmp edi, ebx
je 0x1018436
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.01014a24
mov edi, eax
test edi, edi
je 0x1018436
mov dword [ebp - 0x440], 1
test edi, edi
je 0x1018436
lea eax, [ebp - 0x440]
push eax
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.01017aaa
mov edi, eax
cmp dword [esi + 0x247c], 0
je 0x10184cc
test edi, edi
jne 0x10184cc
cmp dword [ebp - 0x44c], edi
je 0x101845a
mov ecx, esi
call fcn.01013566
test ebx, ebx
je 0x10184cc
push 1
lea ecx, [ebp - 0x488]
call fcn.0100e4af
mov byte [ebp - 4], 3
push 1
push 1
lea eax, [ebp - 0x488]
push eax
mov ecx, esi
call fcn.01014012
test eax, eax
jne 0x10184bd
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x10184bd
test dword [eax + 0x1c], 0x400000
je 0x10184bd
lea ecx, [ebp - 0x488]
call fcn.01009bd7
push eax
mov eax, dword [0x102b00c]
push 0x1004658
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019a84
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x488]
call fcn.0100e4a3
cmp dword [esi + 0x2470], 0
je 0x10185aa
mov ecx, esi
test edi, edi
je 0x10184ed
lea eax, [ebp - 0x464]
push eax
call fcn.01016bbe
jmp 0x1018569
call fcn.01016cbc
cmp dword [ebp - 0x448], 0
je 0x1018569
push 1
lea ecx, [ebp - 0x488]
call fcn.0100e4af
mov byte [ebp - 4], 4
push 1
push 1
lea eax, [ebp - 0x488]
push eax
mov ecx, esi
call fcn.01016768
test eax, eax
jne 0x101855a
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x101855a
test dword [eax + 0x1c], 0x400000
je 0x101855a
lea ecx, [ebp - 0x488]
call fcn.01009bd7
push eax
mov eax, dword [0x102b00c]
push 0x1004658
push 0x26
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019a84
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x488]
call fcn.0100e4a3
cmp dword [ebp - 0x444], 0
je 0x10185aa
push 0
push 2
call dword [sym.imp.HTTPAPI.dll_HttpTerminate]
test eax, eax
je 0x10185aa
mov ecx, dword [0x102b00c]
cmp ecx, 0x102b00c
je 0x10185aa
test dword [ecx + 0x1c], 0x400000
je 0x10185aa
push eax
push 0x1004658
push 0x27
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01019a84
test edi, edi
je 0x10185c6
cmp dword [ebp - 0x440], 0
je 0x10185c6
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.0101b07a
mov edi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x438]
call fcn.010132a2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x464]
call fcn.0100ff23
mov eax, edi
call fcn.0100a289
ret 4