Function at 0x409c20
Capabilities:
Get local ipv4 addresses
Get socket information
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x532470
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push ebp
push edi
call fcn.0051ffd3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
xor edi, edi
mov dword [esp + 0x78], edi
call fcn.0051ffd3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], edi
mov byte [esp + 0x78], 2
mov ebp, dword [esi + 0x32e0]
cmp ebp, edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x10], edi
jg 0x40a0f1
lea eax, [esp + 0x18]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push str.ALL_HTTP
call fcn.0040e1f0
mov edi, dword [esp + 0x88]
push edi
call fcn.0040f8a0
lea ecx, [esp + 0x14]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x88], esp
push str.ALL_RAW
call fcn.0040e1f0
push edi
call fcn.0040f8a0
mov eax, dword [esi + 0x70]
add eax, 0x28
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x88], esp
push str.APPL_PHYSICAL_PATH
call fcn.0040e1f0
push edi
call fcn.0040f8a0
mov eax, dword [esi + 0x320c]
push 0xa
lea edx, [esp + 0x54]
push edx
push eax
call fcn.004bb9b8
add esp, 0xc
lea ecx, [esp + 0x50]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x88], esp
push str.CONTENT_LENGTH
call fcn.0040e1f0
push edi
call fcn.0040f3a0
lea edx, [esi + 0x3214]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x88], esp
push str.CONTENT_TYPE
call fcn.0040e1f0
push edi
call fcn.0040f620
push str.CGI_1.1
push ecx
mov ecx, esp
mov dword [esp + 0x88], esp
push str.GATEWAY_INTERFACE
call fcn.0040e1f0
push edi
call fcn.0040f4e0
lea ebx, [esi + 0x11ac]
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x88], esp
push str.PATH_INFO
call fcn.0040e1f0
push edi
call fcn.0040f8a0
lea eax, [esi + 0x11b0]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x88], esp
push str.PATH_TRANSLATED
call fcn.0040e1f0
push edi
call fcn.0040f620
lea ecx, [esi + 0x21b8]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x88], esp
push str.QUERY_STRING
call fcn.0040e1f0
push edi
call fcn.0040f620
lea edx, [esi + 0x31e4]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x88], esp
push str.REQUEST_METHOD
call fcn.0040e1f0
push edi
call fcn.0040f620
mov ecx, dword [esi + 0x6c]
call fcn.00421a00
test eax, eax
mov dword [esp + 0x80], eax
je 0x409e08
push 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x80]
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x88], esp
push str.REMOTE_ADDR
call fcn.0040e1f0
push edi
call fcn.0040f760
mov eax, dword [esi + 0x6c]
lea edx, [esp + 0x80]
push edx
mov edx, dword [eax + 0x34]
lea ecx, [esp + 0x44]
push ecx
push edx
mov dword [esp + 0x8c], 0x10
call dword [sym.imp.WS2_32.dll_getpeername]
mov ecx, dword [esp + 0x42]
push 0xa
lea eax, [esp + 0x54]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
push edx
call fcn.004bb9b8
add esp, 0xc
lea eax, [esp + 0x50]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x88], esp
push str.REMOTE_PORT
call fcn.0040e1f0
push edi
call fcn.0040f3a0
lea ecx, [esp + 0xc]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x88], esp
push str.REMOTE_HOST
call fcn.0040e1f0
push edi
call fcn.0040f760
mov ecx, dword [esi + 0x6c]
call fcn.004218d0
mov ecx, dword [esp + 0xc]
cmp ecx, eax
mov dword [esp + 0x80], eax
je 0x409ed1
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov edx, dword [esp + 0x80]
mov dword [esp + 0xc], edx
lea eax, [esp + 0xc]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x88], esp
push str.LOCAL_ADDR
call fcn.0040e1f0
push edi
call fcn.0040f760
mov eax, dword [esi + 0x6c]
mov eax, dword [eax + 0x34]
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x44]
push edx
push eax
mov dword [esp + 0x8c], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov edx, dword [esp + 0x42]
push 0xa
lea ecx, [esp + 0x54]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push eax
call fcn.004bb9b8
add esp, 0xc
lea ecx, [esp + 0x50]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x88], esp
push str.LOCAL_PORT
call fcn.0040e1f0
push edi
call fcn.0040f3a0
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x88], esp
push str.SCRIPT_NAME
call fcn.0040e1f0
push edi
call fcn.0040f8a0
lea edx, [esi + 0x90]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x88], esp
push str.SERVER_NAME
call fcn.0040e1f0
push edi
call fcn.0040f620
mov ecx, dword [esi + 0x1a0]
push 0xa
lea eax, [esp + 0x54]
push eax
push ecx
call fcn.004bb9b8
add esp, 0xc
lea edx, [esp + 0x50]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x88], esp
push str.SERVER_PORT
call fcn.0040e1f0
push edi
call fcn.0040f3a0
lea eax, [esi + 0x78]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x88], esp
push str.SERVER_PROTOCOL
call fcn.0040e1f0
push edi
call fcn.0040f620
mov dword [esp + 0x80], 0x58d190
lea ecx, [esp + 0x80]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push str.SERVER_SOFTWARE
call fcn.0040e1f0
push edi
call fcn.0040f8a0
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x88], esp
push 0x55e730
call fcn.0040e1f0
push edi
call fcn.0040f8a0
xor ebx, ebx
test ebp, ebp
jle 0x40a085
lea esp, [esp]
test ebx, ebx
jl 0x40a42e
cmp ebx, dword [esi + 0x32f4]
jge 0x40a42e
mov eax, dword [esi + 0x32f0]
lea ecx, [ebx*4]
add eax, ecx
push eax
cmp ebx, dword [esi + 0x32e0]
jge 0x40a42e
mov eax, dword [esi + 0x32dc]
add eax, ecx
mov eax, dword [eax]
push ecx
mov ecx, esp
mov dword [esp + 0x88], esp
push eax
call fcn.004042b0
push edi
call fcn.0040f8a0
inc ebx
cmp ebx, ebp
jl 0x40a030
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [esp + 0x78], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a0b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0x78], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a0d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x70]
pop edi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x70
ret 4
mov edi, dword [esp + 0x10]
test edi, edi
jl 0x40a42e
cmp edi, dword [esi + 0x32e0]
jge 0x40a42e
mov eax, dword [esi + 0x32dc]
lea ebp, [edi*4]
add eax, ebp
push 0x55efa0
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00406c70
add esp, 0xc
mov byte [esp + 0x78], 3
cmp edi, dword [esi + 0x32f4]
jge 0x40a42e
mov ecx, dword [esi + 0x32f0]
add ecx, ebp
push ecx
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00404150
push 0x55ef9c
push eax
lea edx, [esp + 0x34]
mov bl, 4
push edx
mov byte [esp + 0x90], bl
call fcn.00406c70
add esp, 0x18
mov byte [esp + 0x78], 5
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00404200
mov byte [esp + 0x78], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a19f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [esp + 0x78], 3
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a1c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [esp + 0x78], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a1e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp edi, dword [esi + 0x32e0]
jge 0x40a42e
mov ebx, dword [esi + 0x32dc]
mov eax, dword [ebx + ebp]
mov edx, dword [eax - 4]
mov edi, dword [eax - 0xc]
mov eax, dword [eax - 8]
add ebx, ebp
mov ecx, 1
sub ecx, edx
sub eax, edi
or eax, ecx
jge 0x40a21a
push edi
mov ecx, ebx
call fcn.00403280
mov eax, dword [ebx]
push eax
call fcn.004bc003
add esp, 4
test edi, edi
jl 0x40a424
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x40a424
mov dword [eax - 0xc], edi
mov eax, dword [ebx]
mov byte [edi + eax], 0
mov edi, dword [esp + 0x10]
cmp edi, dword [esi + 0x32e0]
jge 0x40a42e
mov ebx, dword [esi + 0x32dc]
push 0x5f
add ebx, ebp
push 0x2d
call fcn.0040df20
cmp edi, dword [esi + 0x32e0]
jge 0x40a42e
mov ecx, dword [esi + 0x32dc]
lea edx, [esp + 0x30]
add ecx, ebp
push edx
mov edi, 0x55e960
call fcn.0040e050
add esp, 4
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x78], 6
cmp ecx, dword [esi + 0x32e0]
jge 0x40a42e
mov ebx, dword [esi + 0x32dc]
mov ecx, dword [eax]
mov edi, dword [ebx + ebp]
add ebx, ebp
lea eax, [ecx - 0x10]
sub edi, 0x10
cmp eax, edi
je 0x40a2fc
mov edx, dword [edi + 0xc]
test edx, edx
jl 0x40a2f0
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x40a2f0
push eax
call fcn.00401400
mov dword [esp + 0x30], eax
add esp, 4
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a2e5
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
add eax, 0x10
mov dword [ebx], eax
jmp 0x40a2fc
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, ebx
call fcn.00403060
mov byte [esp + 0x78], 2
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a31f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 0x32e0]
jge 0x40a42e
mov eax, dword [esi + 0x32dc]
add eax, ebp
push 0x55efa0
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.00406c70
add esp, 0xc
mov edi, dword [esp + 0x10]
mov byte [esp + 0x78], 7
cmp edi, dword [esi + 0x32f4]
jge 0x40a42e
mov ecx, dword [esi + 0x32f0]
add ecx, ebp
push ecx
push eax
lea edx, [esp + 0x40]
push edx
call fcn.00404150
push 0x55e95c
push eax
lea eax, [esp + 0x48]
mov bl, 8
push eax
mov byte [esp + 0x90], bl
call fcn.00406c70
add esp, 0x18
mov byte [esp + 0x78], 9
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00404200
mov byte [esp + 0x78], bl
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a3c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [esp + 0x78], 7
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a3e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [esp + 0x78], 2
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a40c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
inc edi
cmp edi, eax
mov dword [esp + 0x10], edi
jl 0x40a0ed
mov ebp, eax
jmp 0x409c86
push 0x80070057
call fcn.00401780
call fcn.0051e63c
int3