Function at 0x5a3a04
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], ebx
xor eax, eax
mov edi, dword [ebp + 8]
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
jne 0x5a3a3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xcb
jne 0x5a3a78
xor ebx, ebx
jmp 0x5a3a69
push esi
call fcn.0074334f
pop ecx
mov ebx, eax
test ebx, ebx
je 0x5a3b89
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x5a3a69
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x5a3afd
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov eax, ebx
mov ebx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x3c]
push edi
push 0x40011
push eax
call fcn.005a509c
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.005a5468
add esp, 0x14
mov dword [esp], 2
mov eax, dword [ebp - 0x3c]
lea esi, [esp + 4]
mov dword [esi], eax
mov edx, dword [ebp - 0x38]
mov dword [esi + 4], edx
mov ecx, dword [ebp - 0x34]
mov dword [esi + 8], ecx
lea edx, [esp + 0x14]
lea ecx, [esp + 0x24]
mov ebx, dword [ebp - 0x30]
mov dword [esi + 0xc], ebx
mov edi, dword [ebp - 0x2c]
mov dword [edx], edi
mov eax, dword [ebp - 0x28]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [edx + 0xc], eax
lea edx, [0x852570]
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov eax, dword [edx + 0xc]
mov dword [ecx + 0xc], eax
call fcn.005a4194
xor ebx, ebx
jmp 0x5a3a69
lea eax, [ebp - 0x3c]
push edi
push 0x40011
push eax
call fcn.005a509c
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.005a5468
add esp, 0x14
mov dword [esp], 2
mov edx, dword [ebp - 0x3c]
lea eax, [esp + 4]
mov dword [eax], edx
mov ecx, dword [ebp - 0x38]
mov dword [eax + 4], ecx
mov esi, dword [ebp - 0x34]
lea ecx, [0x852570]
mov dword [eax + 8], esi
lea edx, [esp + 0x14]
mov edi, dword [ebp - 0x30]
mov dword [eax + 0xc], edi
mov eax, dword [ebp - 0x2c]
mov dword [edx], eax
mov eax, dword [ebp - 0x28]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [edx + 0xc], eax
mov edx, dword [ecx]
lea eax, [esp + 0x24]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 0xc], edx
call fcn.005a4194
push ebx
call fcn.00743035
pop ecx
xor ebx, ebx
jmp 0x5a3a69
push 0x4006e
lea eax, [ebp - 0x1c]
push eax
call fcn.005a509c
add esp, 8
mov dword [esp], 2
mov eax, dword [ebp - 0x1c]
lea ecx, [esp + 4]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [ecx + 8], eax
lea edx, [esp + 0x14]
mov eax, dword [ebp - 0x10]
mov dword [ecx + 0xc], eax
lea eax, [0x852570]
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
call fcn.005a4194
jmp 0x5a3a4c