Function at 0x1004f2c0
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x254]
sub esp, 0x254
push 0xffffffffffffffff
push 0x10130408
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x10194008]
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.10004a70
test eax, eax
jne 0x1004f316
xor al, al
jmp 0x1004f50f
lea ecx, [ebp + 0x30]
call fcn.10005680
mov dword [ebp - 4], 0
mov ecx, edi
call fcn.10004ba0
mov esi, eax
mov edx, dword [esi + 0x14]
cmp edx, 8
jb 0x1004f338
mov eax, dword [esi]
cmp word [eax], 0x40
mov ecx, edi
jne 0x1004f36f
call fcn.10004a70
dec eax
lea ecx, [ebp + 0x18]
push eax
mov edx, edi
call fcn.10057230
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x30]
push eax
call fcn.10005600
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x18]
call fcn.10004ab0
jmp 0x1004f390
call fcn.10004ba0
lea ecx, [ebp + 0x30]
cmp ecx, eax
je 0x1004f390
mov eax, esi
cmp edx, 8
jb 0x1004f384
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp + 0x30]
push eax
call fcn.10004c10
push 0x208
lea eax, [ebp + 0x48]
push 0
push eax
call fcn.100fe280
add esp, 0xc
lea eax, [ebp + 0x48]
lea ecx, [ebp + 0x30]
push 0x104
push eax
call fcn.100065d0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
cmp edi, 0x104
jb 0x1004f40f
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100fcbf3
add esp, 4
lea ecx, [ebp + 0x30]
mov esi, eax
push edi
push esi
call fcn.100065d0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
call fcn.100058c0
add esp, 4
lea ecx, [ebp + 0x30]
push eax
push esi
call fcn.10004c10
push esi
call fcn.100fc9f3
add esp, 4
jmp 0x1004f428
lea eax, [ebp + 0x48]
push eax
call fcn.100058c0
add esp, 4
lea ecx, [ebp + 0x30]
push eax
lea eax, [ebp + 0x48]
push eax
call fcn.10004c10
push 0x1015bb8c
lea ecx, [ebp]
call fcn.10008150
mov byte [ebp - 4], 2
lea eax, [ebp]
push ecx
push eax
lea ecx, [ebp + 0x30]
call fcn.100141f0
mov esi, eax
cmp esi, 0xffffffff
je 0x1004f4c5
push esi
lea edx, [ebp + 0x30]
lea ecx, [ebp + 0x18]
call fcn.100571c0
add esp, 4
mov byte [ebp - 4], 3
mov ecx, ebx
push eax
call fcn.10005600
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x18]
call fcn.10004ab0
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x1004f4c1
lea ecx, [ebp + 0x30]
call fcn.10004a70
mov edx, eax
lea ecx, [ebp]
sub edx, esi
call fcn.10004a70
sub edx, eax
lea ecx, [ebp + 0x18]
push edx
lea edx, [ebp + 0x30]
call fcn.10057230
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x18]
call fcn.100065d0
mov ecx, eax
call fcn.10056c30
mov dword [edi], eax
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x18]
call fcn.10004ab0
mov bl, 1
jmp 0x1004f4f2
lea ecx, [ebp + 0x30]
call fcn.10004ba0
cmp ebx, eax
je 0x1004f4eb
call fcn.10004ba0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x1004f4e0
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, ebx
call fcn.10004c10
cmp dword [ebp - 0x10], 0
sete bl
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.10004ab0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x30]
call fcn.10004ab0
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.100fc499
lea esp, [ebp + 0x254]
pop ebp
ret