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

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [ebp + 0x15c]
push edi
mov edi, eax
xor eax, eax
lea ebx, [ebp + 4]
push str.SERVER_NAME
mov dword [esp + 0x18], ebx
add esi, 0x44
mov dword [edi + 0x2108], eax
mov dword [edi + 0x2104], eax
mov dword [edi], ebx
call dword [sym.imp.MSVCR80.dll_getenv]
add esp, 4
test eax, eax
jne 0x427aa7
mov eax, dword [ebp + 0x15c]
add eax, 0x80
push eax
push str.SERVER_NAME_s
call fcn.004279e0
mov ecx, dword [esi + 0x18]
add esp, 8
push ecx
push str.SERVER_ROOT_s
call fcn.004279e0
mov edx, dword [esi + 0x18]
push edx
push str.DOCUMENT_ROOT_s
call fcn.004279e0
push 0x58ef9c
push str.Mongoose
push str.SERVER_SOFTWARE_s__s
call fcn.004279e0
push str.GATEWAY_INTERFACECGI_1.1
push 0x58df2c
call fcn.004279e0
push str.SERVER_PROTOCOLHTTP_1.1
push 0x58df2c
call fcn.004279e0
push str.REDIRECT_STATUS200
push 0x58df2c
call fcn.004279e0
mov eax, dword [ebx]
push eax
push str.REQUEST_METHOD_s
call fcn.004279e0
lea ecx, [ebx + 0x10]
push ecx
push str.REMOTE_ADDR_s
call fcn.004279e0
movzx edx, word [ebx + 0x44]
add esp, 0x44
push edx
push str.REMOTE_PORT_d
call fcn.004279e0
mov eax, dword [ebx + 0xc]
add esp, 8
test eax, eax
mov ecx, 0x58c9f6
je 0x427bc3
mov ecx, eax
mov eax, 0x58ca28
push ecx
push eax
mov eax, dword [ebx + 4]
push eax
push str.REQUEST_URI_s_s_s
call fcn.004279e0
mov eax, dword [ebp + 0x168]
add esp, 0x10
test eax, eax
je 0x427bca
mov ebx, dword [ebx + 4]
mov ecx, ebx
lea esi, [ecx + 1]
lea ebx, [ebx]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x427b80
sub ecx, esi
lea esi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x427b90
sub eax, esi
push ebx
sub ecx, eax
push ecx
push str.SCRIPT_NAME_.s
call fcn.004279e0
mov ecx, dword [ebp + 0x168]
push ecx
push str.PATH_INFO_s
call fcn.004279e0
mov ebx, dword [esp + 0x28]
add esp, 0x14
jmp 0x427c10
mov eax, 0x58c9f6
jmp 0x427b55
mov edx, dword [esp + 0x18]
mov ebx, dword [sym.imp.MSVCR80.dll_strrchr]
push 0x2f
push edx
call ebx
mov esi, eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
push 0x2f
push ecx
call ebx
add esp, 0x10
test esi, esi
jne 0x427bf2
mov esi, dword [esp + 0x18]
test eax, eax
mov ebx, dword [esp + 0x14]
je 0x427bfd
sub eax, dword [ebx + 4]
mov edx, dword [ebx + 4]
push esi
push edx
push eax
push str.SCRIPT_NAME_.s_s
call fcn.004279e0
add esp, 0x10
mov esi, dword [esp + 0x18]
push esi
push str.SCRIPT_FILENAME_s
call fcn.004279e0
push esi
push str.PATH_TRANSLATED_s
call fcn.004279e0
mov eax, dword [ebp]
add esp, 0x10
cmp dword [eax + 0x34], 0
mov eax, 0x58f0b8
jne 0x427c40
mov eax, 0x58f0bc
push eax
push str.HTTPS_s
call fcn.004279e0
push str.Content_Type
call fcn.00428990
add esp, 0xc
test eax, eax
je 0x427c6a
push eax
push str.CONTENT_TYPE_s
call fcn.004279e0
add esp, 8
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x427c7f
push eax
push str.QUERY_STRING_s
call fcn.004279e0
add esp, 8
push str.Content_Length
call fcn.00428990
add esp, 4
test eax, eax
je 0x427c9e
push eax
push str.CONTENT_LENGTH_s
call fcn.004279e0
add esp, 8
mov esi, dword [sym.imp.MSVCR80.dll_getenv]
push str.PATH
call esi
add esp, 4
test eax, eax
je 0x427cc5
push eax
push str.PATH
push 0x58ef54
call fcn.004279e0
add esp, 0xc
push 0x58f118
call esi
add esp, 4
test eax, eax
je 0x427ce6
push eax
push 0x58f118
push 0x58ef54
call fcn.004279e0
add esp, 0xc
push str.TEMP
call esi
add esp, 4
test eax, eax
je 0x427d07
push eax
push str.TEMP
push 0x58ef54
call fcn.004279e0
add esp, 0xc
push str.TMPDIR
call esi
add esp, 4
test eax, eax
je 0x427d28
push eax
push str.TMPDIR
push 0x58ef54
call fcn.004279e0
add esp, 0xc
push str.PERLLIB
call esi
add esp, 4
test eax, eax
je 0x427d49
push eax
push str.PERLLIB
push 0x58ef54
call fcn.004279e0
add esp, 0xc
push str.MONGOOSE_CGI
call esi
add esp, 4
test eax, eax
je 0x427d6a
push eax
push str.MONGOOSE_CGI
push 0x58ef54
call fcn.004279e0
add esp, 0xc
push str.COMSPEC
call esi
add esp, 4
test eax, eax
je 0x427d8b
push eax
push str.COMSPEC
push 0x58ef54
call fcn.004279e0
add esp, 0xc
push str.SYSTEMROOT
call esi
add esp, 4
test eax, eax
je 0x427dac
push eax
push str.SYSTEMROOT
push 0x58ef54
call fcn.004279e0
add esp, 0xc
push str.SystemDrive
call esi
add esp, 4
test eax, eax
je 0x427dcd
push eax
push str.SystemDrive
push 0x58ef54
call fcn.004279e0
add esp, 0xc
push str.ProgramFiles
call esi
add esp, 4
test eax, eax
je 0x427dee
push eax
push str.ProgramFiles
push 0x58ef54
call fcn.004279e0
add esp, 0xc
push str.ProgramFiles_x86_
call esi
add esp, 4
test eax, eax
je 0x427e0f
push eax
push str.ProgramFiles_x86_
push 0x58ef54
call fcn.004279e0
add esp, 0xc
push str.CommonProgramFiles_x86_
call esi
add esp, 4
test eax, eax
je 0x427e30
push eax
push str.CommonProgramFiles_x86_
push 0x58ef54
call fcn.004279e0
add esp, 0xc
xor ebp, ebp
cmp dword [ebx + 0x48], ebp
jle 0x427e93
add ebx, 0x4c
lea ebx, [ebx]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
push ecx
push edx
push str.HTTP__s_s
call fcn.004279e0
mov esi, eax
add esp, 0xc
cmp byte [esi], 0x3d
je 0x427e84
jmp 0x427e60
mov al, byte [esi]
test al, al
je 0x427e84
cmp al, 0x2d
jne 0x427e6d
mov byte [esi], 0x5f
movzx eax, byte [esi]
push eax
call dword [sym.imp.MSVCR80.dll_toupper]
mov byte [esi], al
add esi, 1
add esp, 4
cmp byte [esi], 0x3d
jne 0x427e60
mov ecx, dword [esp + 0x14]
add ebp, 1
add ebx, 8
cmp ebp, dword [ecx + 0x48]
jl 0x427e40
mov edx, dword [edi + 0x2108]
mov dword [edi + edx*4 + 0x2004], 0
mov ecx, dword [edi + 0x2104]
mov eax, 1
add dword [edi + 0x2108], eax
mov byte [ecx + edi + 4], 0
add dword [edi + 0x2104], eax
pop edi
pop esi
pop ebp
pop ebx
ret