Function at 0x4a2500
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x699f77
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x748068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x26c], eax
call fcn.00405eb0
test eax, eax
jne 0x4a254b
xor al, al
jmp 0x4a27df
lea ecx, [ebp - 0x234]
call fcn.00405d80
mov dword [ebp - 4], 0
mov ecx, edi
call fcn.00405e20
mov esi, eax
mov edx, dword [esi + 0x14]
cmp edx, 8
jb 0x4a2570
mov eax, dword [esi]
cmp word [eax], 0x40
mov ecx, edi
jne 0x4a25b0
call fcn.00405eb0
dec eax
lea ecx, [ebp - 0x24c]
push eax
mov edx, edi
call fcn.00430310
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
push eax
call fcn.00405cf0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call fcn.00405ce0
jmp 0x4a25d7
call fcn.00405e20
lea ecx, [ebp - 0x234]
cmp ecx, eax
je 0x4a25d7
mov eax, esi
cmp edx, 8
jb 0x4a25c8
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x234]
push eax
call fcn.00405ec0
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00652810
add esp, 0xc
lea eax, [ebp - 0x21c]
lea ecx, [ebp - 0x234]
push 0x104
push eax
call fcn.00405ca0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
cmp edi, 0x104
jb 0x4a2665
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0064ff25
add esp, 4
lea ecx, [ebp - 0x234]
mov esi, eax
push edi
push esi
call fcn.00405ca0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
call fcn.004060d0
add esp, 4
lea ecx, [ebp - 0x234]
push eax
push esi
call fcn.00405ec0
push esi
call fcn.00650374
add esp, 4
jmp 0x4a2687
lea eax, [ebp - 0x21c]
push eax
call fcn.004060d0
add esp, 4
lea ecx, [ebp - 0x234]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00405ec0
push 0x6e3284
lea ecx, [ebp - 0x264]
call fcn.00405d30
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x234]
call fcn.00405e20
lea ecx, [ebp - 0x264]
mov esi, eax
call fcn.00405e20
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x4a26bd
mov edx, dword [eax]
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x4a26c7
mov ecx, dword [esi]
push dword [eax + 0x10]
mov edi, dword [esi + 0x10]
push edx
push 0
push edi
push ecx
mov dword [ebp - 0x268], edi
call fcn.004308a0
mov edi, dword [esi + 0x14]
add esp, 0x14
mov dword [ebp - 0x270], eax
cmp eax, 0xffffffff
je 0x4a278e
push eax
lea edx, [ebp - 0x234]
lea ecx, [ebp - 0x24c]
call fcn.004302a0
add esp, 4
mov byte [ebp - 4], 3
mov ecx, ebx
push eax
call fcn.00405cf0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24c]
call fcn.00405ce0
mov esi, dword [ebp - 0x26c]
test esi, esi
je 0x4a278a
lea ecx, [ebp - 0x234]
call fcn.00405eb0
mov edx, eax
lea ecx, [ebp - 0x264]
sub edx, dword [ebp - 0x270]
call fcn.00405eb0
sub edx, eax
lea ecx, [ebp - 0x24c]
push edx
lea edx, [ebp - 0x234]
call fcn.00430310
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24c]
call fcn.00405ca0
xor edx, edx
mov ecx, eax
call fcn.0042fce0
mov dword [esi], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24c]
call fcn.00405ce0
mov bl, 1
jmp 0x4a27bc
lea ecx, [ebp - 0x234]
call fcn.00405e20
cmp ebx, eax
je 0x4a27b2
cmp edi, 8
jb 0x4a27a4
mov esi, dword [esi]
push dword [ebp - 0x268]
mov ecx, ebx
push esi
call fcn.00405ec0
cmp dword [ebp - 0x26c], 0
sete bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x264]
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 - 0x14]
xor ecx, ebp
call fcn.0064fb08
mov esp, ebp
pop ebp
ret