Function at 0x45f2e0
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x254]
sub esp, 0x254
push 0xffffffffffffffff
push 0x532598
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x588088]
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 edi, ecx
mov eax, dword [ebp + 0x25c]
mov dword [ebp - 0x10], eax
call fcn.00402ae0
mov esi, eax
cmp dword [esi + 0x10], 0
jne 0x45f33a
xor al, al
jmp 0x45f53f
lea ecx, [ebp + 0x30]
call fcn.00402ac0
mov dword [ebp - 4], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x45f353
mov eax, dword [esi]
cmp word [eax], 0x40
jne 0x45f386
mov eax, dword [esi + 0x10]
lea ecx, [ebp + 0x18]
dec eax
mov edx, edi
push eax
call fcn.0048b670
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x30]
push eax
call fcn.004044e0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x18]
call fcn.00402a60
jmp 0x45f3ac
push edi
call fcn.00402db0
lea ecx, [ebp + 0x30]
add esp, 4
cmp ecx, eax
je 0x45f3ac
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x45f3a0
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp + 0x30]
push eax
call fcn.00402b50
push 0x208
lea eax, [ebp + 0x48]
push 0
push eax
call fcn.004e42f0
add esp, 0xc
lea eax, [ebp + 0x48]
lea ecx, [ebp + 0x30]
push 0x104
push eax
call fcn.00403390
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
cmp edi, 0x104
jb 0x45f42b
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e2282
add esp, 4
lea ecx, [ebp + 0x30]
mov esi, eax
push edi
push esi
call fcn.00403390
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
call fcn.00402d60
add esp, 4
lea ecx, [ebp + 0x30]
push eax
push esi
call fcn.00402b50
push esi
call fcn.004e1d0d
add esp, 4
jmp 0x45f444
lea eax, [ebp + 0x48]
push eax
call fcn.00402d60
add esp, 4
lea ecx, [ebp + 0x30]
push eax
lea eax, [ebp + 0x48]
push eax
call fcn.00402b50
push 0x55d5f0
lea ecx, [ebp]
call fcn.00402a70
mov byte [ebp - 4], 2
lea eax, [ebp]
push ecx
push eax
lea ecx, [ebp + 0x30]
call fcn.0042d220
mov edi, eax
cmp edi, 0xffffffff
je 0x45f4ed
push edi
lea edx, [ebp + 0x30]
lea ecx, [ebp + 0x18]
call fcn.0048b600
add esp, 4
mov byte [ebp - 4], 3
mov ecx, ebx
push eax
call fcn.004044e0
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x18]
call fcn.00402a60
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x45f4e9
lea ecx, [ebp + 0x30]
call fcn.00402ae0
lea ecx, [ebp]
mov esi, dword [eax + 0x10]
call fcn.00402ae0
lea edx, [ebp + 0x30]
lea ecx, [ebp + 0x18]
mov eax, dword [eax + 0x10]
sub esi, eax
sub esi, edi
push esi
call fcn.0048b670
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x18]
call fcn.00403390
push 0
push eax
call fcn.0048b020
add esp, 8
mov dword [ebx], eax
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x18]
call fcn.00402a60
mov bl, 1
jmp 0x45f522
lea eax, [ebp + 0x30]
push eax
call fcn.00402db0
add esp, 4
cmp ebx, eax
je 0x45f51a
lea ecx, [ebp + 0x30]
call fcn.00402ae0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x45f50f
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, ebx
call fcn.00402b50
mov ebx, dword [ebp - 0x10]
test ebx, ebx
sete bl
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00402a60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x30]
call fcn.00402a60
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.004e1a24
lea esp, [ebp + 0x254]
pop ebp
ret