Function at 0x4a71c0
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x254]
sub esp, 0x254
push 0xffffffffffffffff
push 0x50e3c8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x54e434]
xor eax, ebp
mov dword [ebp + 0x250], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov eax, ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x25c]
mov dword [ebp - 0x14], ecx
mov ecx, eax
call fcn.0040ac10
mov esi, eax
cmp dword [esi + 0x10], 0
jne 0x4a721f
xor al, al
jmp 0x4a741f
lea ecx, [ebp + 0x30]
call fcn.0040a7c0
mov dword [ebp - 4], 0
mov eax, esi
mov edi, dword [esi + 0x14]
cmp edi, 8
jb 0x4a723a
mov eax, dword [esi]
cmp word [eax], 0x40
jne 0x4a726e
mov eax, dword [esi + 0x10]
lea ecx, [ebp + 0x18]
mov edx, dword [ebp - 0x10]
dec eax
push eax
call fcn.00413080
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x30]
push eax
call fcn.0040a700
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x18]
call fcn.0040a6f0
jmp 0x4a7292
mov ecx, dword [ebp - 0x10]
call fcn.0040ac10
lea ecx, [ebp + 0x30]
cmp ecx, eax
je 0x4a7292
mov eax, esi
cmp edi, 8
jb 0x4a7286
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp + 0x30]
push eax
call fcn.0040ae30
push 0x208
lea eax, [ebp + 0x48]
push 0
push eax
call fcn.004d4490
add esp, 0xc
lea eax, [ebp + 0x48]
lea ecx, [ebp + 0x30]
push 0x104
push eax
call fcn.0040a590
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
cmp edi, 0x104
jb 0x4a7311
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d1e1e
add esp, 4
lea ecx, [ebp + 0x30]
mov esi, eax
push edi
push esi
call fcn.0040a590
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
call fcn.0040af90
add esp, 4
lea ecx, [ebp + 0x30]
push eax
push esi
call fcn.0040ae30
push esi
call fcn.004d14b2
add esp, 4
jmp 0x4a732a
lea eax, [ebp + 0x48]
push eax
call fcn.0040af90
add esp, 4
lea ecx, [ebp + 0x30]
push eax
lea eax, [ebp + 0x48]
push eax
call fcn.0040ae30
push 0x52df10
lea ecx, [ebp]
call fcn.0040a780
mov byte [ebp - 4], 2
lea eax, [ebp]
push 0
push eax
lea ecx, [ebp + 0x30]
call fcn.0040a540
mov edi, eax
cmp edi, 0xffffffff
je 0x4a73d4
push edi
lea edx, [ebp + 0x30]
lea ecx, [ebp + 0x18]
call fcn.00413010
add esp, 4
mov byte [ebp - 4], 3
mov ecx, ebx
push eax
call fcn.0040a700
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x18]
call fcn.0040a6f0
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4a73d0
lea ecx, [ebp + 0x30]
call fcn.0040ac10
lea ecx, [ebp]
mov esi, dword [eax + 0x10]
call fcn.0040ac10
lea edx, [ebp + 0x30]
lea ecx, [ebp + 0x18]
mov eax, dword [eax + 0x10]
sub esi, eax
sub esi, edi
push esi
call fcn.00413080
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x18]
call fcn.0040a590
push 0
push eax
call fcn.004129a0
add esp, 8
mov dword [ebx], eax
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x18]
call fcn.0040a6f0
mov bl, 1
jmp 0x4a7402
lea ecx, [ebp + 0x30]
call fcn.0040ac10
cmp ebx, eax
je 0x4a73fa
call fcn.0040ac10
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4a73ef
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, ebx
call fcn.0040ae30
mov ebx, dword [ebp - 0x14]
test ebx, ebx
sete bl
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.0040a6f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x30]
call fcn.0040a6f0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x250]
xor ecx, ebp
call fcn.004d12c9
lea esp, [ebp + 0x254]
pop ebp
ret