Function at 0x1004f884
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007fd23
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1004fad6
lea eax, [ebp + 0x10]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x64]
movzx eax, byte [eax]
test eax, eax
je 0x1004facc
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
jmp 0x1004f8fc
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0xfffffff2
je 0x1004faca
mov dword [ebp - 0x28], 0x9d1
mov dword [ebp - 0x5c], 0x1000d170
cmp dword [ebp - 0x28], 0xb28
jle 0x1004f994
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
and dword [ebp - 0x20], 0
jmp 0x1004f932
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x2511
jge 0x1004f994
and dword [ebp - 0x14], 0
jmp 0x1004f948
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x5562
jge 0x1004f992
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
sar eax, cl
cdq
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
push dword [ebp - 0x44]
push dword [ebp - 0x48]
lea ecx, [ebp - 0xa8]
call fcn.1001105e
pop ecx
pop ecx
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
call fcn.10020ec4
push eax
call fcn.10069ba3
pop ecx
lea ecx, [ebp - 0xa8]
call fcn.10020eba
jmp 0x1004f941
jmp 0x1004f92b
mov dword [ebp - 0x7c], 0x662a
mov dword [ebp - 0x78], 0x662a
mov dword [ebp - 0x74], 0x662a
mov dword [ebp - 0x70], 0x662a
lea ecx, [ebp - 0x21]
call fcn.100212ab
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x90]
call fcn.100212ae
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x88]
call fcn.1002125a
and dword [ebp - 4], 0
cmp dword [ebp - 0x28], 0x621
jge 0x1004f9f2
push dword [ebp - 0x5c]
call fcn.10069ba3
pop ecx
mov dword [ebp - 0x3c], 0xf82baef
mov dword [ebp - 0x2c], 0x750a
mov dword [ebp - 0x60], 0x1000d1b0
cmp dword [ebp - 0x2c], 0x7666
jle 0x1004fa7d
and dword [ebp - 0x18], 0
jmp 0x1004fa1d
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x1bf4
jge 0x1004fa7d
and dword [ebp - 0x1c], 0
jmp 0x1004fa33
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x3e3c
jge 0x1004fa7b
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x1c]
cdq
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], edx
push dword [ebp - 0x50]
push dword [ebp - 0x54]
lea ecx, [ebp - 0xc0]
call fcn.1001105e
pop ecx
pop ecx
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
call fcn.10020ec4
push eax
call fcn.10069ba3
pop ecx
lea ecx, [ebp - 0xc0]
call fcn.10020eba
jmp 0x1004fa2c
jmp 0x1004fa16
cmp dword [ebp - 0x2c], 0x749d
jge 0x1004fa8f
push dword [ebp - 0x60]
call fcn.10069ba3
pop ecx
push 0
push 1
push 0x2f68
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x34]
push 0x63ba
lea eax, [ebp - 0x3c]
push eax
call fcn.1004e460
add esp, 0x20
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.10021280
jmp 0x1004f8f1
jmp 0x1004fad4
push 0
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x1004fb08
push 0x59d9
push 0x18f8
push 0
push 0x1606
push 0x1b99
push 0x9e6
push 0x5b30
push 0xf44
push 0x187f
call fcn.10063c1b
add esp, 0x24
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret