Function at 0x42a720
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
cmp byte [0x49ec50], 0
jne 0x42a77b
lea eax, [0x49ec50]
mov dword [esp], eax
call fcn.004601b4
cmp eax, 0
je 0x42a77b
mov ecx, 0x4a1b5a
call fcn.0042aa60
jmp 0x42a75f
lea eax, [0x42aad0]
mov dword [esp], eax
call fcn.00401310
lea eax, [0x49ec50]
mov dword [esp], eax
call fcn.0046025b
lea ecx, [ebp - 9]
call fcn.0042aae0
mov ecx, eax
call fcn.00401a80
mov dword [esp], eax
call fcn.00401450
lea ecx, [ebp - 0xa]
call fcn.0042ab90
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401450
mov eax, dword [0x48f27f]
mov dword [ebp - 0xe], eax
lea ecx, [ebp - 0xf]
call fcn.0042ac40
mov ecx, eax
call fcn.00421730
mov dword [esp], eax
call sub.msvcrt.dll_getenv
cmp eax, 0
je 0x42a833
lea eax, [ebp - 0xe]
mov dword [esp], eax
call fcn.00401c40
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x42a830
lea ecx, [ebp - 0x15]
call fcn.0042acf0
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401c50
xor eax, eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GlobalFlags]
sub esp, 4
jmp 0x42a830
call dword [ebp - 0x14]
lea ecx, [ebp - 0x16]
call fcn.0042ada0
mov ecx, eax
call fcn.00401e00
mov dword [esp], eax
call fcn.00401450
cmp byte [0x49ec58], 0
jne 0x42a8a7
lea eax, [0x49ec58]
mov dword [esp], eax
call fcn.004601b4
cmp eax, 0
je 0x42a8a7
mov ecx, 0x4a1b5a
call fcn.00462950
mov dword [ebp - 0x44], eax
jmp 0x42a880
mov ecx, dword [ebp - 0x44]
mov eax, esp
mov dword [eax], ecx
mov ecx, 0x4a1b5c
call fcn.0042ae50
sub esp, 4
jmp 0x42a899
lea eax, [0x49ec58]
mov dword [esp], eax
call fcn.0046025b
lea ecx, [ebp - 0x17]
call fcn.0042ae80
mov ecx, eax
call fcn.00401a80
mov dword [esp], eax
call fcn.00401450
lea ecx, [ebp - 0x18]
call fcn.0042af30
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401450
mov eax, dword [0x48f283]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x1d]
call fcn.0042afe0
mov ecx, eax
call fcn.00421730
mov dword [esp], eax
call sub.msvcrt.dll_getenv
cmp eax, 0
je 0x42a95f
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call fcn.00401c40
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x42a95c
lea ecx, [ebp - 0x25]
call fcn.0042b090
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401c50
xor eax, eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GlobalFlags]
sub esp, 4
jmp 0x42a95c
call dword [ebp - 0x24]
lea ecx, [ebp - 0x26]
call fcn.0042b140
mov ecx, eax
call fcn.00401e00
mov dword [esp], eax
call fcn.00401450
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x30]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.0042b1f0
sub esp, 8
lea ecx, [ebp - 0x31]
call fcn.0042b220
mov ecx, eax
call fcn.00401a80
mov dword [esp], eax
call fcn.00401450
lea ecx, [ebp - 0x32]
call fcn.0042b2d0
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401450
mov eax, dword [0x48f287]
mov dword [ebp - 0x36], eax
lea ecx, [ebp - 0x37]
call fcn.0042b380
mov ecx, eax
call fcn.00421730
mov dword [esp], eax
call sub.msvcrt.dll_getenv
cmp eax, 0
je 0x42aa28
lea eax, [ebp - 0x36]
mov dword [esp], eax
call fcn.00401c40
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x42aa25
lea ecx, [ebp - 0x3d]
call fcn.0042b430
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401c50
xor eax, eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GlobalFlags]
sub esp, 4
call dword [ebp - 0x3c]
lea ecx, [ebp - 0x3e]
call fcn.0042b4e0
mov ecx, eax
call fcn.00401e00
mov dword [esp], eax
call fcn.00401450
lea ecx, [ebp - 0x30]
lea eax, [0x4a1b5c]
mov dword [esp], eax
call fcn.0042b590
add esp, 0x48
pop ebp
ret