Function at 0x43b860
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
lea ecx, [ebp - 0xd]
call fcn.00446560
mov ecx, eax
call fcn.00401a80
mov dword [esp], eax
call fcn.00401450
lea ecx, [ebp - 0xe]
call fcn.00446610
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401450
mov eax, dword [0x491150]
mov dword [ebp - 0x12], eax
lea ecx, [ebp - 0x13]
call fcn.004466c0
mov ecx, eax
call fcn.00401c20
mov dword [esp], eax
call sub.msvcrt.dll_getenv
cmp eax, 0
je 0x43b900
lea eax, [ebp - 0x12]
mov dword [esp], eax
call fcn.00401c40
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x43b8fd
lea ecx, [ebp - 0x19]
call fcn.00446770
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.00446820
mov ecx, eax
call fcn.00401e00
mov dword [esp], eax
call fcn.00401450
call fcn.0043e300
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x1b]
call fcn.004468d0
mov ecx, eax
call fcn.00401a80
mov dword [esp], eax
call fcn.00401450
lea ecx, [ebp - 0x1c]
call fcn.00446980
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401450
mov eax, dword [0x491154]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x21]
call fcn.00446a30
mov ecx, eax
call fcn.00401c20
mov dword [esp], eax
call sub.msvcrt.dll_getenv
cmp eax, 0
je 0x43b9b9
lea eax, [ebp - 0x20]
mov dword [esp], eax
call fcn.00401c40
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x43b9b6
lea ecx, [ebp - 0x29]
call fcn.00446ae0
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 - 0x28]
lea ecx, [ebp - 0x2a]
call fcn.00446b90
mov ecx, eax
call fcn.00401e00
mov dword [esp], eax
call fcn.00401450
call fcn.0043e680
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x2b]
call fcn.00446c40
mov ecx, eax
call fcn.00401a80
mov dword [esp], eax
call fcn.00401450
lea ecx, [ebp - 0x2c]
call fcn.00446cf0
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401450
mov eax, dword [0x491158]
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x31]
call fcn.00446da0
mov ecx, eax
call fcn.00401c20
mov dword [esp], eax
call sub.msvcrt.dll_getenv
cmp eax, 0
je 0x43ba72
lea eax, [ebp - 0x30]
mov dword [esp], eax
call fcn.00401c40
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x43ba6f
lea ecx, [ebp - 0x39]
call fcn.00446e50
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 - 0x38]
lea ecx, [ebp - 0x3a]
call fcn.00446f00
mov ecx, eax
call fcn.00401e00
mov dword [esp], eax
call fcn.00401450
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x3b]
call fcn.00446fb0
mov ecx, eax
call fcn.00401a80
mov dword [esp], eax
call fcn.00401450
lea ecx, [ebp - 0x3c]
call fcn.00447060
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401450
mov eax, dword [0x49115c]
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x41]
call fcn.00447110
mov ecx, eax
call fcn.00401c20
mov dword [esp], eax
call sub.msvcrt.dll_getenv
cmp eax, 0
je 0x43bb2a
lea eax, [ebp - 0x40]
mov dword [esp], eax
call fcn.00401c40
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x43bb27
lea ecx, [ebp - 0x49]
call fcn.004471c0
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 - 0x48]
lea ecx, [ebp - 0x4a]
call fcn.00447270
mov ecx, eax
call fcn.00401e00
mov dword [esp], eax
call fcn.00401450
lea ecx, [0x43ec70]
lea eax, [ebp - 0xc]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0043ea00
sub esp, 8
movzx eax, al
add esp, 0x54
pop ebp
ret