Function at 0x427170
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
xor eax, eax
push eax
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], esi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x4272cc
push esi
call dword [0x4594cc]
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x427268
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x4271c7
mov eax, ebx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x4271b8
push edi
push 0x40011
lea eax, [ebp - 0x3c]
push eax
call fcn.00416410
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.00418700
add esp, 0x14
mov eax, dword [ebp - 0x3c]
lea edi, [esp + 4]
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
mov dword [esp], 2
mov dword [edi], eax
mov dword [edi + 4], edx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], esi
lea edi, [esp + 0x14]
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov dword [edi], eax
mov dword [edi + 4], edx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], esi
lea edi, [esp + 0x24]
mov eax, dword [0x4e0ea0]
mov edx, dword [0x4e0ea4]
mov ecx, dword [0x4e0ea8]
mov esi, dword [0x4e0eac]
mov dword [edi], eax
mov dword [edi + 4], edx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], esi
call fcn.00416830
push ebx
call dword [0x4594d0]
add esp, 4
xor ebx, ebx
jmp 0x4271b8
push 0x4006e
lea eax, [ebp - 0x1c]
push eax
call fcn.00416410
add esp, 8
mov ecx, dword [ebp - 0x1c]
lea edx, [esp + 4]
mov eax, dword [ebp - 0x18]
mov dword [esp], 2
mov dword [edx], ecx
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [edx + 8], ecx
mov dword [edx + 0xc], eax
lea eax, [esp + 0x14]
mov edx, dword [0x4e0ea0]
mov dword [eax], edx
mov edx, dword [0x4e0ea4]
mov dword [eax + 4], edx
mov ecx, dword [0x4e0ea8]
mov edx, dword [0x4e0eac]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.00416830
jmp 0x4271ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xcb
jne 0x4272e3
xor ebx, ebx
jmp 0x4271b8
push edi
push 0x40011
lea eax, [ebp - 0x3c]
push eax
call fcn.00416410
push ebx
lea eax, [ebp - 0x2c]
push eax
call fcn.00418700
add esp, 0x14
mov ecx, dword [ebp - 0x34]
lea esi, [esp + 4]
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x30]
mov dword [esp], 2
mov dword [esi + 8], ecx
lea ecx, [esp + 0x14]
mov edi, dword [ebp - 0x2c]
mov dword [esi], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 4], edx
mov dword [esi + 0xc], ebx
mov dword [ecx], edi
mov edi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 8], eax
lea eax, [esp + 0x24]
mov ebx, dword [0x4e0ea0]
mov esi, dword [0x4e0ea4]
mov dword [ecx + 4], edi
mov dword [ecx + 0xc], edx
mov dword [eax], ebx
mov dword [eax + 4], esi
mov ebx, dword [0x4e0ea8]
mov esi, dword [0x4e0eac]
mov dword [eax + 8], ebx
mov dword [eax + 0xc], esi
call fcn.00416830
xor ebx, ebx
jmp 0x4271b8