Function at 0x4a7bc0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69abfc
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x748068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x234]
mov ebx, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x254], ebx
call fcn.00406ff0
mov dword [ebp - 4], 0
mov edx, 0x6ceca0
lea ecx, [ebp - 0x234]
call fcn.00430090
mov edx, 0x6ceca0
lea ecx, [ebp - 0x234]
call fcn.00430120
lea ecx, [ebp - 0x234]
call fcn.00405c90
test al, al
je 0x4a7c43
xor bl, bl
jmp 0x4a7f24
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00652810
add esp, 0xc
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x234]
push 0x104
push eax
call fcn.00405ca0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4a7c9d
lea eax, [ebp - 0x218]
push eax
call fcn.004060d0
add esp, 4
lea ecx, [ebp - 0x234]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00405ec0
lea ecx, [ebp - 0x234]
call fcn.00437590
lea ecx, [ebp - 0x234]
test al, al
je 0x4a7cdc
call fcn.00405e20
cmp ebx, eax
je 0x4a7cd5
call fcn.00405e20
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4a7cca
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, ebx
call fcn.00405ec0
mov bl, 1
jmp 0x4a7f24
call fcn.00405e20
mov edi, eax
mov dword [ebp - 0x250], edi
cmp dword [edi + 0x14], 8
jb 0x4a7cf7
mov eax, dword [edi]
mov dword [ebp - 0x250], eax
mov esi, dword [edi + 0x10]
mov dword [ebp - 0x21c], 0x22
test esi, esi
je 0x4a7dc1
lea ecx, [ebp - 0x21c]
push ecx
push esi
push eax
call fcn.0041d8e0
add esp, 0xc
test eax, eax
je 0x4a7dc1
sub eax, dword [ebp - 0x250]
cmp eax, 2
jae 0x4a7dc1
cmp dword [edi + 0x14], 8
mov ecx, edi
mov dword [ebp - 0x250], edi
jb 0x4a7d4a
mov ecx, dword [edi]
mov dword [ebp - 0x250], ecx
mov dword [ebp - 0x21c], 0x22
cmp esi, 1
jbe 0x4a7dc1
lea eax, [ebp - 0x21c]
push eax
lea eax, [esi - 1]
push eax
lea eax, [ecx + 2]
push eax
call fcn.0041d8e0
add esp, 0xc
test eax, eax
je 0x4a7dc1
sub eax, dword [ebp - 0x250]
sar eax, 1
cmp eax, 0xffffffff
je 0x4a7dc1
dec eax
lea ecx, [ebp - 0x234]
push eax
push 1
lea eax, [ebp - 0x26c]
push eax
call fcn.0040c900
mov byte [ebp - 4], 1
mov ecx, ebx
push eax
call fcn.00405cf0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x26c]
call fcn.00405ce0
mov ecx, ebx
call fcn.00437590
test al, al
jne 0x4a7cd5
lea ecx, [ebp - 0x24c]
xor esi, esi
call fcn.00405d80
mov byte [ebp - 4], 2
mov dword [ebp - 0x21c], 0x20
nop dword [eax]
cmp dword [edi + 0x14], 8
lea ebx, [esi + 1]
mov ecx, edi
mov dword [ebp - 0x250], edi
jb 0x4a7df9
mov ecx, dword [edi]
mov dword [ebp - 0x250], ecx
mov eax, dword [edi + 0x10]
cmp ebx, eax
jae 0x4a7f13
lea edx, [ebp - 0x21c]
sub eax, ebx
push edx
push eax
lea eax, [ecx + ebx*2]
push eax
call fcn.0041d8e0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4a7f13
sub esi, dword [ebp - 0x250]
sar esi, 1
cmp esi, 0xffffffff
je 0x4a7f13
cmp esi, ebx
je 0x4a7de0
push esi
push 0
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x234]
call fcn.0040c900
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24c]
push eax
call fcn.00405cf0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x26c]
call fcn.00405ce0
lea ecx, [ebp - 0x24c]
call fcn.00436900
test al, al
jne 0x4a7ee0
push 0x6de158
call fcn.004060d0
add esp, 4
lea ecx, [ebp - 0x24c]
push eax
push 0x6de158
call fcn.0040cab0
lea ecx, [ebp - 0x24c]
call fcn.00436900
test al, al
je 0x4a7de0
lea ecx, [ebp - 0x24c]
call fcn.00405e20
mov esi, dword [ebp - 0x254]
cmp esi, eax
je 0x4a7edc
call fcn.00405e20
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4a7ed1
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.00405ec0
mov bl, 1
jmp 0x4a7f15
lea ecx, [ebp - 0x24c]
call fcn.00405e20
mov esi, dword [ebp - 0x254]
cmp esi, eax
je 0x4a7edc
call fcn.00405e20
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4a7f04
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.00405ec0
mov bl, 1
jmp 0x4a7f15
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call fcn.00405ce0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.00405ce0
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 - 0x10]
xor ecx, ebp
call fcn.0064fb08
mov esp, ebp
pop ebp
ret 8