Function at 0x101814a
Capabilities:
Start http server

Disassembly:
push 0x47c
mov eax, 0x10265b7
call fcn.0100a107
mov eax, dword [ebp + 8]
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 0x43c], eax
cmp dword [esi + 0x2424], ecx
jne 0x101818f
push ecx
push 0x54f
push 0x1004c94
push 0x320
push 0x10045b8
call fcn.0100a7c1
xor eax, eax
jmp 0x1018747
cmp eax, ecx
jne 0x10181a5
push ecx
push 0x54f
push 0x1004c8c
push 0x321
jmp 0x101817e
mov eax, dword [0x102b00c]
mov edi, 0x102b00c
mov ebx, 0x200000
cmp eax, edi
je 0x10181f0
test dword [eax + 0x1c], ebx
je 0x10181d5
push esi
push 0x10045a8
push 0x21
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a936
mov eax, dword [0x102b00c]
cmp eax, edi
je 0x10181f0
test dword [eax + 0x1c], ebx
je 0x10181f0
push 0x10045a8
push 0x22
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100905c
xor edi, edi
xor eax, eax
inc edi
mov dword [ebp - 0x444], eax
mov dword [ebp - 0x44c], eax
cmp dword [esi + 0x2488], eax
jne 0x1018218
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.01013562
mov edi, eax
lea ecx, [ebp - 0x464]
call fcn.01010069
and dword [ebp - 4], 0
test edi, edi
je 0x1018382
cmp dword [esi + 0x2470], 0
je 0x1018382
push dword [ebp - 0x43c]
mov ecx, dword [esi + 0x2428]
lea eax, [ebp - 0x464]
push eax
call fcn.0101f477
mov edi, eax
test edi, edi
jne 0x1018273
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x43c]
mov ecx, esi
push eax
call fcn.01013104
jmp 0x1018382
cmp dword [esi + 0x2488], 0
je 0x1018292
lea eax, [ebp - 0x464]
push eax
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.01017d6c
mov edi, eax
test edi, edi
je 0x1018382
lea eax, [ebp - 0x464]
push eax
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.01013b1b
mov edi, eax
test edi, edi
je 0x1018382
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 0x101830d
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x1018301
test dword [eax + 0x1c], ebx
je 0x1018301
push 0x10045a8
push 0x23
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100905c
mov dword [ebp - 0x444], 1
jmp 0x101836f
cmp eax, 5
jne 0x1018346
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x1018339
test dword [eax + 0x1c], 0x400000
je 0x1018339
push 0x10045a8
push 0x24
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100905c
mov ecx, dword [ebp - 0x43c]
mov eax, dword [ecx]
call dword [eax + 0x10]
jmp 0x101836d
mov ecx, dword [ebp - 0x43c]
cmp eax, 0xe
jne 0x1018358
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x101836d
mov edx, dword [ecx]
push eax
push 0x1004afc
push 0x4033c360
push eax
push ecx
call dword [edx + 0x1c]
add esp, 0x14
xor edi, edi
test edi, edi
je 0x1018382
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.01015abc
mov edi, eax
lea ecx, [ebp - 0x438]
call fcn.01013416
mov byte [ebp - 4], 1
xor ebx, ebx
cmp edi, ebx
je 0x10183e9
cmp dword [esi + 0x2478], ebx
je 0x10183e9
push dword [ebp - 0x43c]
mov ecx, dword [esi + 0x2428]
lea eax, [ebp - 0x438]
push eax
call fcn.0101f3e3
mov edi, eax
cmp edi, ebx
jne 0x10183d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x43c]
mov ecx, esi
push eax
call fcn.01013104
jmp 0x10183e9
lea eax, [ebp - 0x438]
push eax
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.01013fe2
mov edi, eax
cmp dword [esi + 0x247c], ebx
je 0x10184ab
lea ecx, [ebp - 0x228]
mov dword [esi + 0x2484], 1
call fcn.01013360
mov byte [ebp - 4], 2
cmp edi, ebx
je 0x101849c
push dword [ebp - 0x43c]
mov ecx, dword [esi + 0x2428]
lea eax, [ebp - 0x228]
push eax
call fcn.0101f2f6
mov edi, eax
cmp edi, ebx
jne 0x101844a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x43c]
mov ecx, esi
push eax
call fcn.01013104
jmp 0x101849c
cmp dword [esi + 0x2488], ebx
je 0x1018468
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.010130a3
mov edi, eax
cmp edi, ebx
je 0x101849c
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.01013d93
mov edi, eax
cmp edi, ebx
je 0x101849c
lea eax, [ebp - 0x44c]
push eax
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.01014fcb
mov edi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x228]
call fcn.010133bb
mov eax, dword [esi + 0x2488]
xor ebx, ebx
mov dword [ebp - 0x448], ebx
mov dword [ebp - 0x440], ebx
cmp eax, ebx
je 0x101857d
cmp dword [esi + 0x2470], ebx
je 0x10184ff
cmp edi, ebx
je 0x1018597
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.01014dbd
mov edi, eax
test edi, edi
je 0x1018597
xor eax, eax
inc eax
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x448], eax
jmp 0x101857d
cmp eax, ebx
je 0x101857d
cmp dword [esi + 0x247c], ebx
je 0x1018531
cmp edi, ebx
je 0x1018597
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.0101466e
mov edi, eax
test edi, edi
je 0x1018597
xor ebx, ebx
inc ebx
mov dword [ebp - 0x440], ebx
jmp 0x101857d
cmp eax, ebx
je 0x101857d
cmp dword [esi + 0x2478], ebx
je 0x1018550
cmp edi, ebx
je 0x1018597
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.01014919
jmp 0x101856d
cmp eax, ebx
je 0x101857d
cmp dword [esi + 0x2480], ebx
je 0x101857d
cmp edi, ebx
je 0x1018597
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.01014bc4
mov edi, eax
test edi, edi
je 0x1018597
mov dword [ebp - 0x440], 1
test edi, edi
je 0x1018597
lea eax, [ebp - 0x440]
push eax
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.01017c0b
mov edi, eax
cmp dword [esi + 0x247c], 0
je 0x101862d
test edi, edi
jne 0x101862d
cmp dword [ebp - 0x44c], edi
je 0x10185bb
mov ecx, esi
call fcn.0101372f
test ebx, ebx
je 0x101862d
push 1
lea ecx, [ebp - 0x488]
call fcn.0100e676
mov byte [ebp - 4], 3
push 1
push 1
lea eax, [ebp - 0x488]
push eax
mov ecx, esi
call fcn.010141db
test eax, eax
jne 0x101861e
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x101861e
test dword [eax + 0x1c], 0x400000
je 0x101861e
lea ecx, [ebp - 0x488]
call fcn.01009ae7
push eax
mov eax, dword [0x102b00c]
push 0x10045a8
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a936
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x488]
call fcn.0100e66a
cmp dword [esi + 0x2470], 0
je 0x101870b
mov ecx, esi
test edi, edi
je 0x101864e
lea eax, [ebp - 0x464]
push eax
call fcn.01016d1f
jmp 0x10186ca
call fcn.01016e1d
cmp dword [ebp - 0x448], 0
je 0x10186ca
push 1
lea ecx, [ebp - 0x488]
call fcn.0100e676
mov byte [ebp - 4], 4
push 1
push 1
lea eax, [ebp - 0x488]
push eax
mov ecx, esi
call fcn.010168c9
test eax, eax
jne 0x10186bb
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x10186bb
test dword [eax + 0x1c], 0x400000
je 0x10186bb
lea ecx, [ebp - 0x488]
call fcn.01009ae7
push eax
mov eax, dword [0x102b00c]
push 0x10045a8
push 0x26
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a936
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x488]
call fcn.0100e66a
cmp dword [ebp - 0x444], 0
je 0x101870b
push 0
push 2
call dword [sym.imp.HTTPAPI.dll_HttpTerminate]
test eax, eax
je 0x101870b
mov ecx, dword [0x102b00c]
cmp ecx, 0x102b00c
je 0x101870b
test dword [ecx + 0x1c], 0x400000
je 0x101870b
push eax
push 0x10045a8
push 0x27
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0100a936
test edi, edi
je 0x1018727
cmp dword [ebp - 0x440], 0
je 0x1018727
push dword [ebp - 0x43c]
mov ecx, esi
call fcn.0101b1b1
mov edi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x438]
call fcn.0101346b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x464]
call fcn.010100b1
mov eax, edi
call fcn.0100a199
ret 4