Function at 0x644254
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 0x64428b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xcb
jne 0x6442c8
xor ebx, ebx
jmp 0x6442b9
push esi
call fcn.0083e7de
pop ecx
mov ebx, eax
test ebx, ebx
je 0x6443d9
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x6442b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x64434d
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.006228f4
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.00622cc0
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, [0xba9518]
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.00621a50
xor ebx, ebx
jmp 0x6442b9
lea eax, [ebp - 0x3c]
push edi
push 0x40011
push eax
call fcn.006228f4
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.00622cc0
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, [0xba9518]
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.00621a50
push ebx
call fcn.0083e304
pop ecx
xor ebx, ebx
jmp 0x6442b9
push 0x4006e
lea eax, [ebp - 0x1c]
push eax
call fcn.006228f4
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, [0xba9518]
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.00621a50
jmp 0x64429c