Function at 0x420170
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x47c070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, ecx
mov ecx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
push str.SERVER_NAME
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x94], esi
mov dword [ebp - 0x90], ecx
mov dword [edi + 0x2108], 0
mov dword [edi + 0x2104], 0
mov dword [edi], eax
call fcn.0044a0d6
add esp, 4
test eax, eax
je 0x4201e4
push eax
push str.SERVER_NAME_s
push edi
call fcn.004200f0
add esp, 0xc
jmp 0x420230
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], 0x10
push eax
lea eax, [ebp - 0x80]
xorps xmm0, xmm0
push eax
mov eax, dword [ebp - 0x88]
movups xmmword [ebp - 0x80], xmm0
push dword [eax + 0x10]
call dword [sym.imp.WS2_32.dll_getsockname]
push 3
push 0x64
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x80]
call fcn.00421f80
lea eax, [ebp - 0x70]
push eax
push str.SERVER_NAME_s
push edi
call fcn.004200f0
add esp, 0x14
mov eax, dword [ebp - 0x90]
push dword [eax]
push str.SERVER_ROOT_s
push edi
call fcn.004200f0
mov eax, dword [ebp - 0x90]
add esp, 0xc
push dword [eax]
push str.DOCUMENT_ROOT_s
push edi
call fcn.004200f0
add esp, 0xc
push str.6.7.1
push str.Mongoose
push str.SERVER_SOFTWARE_s__s
push edi
call fcn.004200f0
push str.GATEWAY_INTERFACECGI_1.1
push 0x471524
push edi
call fcn.004200f0
add esp, 0x1c
push str.SERVER_PROTOCOLHTTP_1.1
push 0x471524
push edi
call fcn.004200f0
add esp, 0xc
push str.REDIRECT_STATUS200
push 0x471524
push edi
call fcn.004200f0
add esp, 0xc
push dword [ebx + 8]
push dword [ebx + 0xc]
push str.REQUEST_METHOD_.s
push edi
call fcn.004200f0
push dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x30]
mov edx, 0x474580
push ecx
test ecx, ecx
mov eax, 0x471428
cmovne eax, edx
push eax
push dword [ebx + 0x10]
push dword [ebx + 0x14]
push str.REQUEST_URI_.s_s_.s
push edi
call fcn.004200f0
mov ecx, dword [ebp - 0x88]
lea edx, [ebp - 0x80]
add esp, 0x2c
xorps xmm0, xmm0
movups xmmword [ebp - 0x80], xmm0
mov eax, dword [ecx + 0x78]
push edx
push 4
push ecx
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x3c]
call eax
add esp, 0xc
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x80]
push 5
push 0x64
call fcn.00421f80
lea eax, [ebp - 0x70]
push eax
push str.REMOTE_ADDR_s
push edi
call fcn.004200f0
mov ecx, dword [ebp - 0x88]
lea edx, [ebp - 0x80]
add esp, 0x14
xorps xmm0, xmm0
movups xmmword [ebp - 0x80], xmm0
mov eax, dword [ecx + 0x78]
push edx
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x3c]
push 0
push ecx
call eax
add esp, 0xc
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x80]
push 2
push 0x64
call fcn.00421f80
lea eax, [ebp - 0x70]
push eax
push str.SERVER_PORT_s
push edi
call fcn.004200f0
mov edx, dword [ebx + 0x10]
add esp, 0x14
mov ecx, edx
sub ecx, dword [esi + 4]
mov esi, dword [ebx + 0x14]
dec esi
add esi, ecx
cmp byte [esi], 0x2f
jne 0x4203b4
push 0x5c
push dword [ebp - 0x8c]
call fcn.0043aab0
add esp, 8
lea ecx, [eax + 1]
test eax, eax
jne 0x42039c
mov ecx, dword [ebp - 0x8c]
mov eax, dword [ebx + 0x10]
sub esi, eax
push ecx
push eax
push esi
push str.SCRIPT_NAME_.s__s
push edi
call fcn.004200f0
add esp, 0x14
jmp 0x4203c7
push edx
sub esi, edx
inc esi
push esi
push str.SCRIPT_NAME_.s
push edi
call fcn.004200f0
add esp, 0x10
push dword [ebp - 0x8c]
push str.SCRIPT_FILENAME_s
push edi
call fcn.004200f0
mov esi, dword [ebp - 0x94]
add esp, 0xc
mov eax, dword [esi + 4]
test eax, eax
je 0x420409
push dword [esi]
push eax
push str.PATH_INFO_.s
push edi
call fcn.004200f0
push dword [esi]
push dword [esi + 4]
push str.PATH_TRANSLATED_.s
push edi
call fcn.004200f0
add esp, 0x20
push str.HTTPSoff
push edi
call fcn.004200f0
add esp, 8
mov edx, str.Content_Type
mov ecx, ebx
call fcn.0041b990
test eax, eax
je 0x42043a
push dword [eax]
push dword [eax + 4]
push str.CONTENT_TYPE_.s
push edi
call fcn.004200f0
add esp, 0x10
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x420453
push dword [ebx + 0x2c]
push eax
push str.QUERY_STRING_.s
push edi
call fcn.004200f0
add esp, 0x10
mov edx, str.Content_Length
mov ecx, ebx
call fcn.0041b990
test eax, eax
je 0x420476
push dword [eax]
push dword [eax + 4]
push str.CONTENT_LENGTH_.s
push edi
call fcn.004200f0
add esp, 0x10
push str.PATH
call fcn.0044a0d6
add esp, 4
test eax, eax
je 0x42049b
push eax
push str.PATH
push str._s_s
push edi
call fcn.004200f0
add esp, 0x10
push 0x474670
call fcn.0044a0d6
add esp, 4
test eax, eax
je 0x4204c0
push eax
push 0x474670
push str._s_s
push edi
call fcn.004200f0
add esp, 0x10
push str.TEMP
call fcn.0044a0d6
add esp, 4
test eax, eax
je 0x4204e5
push eax
push str.TEMP
push str._s_s
push edi
call fcn.004200f0
add esp, 0x10
push str.TMPDIR
call fcn.0044a0d6
add esp, 4
test eax, eax
je 0x42050a
push eax
push str.TMPDIR
push str._s_s
push edi
call fcn.004200f0
add esp, 0x10
push str.PERLLIB
call fcn.0044a0d6
add esp, 4
test eax, eax
je 0x42052f
push eax
push str.PERLLIB
push str._s_s
push edi
call fcn.004200f0
add esp, 0x10
push str.MONGOOSE_CGI
call fcn.0044a0d6
add esp, 4
test eax, eax
je 0x420554
push eax
push str.MONGOOSE_CGI
push str._s_s
push edi
call fcn.004200f0
add esp, 0x10
push str.COMSPEC
call fcn.0044a0d6
add esp, 4
test eax, eax
je 0x420579
push eax
push str.COMSPEC
push str._s_s
push edi
call fcn.004200f0
add esp, 0x10
push str.SYSTEMROOT
call fcn.0044a0d6
add esp, 4
test eax, eax
je 0x42059e
push eax
push str.SYSTEMROOT
push str._s_s
push edi
call fcn.004200f0
add esp, 0x10
push str.SystemDrive
call fcn.0044a0d6
add esp, 4
test eax, eax
je 0x4205c3
push eax
push str.SystemDrive
push str._s_s
push edi
call fcn.004200f0
add esp, 0x10
push str.ProgramFiles
call fcn.0044a0d6
add esp, 4
test eax, eax
je 0x4205e8
push eax
push str.ProgramFiles
push str._s_s
push edi
call fcn.004200f0
add esp, 0x10
push str.ProgramFiles_x86_
call fcn.0044a0d6
add esp, 4
test eax, eax
je 0x42060d
push eax
push str.ProgramFiles_x86_
push str._s_s
push edi
call fcn.004200f0
add esp, 0x10
push str.CommonProgramFiles_x86_
call fcn.0044a0d6
add esp, 4
test eax, eax
je 0x420632
push eax
push str.CommonProgramFiles_x86_
push str._s_s
push edi
call fcn.004200f0
add esp, 0x10
cmp dword [ebx + 0x38], 0
lea eax, [ebx + 0x38]
jbe 0x420696
add ebx, 0x178
push dword [ebx - 4]
push dword [ebx]
push dword [ebx - 0x144]
push dword [eax]
push str.HTTP__.s_.s
push edi
call fcn.004200f0
mov esi, eax
add esp, 0x18
cmp byte [esi], 0x3d
je 0x420684
mov al, byte [esi]
test al, al
je 0x420684
cmp al, 0x2d
jne 0x420670
mov byte [esi], 0x5f
movzx eax, byte [esi]
push eax
call fcn.004462f9
mov byte [esi], al
add esp, 4
inc esi
cmp byte [esi], 0x3d
jne 0x420663
add ebx, 8
cmp dword [ebx - 0x140], 0
lea eax, [ebx - 0x140]
ja 0x420641
mov eax, dword [edi + 0x2108]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [edi + eax*4 + 0x2004], 0
mov eax, dword [edi + 0x2104]
inc dword [edi + 0x2108]
mov byte [eax + edi + 4], 0
inc dword [edi + 0x2104]
pop edi
pop esi
pop ebx
call fcn.004381bc
mov esp, ebp
pop ebp
ret