Function at 0x437a00
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x4544f0]
xor eax, ebp
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
jne 0x437a22
lea eax, [ebp - 0x410]
mov dword [ebp + 8], eax
cmp dword [ebp + 0xc], 0
jne 0x437a78
cmp dword [0x458a64], 0
je 0x437a41
mov ecx, dword [0x458a64]
push ecx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
cmp dword [ebp + 0x10], 0
je 0x437a5c
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.MSVCR90.dll__strdup]
add esp, 4
mov dword [ebp - 0x414], eax
jmp 0x437a66
mov dword [ebp - 0x414], 0
mov eax, dword [ebp - 0x414]
mov dword [0x458a64], eax
xor eax, eax
jmp 0x437eb6
mov ecx, dword [ebp + 0xc]
push ecx
call sub.MSVCR90.dll_strlen
add esp, 4
cmp eax, 0x400
jae 0x437ae5
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.MSVCR90.dll_strcpy
add esp, 8
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004383d0
add esp, 8
test eax, eax
je 0x437ae5
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x410]
cmp eax, ecx
jne 0x437ad1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCR90.dll__strdup]
add esp, 4
mov dword [ebp - 0x418], eax
jmp 0x437ada
mov eax, dword [ebp + 8]
mov dword [ebp - 0x418], eax
mov eax, dword [ebp - 0x418]
jmp 0x437eb6
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx]
cmp edx, 0x2f
jne 0x437afc
mov dword [ebp + 0x10], 0
jmp 0x437de1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x437de1
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
push 0x2f
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCR90.dll_strchr]
add esp, 8
test eax, eax
je 0x437b34
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
mov dword [ebp + 0xc], 0x454568
jmp 0x437b3b
mov dword [ebp + 0x10], 0
cmp dword [0x458a64], 0
je 0x437b55
mov ecx, dword [0x458a64]
movsx edx, byte [ecx]
test edx, edx
je 0x437de1
push 0x2f
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.MSVCR90.dll_strchr]
add esp, 8
test eax, eax
jne 0x437cd2
mov ecx, dword [0x458a64]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jne 0x437b95
cmp dword [0x458a80], 0
je 0x437bd1
mov edx, dword [0x458a80]
mov eax, dword [edx]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x437bd1
push 0x2f
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.MSVCR90.dll_strchr]
add esp, 8
test eax, eax
je 0x437bd1
push 0xa
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.MSVCR90.dll_strchr]
add esp, 8
test eax, eax
jne 0x437bd1
push 0
mov eax, dword [ebp - 8]
push eax
call sub.MSVCR90.dll__access
add esp, 8
test eax, eax
je 0x437cd2
mov ecx, dword [sym.imp.MSVCR90.dll__environ]
cmp dword [ecx], 0
je 0x437c84
mov edx, dword [sym.imp.MSVCR90.dll__environ]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x437c84
mov edx, dword [ebp - 8]
movsx eax, byte [edx]
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp eax, 0x5f
jne 0x437c84
mov edx, dword [ebp - 8]
movsx eax, byte [edx]
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp eax, 0x3d
jne 0x437c84
push 0x2f
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.MSVCR90.dll_strchr]
add esp, 8
test eax, eax
je 0x437c84
mov eax, dword [ebp - 8]
movsx ecx, byte [eax]
movsx edx, byte [0x45456c]
cmp ecx, edx
jne 0x437c5b
push 5
push str._bin_
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.MSVCR90.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x437c84
mov ecx, dword [ebp - 8]
movsx edx, byte [ecx]
movsx eax, byte [0x45457c]
cmp edx, eax
jne 0x437cd2
push 9
push str._usr_bin_
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.MSVCR90.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x437cd2
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
test eax, eax
je 0x437de1
push 0
mov ecx, dword [ebp - 4]
push ecx
call sub.MSVCR90.dll__access
add esp, 8
test eax, eax
jne 0x437de1
push 0x454594
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x437de1
mov edx, dword [ebp - 8]
movsx eax, byte [edx]
cmp eax, 0x2f
jne 0x437de1
cmp dword [0x458a64], 0
jne 0x437ced
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.MSVCR90.dll__strdup]
add esp, 4
mov dword [0x458a64], eax
mov edx, dword [ebp - 8]
push edx
call sub.MSVCR90.dll_strlen
add esp, 4
cmp eax, 0x3fa
jae 0x437de1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00438380
add esp, 8
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 8]
ja 0x437d24
jmp 0x437de1
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
movsx edx, byte [ecx]
cmp edx, 0x2f
je 0x437d17
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
ja 0x437d45
jmp 0x437de1
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
movsx eax, byte [edx]
cmp eax, 0x2f
jne 0x437d38
push 0x454598
mov ecx, dword [ebp - 8]
add ecx, 1
push ecx
call sub.MSVCR90.dll_strcpy
add esp, 8
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.004383d0
add esp, 8
test eax, eax
je 0x437ddc
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00438220
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x437dda
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x410]
cmp edx, eax
jne 0x437dc6
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.MSVCR90.dll__strdup]
add esp, 4
mov dword [ebp - 0x41c], eax
jmp 0x437dcf
mov edx, dword [ebp - 8]
mov dword [ebp - 0x41c], edx
mov eax, dword [ebp - 0x41c]
jmp 0x437eb6
jmp 0x437de1
jmp 0x437d17
cmp dword [ebp + 0x10], 0
jne 0x437e06
push 0x2f
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCR90.dll_strchr]
add esp, 8
test eax, eax
je 0x437e06
mov dword [ebp - 0x420], 0x458a68
jmp 0x437e11
call fcn.004381d0
mov dword [ebp - 0x420], eax
mov ecx, dword [ebp - 0x420]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00438220
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x437e7f
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
jne 0x437e7f
push str.FPATH
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x437e7f
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00438220
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x437ea7
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x410]
cmp edx, eax
jne 0x437ea7
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.MSVCR90.dll__strdup]
add esp, 4
mov dword [ebp - 0x424], eax
jmp 0x437eb0
mov edx, dword [ebp - 8]
mov dword [ebp - 0x424], edx
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0043618e
mov esp, ebp
pop ebp
ret