Function at 0x5a5cc0
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x148]
sub esp, 0x148
push 0xffffffffffffffff
push 0x5e92bd
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x616930]
xor eax, ebp
mov dword [ebp + 0x144], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x100
lea eax, [ebp + 0x44]
push eax
push 0x43986c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x5a5ee0
lea ecx, [ebp + 0x44]
mov dword [ebp + 0x3c], 0
mov dword [ebp + 0x40], 0xf
lea edx, [ecx + 1]
mov byte [ebp + 0x2c], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5a5d30
sub ecx, edx
lea eax, [ebp + 0x44]
push ecx
push eax
lea ecx, [ebp + 0x2c]
call fcn.00459b10
cmp dword [ebp + 0x40], 0x10
lea eax, [ebp + 0x2c]
mov ebx, dword [ebp + 0x2c]
cmovae eax, ebx
mov dword [ebp - 4], 0
cmp dword [ebp + 0x3c], 9
mov dword [ebp - 0x10], eax
jb 0x5a5ea3
mov edi, eax
nop dword [eax]
cmp byte [edi], 0x43
jne 0x5a5dc5
mov ecx, edi
mov edx, 0x439878
mov esi, 5
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x5a5d92
add ecx, 4
add edx, 4
sub esi, 4
jae 0x5a5d81
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x5a5db9
cmp esi, 0xfffffffd
je 0x5a5db5
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x5a5db9
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x5a5db9
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x5a5db9
xor eax, eax
jmp 0x5a5dbe
sbb eax, eax
or eax, 1
test eax, eax
je 0x5a5dd0
mov eax, dword [ebp - 0x10]
cmp edi, eax
je 0x5a5ea3
dec edi
jmp 0x5a5d70
sub edi, dword [ebp - 0x10]
jne 0x5a5ea3
lea eax, [ebp]
push eax
call fcn.005a3230
add esp, 4
cmp byte [ebp + 0x1c], 0
je 0x5a5e69
cmp byte [ebp], 0
mov byte [ebp + 0x1c], 0
je 0x5a5e24
mov eax, dword [ebp + 0x18]
mov byte [ebp - 4], 1
cmp eax, 0x10
jb 0x5a5e0e
inc eax
lea ecx, [ebp + 4]
push eax
push dword [ebp + 4]
call fcn.00459d30
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x18], 0xf
mov byte [ebp + 4], 0
mov byte [ebp], 0
mov eax, dword [ebp + 0x40]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x5a5e65
lea ecx, [eax + 1]
mov eax, ebx
mov dword [ebp - 4], 2
cmp ecx, 0x1000
jb 0x5a5e5b
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5a5f05
push ecx
push ebx
call fcn.005bc4f7
add esp, 8
mov al, 1
jmp 0x5a5ee2
cmp byte [ebp], 0
je 0x5a5ea3
mov edx, dword [ebp + 0x18]
cmp edx, 0x10
jb 0x5a5ea3
mov ecx, dword [ebp + 4]
inc edx
mov eax, ecx
mov byte [ebp - 4], 3
cmp edx, 0x1000
jb 0x5a5e99
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5a5f0a
push edx
push ecx
call fcn.005bc4f7
add esp, 8
mov eax, dword [ebp + 0x40]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x5a5ee0
lea ecx, [eax + 1]
mov eax, ebx
mov dword [ebp - 4], 4
cmp ecx, 0x1000
jb 0x5a5ed6
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5a5f0f
push ecx
push ebx
call fcn.005bc4f7
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x144]
xor ecx, ebp
call fcn.005bca10
lea esp, [ebp + 0x148]
pop ebp
ret
call fcn.004d7f94
call fcn.004d7f94
call fcn.004d7f94
int3