Function at 0x432a80
Capabilities:
Get comspec environment variable
Query environment variable

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x20]
push edi
xor edi, edi
push 0x2f
push ebx
mov dword [esi + 0x1108], edi
mov dword [esi + 0x1004], edi
mov dword [esi], ebp
mov dword [esp + 0x2c], ebx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
cmp eax, edi
je 0x432abc
inc eax
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x230]
push edi
push eax
call fcn.0042f180
mov eax, dword [ebp + 0x230]
mov ecx, dword [eax + 0x3a8]
mov edi, dword [eax + 0x388]
push ecx
push str.SERVER_NAME_s
push esi
call fcn.00432e70
mov edx, dword [ebp + 0x230]
push 0
push edx
call fcn.0042f1d0
push str.GATEWAY_INTERFACECGI_1.1
push 0x6c7e78
push esi
call fcn.00432e70
push str.SERVER_PROTOCOLHTTP_1.1
push 0x6c7e78
push esi
call fcn.00432e70
push str.REDIRECT_STATUS200
push 0x6c7e78
push esi
call fcn.00432e70
mov ax, word [ebp + 0x242]
add esp, 0x40
push eax
call dword [sym.imp.WSOCK32.dll_ntohs]
and eax, 0xffff
push eax
push str.SERVER_PORT_d
push esi
call fcn.00432e70
push edi
push str.SERVER_ROOT_s
push esi
call fcn.00432e70
push edi
push str.DOCUMENT_ROOT_s
push esi
call fcn.00432e70
mov ecx, dword [ebp]
push ecx
push str.REQUEST_METHOD_s
push esi
call fcn.00432e70
mov edx, dword [ebp + 0x258]
add esp, 0x30
push edx
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
push str.REMOTE_ADDR_s
push esi
call fcn.00432e70
mov eax, dword [ebp + 0x18]
push eax
push str.REMOTE_PORT_d
push esi
call fcn.00432e70
mov ecx, dword [ebp + 4]
push ecx
push str.REQUEST_URI_s
push esi
call fcn.00432e70
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, ebx
push ecx
push str.SCRIPT_NAME_s
push esi
call fcn.00432e70
mov edx, dword [esp + 0x54]
push edx
push str.SCRIPT_FILENAME_s
push esi
call fcn.00432e70
push ebx
push str.PATH_TRANSLATED_s
push esi
call fcn.00432e70
mov eax, dword [ebp + 0x234]
add esp, 0x48
test eax, eax
mov eax, 0x6c9004
je 0x432bf3
mov eax, 0x6c9000
push eax
push str.HTTPS_s
push esi
call fcn.00432e70
push 0x6c8fe4
push ebp
call fcn.0042ce40
add esp, 0x14
test eax, eax
je 0x432c20
push eax
push str.CONTENT_TYPE_s
push esi
call fcn.00432e70
add esp, 0xc
mov eax, dword [ebp + 8]
test eax, eax
je 0x432c36
push eax
push str.QUERY_STRING_s
push esi
call fcn.00432e70
add esp, 0xc
push str.Content_Length
push ebp
call fcn.0042ce40
add esp, 8
test eax, eax
je 0x432c57
push eax
push str.CONTENT_LENGTH_s
push esi
call fcn.00432e70
add esp, 0xc
mov edi, dword [sym.imp.MSVCRT.dll_getenv]
push 0x6c8fa8
call edi
add esp, 4
test eax, eax
je 0x432c7a
push eax
push str.PATH_s
push esi
call fcn.00432e70
add esp, 0xc
push str.COMSPEC
call edi
add esp, 4
test eax, eax
je 0x432c97
push eax
push str.COMSPEC_s
push esi
call fcn.00432e70
add esp, 0xc
push str.SYSTEMROOT
call edi
add esp, 4
test eax, eax
je 0x432cb4
push eax
push str.SYSTEMROOT_s
push esi
call fcn.00432e70
add esp, 0xc
push str.PERLLIB
call edi
add esp, 4
test eax, eax
je 0x432cd1
push eax
push str.PERLLIB_s
push esi
call fcn.00432e70
add esp, 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x432cf7
push eax
push str.REMOTE_USER_s
push esi
call fcn.00432e70
push str.AUTH_TYPEDigest
push 0x6c7e78
push esi
call fcn.00432e70
add esp, 0x18
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x24], 0
test eax, eax
jle 0x432d5c
lea ebx, [ebp + 0x30]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
push eax
push ecx
push str.HTTP__s_s
push esi
call fcn.00432e70
mov edi, eax
add esp, 0x10
mov al, byte [edi]
cmp al, 0x3d
je 0x432d49
test al, al
je 0x432d49
cmp al, 0x2d
jne 0x432d31
mov byte [edi], 0x5f
xor edx, edx
mov dl, byte [edi]
push edx
call dword [sym.imp.MSVCRT.dll_toupper]
add esp, 4
mov byte [edi], al
mov al, byte [edi + 1]
inc edi
cmp al, 0x3d
jne 0x432d26
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 0x2c]
inc eax
add ebx, 8
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x432d09
mov eax, dword [ebp + 0x230]
push 6
push eax
call fcn.0042f180
mov ecx, dword [ebp + 0x230]
lea edx, [esp + 0x18]
push 0
push edx
mov eax, dword [ecx + 0x3a0]
push eax
call fcn.0042e6d0
mov edi, eax
add esp, 0x14
test edi, edi
je 0x432db7
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
push ecx
push str._.s
push esi
call fcn.00432e70
lea edx, [esp + 0x20]
push 0
push edx
push edi
call fcn.0042e6d0
mov edi, eax
add esp, 0x1c
test edi, edi
jne 0x432d8c
mov eax, dword [ebp + 0x230]
push 6
push eax
call fcn.0042f1d0
mov ecx, dword [esi + 0x1108]
add esp, 8
mov edi, dword [sym.imp.MSVCRT.dll__assert]
mov dword [esi + ecx*4 + 0x1008], 0
mov edx, dword [esi + 0x1108]
inc edx
mov dword [esi + 0x1108], edx
mov edx, dword [esi + 0x1004]
mov byte [edx + esi + 4], 0
mov ecx, dword [esi + 0x1004]
mov eax, dword [esi + 0x1108]
inc ecx
cmp eax, 0x40
mov dword [esi + 0x1004], ecx
jl 0x432e23
push 0xcb2
push str.D:20110627CSDVR_p2pmongoose.c
push str.blk__nvars____int__ARRAY_SIZE_blk__vars_
call edi
add esp, 0xc
mov eax, dword [esi + 0x1004]
test eax, eax
jg 0x432e41
push 0xcb3
push str.D:20110627CSDVR_p2pmongoose.c
push str.blk__len___0
call edi
add esp, 0xc
cmp dword [esi + 0x1004], 0x1000
jl 0x432e61
push 0xcb4
push str.D:20110627CSDVR_p2pmongoose.c
push str.blk__len____int__sizeof_blk__buf_
call edi
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret