Function at 0x40bf50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 8]
lea ecx, [ebp - 1]
call fcn.00435d80
mov ecx, eax
call fcn.00401a80
mov dword [esp], eax
call fcn.00401450
lea ecx, [ebp - 2]
call fcn.00435e30
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401450
mov eax, dword [0x48ff2c]
mov dword [ebp - 6], eax
lea ecx, [ebp - 7]
call fcn.00435ee0
mov ecx, eax
call fcn.00401c20
mov dword [esp], eax
call sub.msvcrt.dll_getenv
cmp eax, 0
je 0x40bff3
lea eax, [ebp - 6]
mov dword [esp], eax
call fcn.00401c40
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40bff0
lea ecx, [ebp - 0xd]
call fcn.00435f90
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 - 0xc]
lea ecx, [ebp - 0xe]
call fcn.00436040
mov ecx, eax
call fcn.00401e00
mov dword [esp], eax
call fcn.00401450
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004360f0
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x15]
call fcn.00436290
mov ecx, eax
call fcn.00401a80
mov dword [esp], eax
call fcn.00401450
lea ecx, [ebp - 0x16]
call fcn.00436340
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401450
mov eax, dword [0x48ff30]
mov dword [ebp - 0x1a], eax
lea ecx, [ebp - 0x1b]
call fcn.004363f0
mov ecx, eax
call fcn.00401c20
mov dword [esp], eax
call sub.msvcrt.dll_getenv
cmp eax, 0
je 0x40c0b2
lea eax, [ebp - 0x1a]
mov dword [esp], eax
call fcn.00401c40
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40c0af
lea ecx, [ebp - 0x21]
call fcn.004364a0
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 - 0x20]
lea ecx, [ebp - 0x22]
call fcn.00436550
mov ecx, eax
call fcn.00401e00
mov dword [esp], eax
call fcn.00401450
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.00436600
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x29]
call fcn.00437980
mov ecx, eax
call fcn.00401a80
mov dword [esp], eax
call fcn.00401450
lea ecx, [ebp - 0x2a]
call fcn.00437a30
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401450
mov eax, dword [0x48ff34]
mov dword [ebp - 0x2e], eax
lea ecx, [ebp - 0x2f]
call fcn.00437ae0
mov ecx, eax
call fcn.00401c20
mov dword [esp], eax
call sub.msvcrt.dll_getenv
cmp eax, 0
je 0x40c171
lea eax, [ebp - 0x2e]
mov dword [esp], eax
call fcn.00401c40
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x40c16e
lea ecx, [ebp - 0x35]
call fcn.00437b90
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 - 0x34]
lea ecx, [ebp - 0x36]
call fcn.00437c40
mov ecx, eax
call fcn.00401e00
mov dword [esp], eax
call fcn.00401450
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
sub esp, 4
lea ecx, [ebp - 0x37]
call fcn.00437cf0
mov ecx, eax
call fcn.00401a80
mov dword [esp], eax
call fcn.00401450
lea ecx, [ebp - 0x38]
call fcn.00437da0
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401450
mov eax, dword [0x48ff38]
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x3d]
call fcn.00437e50
mov ecx, eax
call fcn.00401c20
mov dword [esp], eax
call sub.msvcrt.dll_getenv
cmp eax, 0
je 0x40c231
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call fcn.00401c40
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x40c22e
lea ecx, [ebp - 0x45]
call fcn.00437f00
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 - 0x44]
lea ecx, [ebp - 0x46]
call fcn.00437fb0
mov ecx, eax
call fcn.00401e00
mov dword [esp], eax
call fcn.00401450
mov eax, dword [ebp - 0x28]
add esp, 0x4c
pop ebp
ret