Function at 0x421240
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
lea ecx, [ebp - 0xa]
call fcn.00421500
lea ecx, [ebp - 0xb]
call fcn.00421520
mov ecx, eax
call fcn.00401a80
mov dword [esp], eax
call fcn.00401450
lea ecx, [ebp - 0xc]
call fcn.004215d0
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401450
mov eax, dword [0x48f26b]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x11]
call fcn.00421680
mov ecx, eax
call fcn.00421730
mov dword [esp], eax
call sub.msvcrt.dll_getenv
cmp eax, 0
je 0x4212e8
lea eax, [ebp - 0x10]
mov dword [esp], eax
call fcn.00401c40
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4212e5
lea ecx, [ebp - 0x19]
call fcn.00421750
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 - 0x18]
lea ecx, [ebp - 0x1a]
call fcn.00421800
mov ecx, eax
call fcn.00401e00
mov dword [esp], eax
call fcn.00401450
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov dword [esp], 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
lea ecx, [ebp - 0x21]
call fcn.004218b0
mov ecx, eax
call fcn.00401a80
mov dword [esp], eax
call fcn.00401450
lea ecx, [ebp - 0x22]
call fcn.00421960
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401450
mov eax, dword [0x48f26f]
mov dword [ebp - 0x26], eax
lea ecx, [ebp - 0x27]
call fcn.00421a10
mov ecx, eax
call fcn.00421730
mov dword [esp], eax
call sub.msvcrt.dll_getenv
cmp eax, 0
je 0x4213bb
lea eax, [ebp - 0x26]
mov dword [esp], eax
call fcn.00401c40
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4213b8
lea ecx, [ebp - 0x2d]
call fcn.00421ac0
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 - 0x2c]
lea ecx, [ebp - 0x2e]
call fcn.00421b70
mov ecx, eax
call fcn.00401e00
mov dword [esp], eax
call fcn.00401450
mov dword [esp], 2
call fcn.00460e70
mov byte [eax], 1
mov byte [eax + 1], 1
lea ecx, [ebp - 0xa]
mov dword [esp], 1
mov dword [esp + 4], 1
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], 1
call fcn.00421c20
sub esp, 0x24
cmp dword [ebp - 0x20], 0x63
jl 0x421308
lea ecx, [ebp - 0x2f]
call fcn.00421de0
mov ecx, eax
call fcn.00401a80
mov dword [esp], eax
call fcn.00401450
lea ecx, [ebp - 0x30]
call fcn.00421e90
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401450
mov eax, dword [str.P__pQ.]
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x35]
call fcn.00421f40
mov ecx, eax
call fcn.00421730
mov dword [esp], eax
call sub.msvcrt.dll_getenv
cmp eax, 0
je 0x4214d7
lea eax, [ebp - 0x34]
mov dword [esp], eax
call fcn.00401c40
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x4214d4
lea ecx, [ebp - 0x3d]
call fcn.00421ff0
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.004220a0
mov ecx, eax
call fcn.00401e00
mov dword [esp], eax
call fcn.00401450
xor eax, eax
add esp, 0x64
pop ebp
ret