Function at 0x1004f020
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x254]
sub esp, 0x254
push 0xffffffffffffffff
push 0x10130068
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x10193008]
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.10004aa0
test eax, eax
jne 0x1004f076
xor al, al
jmp 0x1004f26f
lea ecx, [ebp + 0x30]
call fcn.100056b0
mov dword [ebp - 4], 0
mov ecx, edi
call fcn.10004bd0
mov esi, eax
mov edx, dword [esi + 0x14]
cmp edx, 8
jb 0x1004f098
mov eax, dword [esi]
cmp word [eax], 0x40
mov ecx, edi
jne 0x1004f0cf
call fcn.10004aa0
dec eax
lea ecx, [ebp + 0x18]
push eax
mov edx, edi
call fcn.10056f90
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x30]
push eax
call fcn.10005630
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x18]
call fcn.10004ae0
jmp 0x1004f0f0
call fcn.10004bd0
lea ecx, [ebp + 0x30]
cmp ecx, eax
je 0x1004f0f0
mov eax, esi
cmp edx, 8
jb 0x1004f0e4
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp + 0x30]
push eax
call fcn.10004c40
push 0x208
lea eax, [ebp + 0x48]
push 0
push eax
call fcn.100fdf90
add esp, 0xc
lea eax, [ebp + 0x48]
lea ecx, [ebp + 0x30]
push 0x104
push eax
call fcn.10006600
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
cmp edi, 0x104
jb 0x1004f16f
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100fc903
add esp, 4
lea ecx, [ebp + 0x30]
mov esi, eax
push edi
push esi
call fcn.10006600
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
call fcn.100058f0
add esp, 4
lea ecx, [ebp + 0x30]
push eax
push esi
call fcn.10004c40
push esi
call fcn.100fc703
add esp, 4
jmp 0x1004f188
lea eax, [ebp + 0x48]
push eax
call fcn.100058f0
add esp, 4
lea ecx, [ebp + 0x30]
push eax
lea eax, [ebp + 0x48]
push eax
call fcn.10004c40
push 0x1015aba8
lea ecx, [ebp]
call fcn.10008180
mov byte [ebp - 4], 2
lea eax, [ebp]
push ecx
push eax
lea ecx, [ebp + 0x30]
call fcn.10013f70
mov esi, eax
cmp esi, 0xffffffff
je 0x1004f225
push esi
lea edx, [ebp + 0x30]
lea ecx, [ebp + 0x18]
call fcn.10056f20
add esp, 4
mov byte [ebp - 4], 3
mov ecx, ebx
push eax
call fcn.10005630
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x18]
call fcn.10004ae0
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x1004f221
lea ecx, [ebp + 0x30]
call fcn.10004aa0
mov edx, eax
lea ecx, [ebp]
sub edx, esi
call fcn.10004aa0
sub edx, eax
lea ecx, [ebp + 0x18]
push edx
lea edx, [ebp + 0x30]
call fcn.10056f90
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x18]
call fcn.10006600
mov ecx, eax
call fcn.10056990
mov dword [edi], eax
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x18]
call fcn.10004ae0
mov bl, 1
jmp 0x1004f252
lea ecx, [ebp + 0x30]
call fcn.10004bd0
cmp ebx, eax
je 0x1004f24b
call fcn.10004bd0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x1004f240
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, ebx
call fcn.10004c40
cmp dword [ebp - 0x10], 0
sete bl
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.10004ae0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x30]
call fcn.10004ae0
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.100fc1a9
lea esp, [ebp + 0x254]
pop ebp
ret