Function at 0x1003f174
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006950a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xcc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1003f581
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x54], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0xa0]
movzx eax, byte [eax]
test eax, eax
je 0x1003f532
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x40], 0x6222
mov dword [ebp - 0xcc], 0x10008a58
cmp dword [ebp - 0x40], 0x6292
jle 0x1003f2ee
and dword [ebp - 0x20], 0
jmp 0x1003f285
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x217a
jge 0x1003f2ee
and dword [ebp - 0x28], 0
jmp 0x1003f29b
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x76e7
jge 0x1003f2ec
and dword [ebp - 0x1c], 0
jmp 0x1003f2b1
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x2bf6
jge 0x1003f2ea
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x1c]
shl eax, cl
xor eax, dword [ebp - 0x20]
cdq
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], edx
push dword [ebp - 0xc4]
push dword [ebp - 0xc8]
mov ecx, 0x106105b8
call fcn.1002073d
jmp 0x1003f2aa
jmp 0x1003f294
jmp 0x1003f27e
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x34], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x40], 0x60e1
jge 0x1003f314
mov edx, dword [ebp - 0xcc]
mov ecx, 0x106105b8
call fcn.10023d18
jmp 0x1003f330
or dword [ebp - 4], 0xffffffff
jmp 0x1003f33a
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x64], 0x227e
cmp dword [ebp - 0x64], 0xbbb
jge 0x1003f3d7
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x38]
push eax
push 0x100086c4
call fcn.1005199d
add esp, 0xc
mov eax, dword [ebp - 0x38]
shl eax, 1
cmp dword [ebp - 0x4c], eax
jge 0x1003f38e
push 0x10008adc
call fcn.10051a56
pop ecx
jmp 0x1003f3d7
push 0x10008ae0
call fcn.10051a56
pop ecx
mov dword [ebp - 0x30], 1
jmp 0x1003f3a9
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x38]
jge 0x1003f3be
push 0x10008ae4
call fcn.10051696
pop ecx
jmp 0x1003f3a2
mov eax, dword [ebp - 0x38]
lea eax, [eax + eax - 2]
mov ecx, dword [ebp - 0x4c]
sub ecx, eax
push ecx
push 0x10008ae8
call fcn.10051696
pop ecx
pop ecx
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x50]
mov dword [eax], 0x689a
push 1
mov ecx, dword [ebp - 0x18]
call fcn.100208d0
mov eax, dword [eax]
dec eax
cmp eax, 0x689a
jg 0x1003f406
mov dword [ebp - 0x74], 1
jmp 0x1003f40a
and dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x3c]
mov esi, dword [eax]
push 1
mov ecx, dword [ebp - 0x18]
call fcn.100208d0
cmp dword [eax], esi
jl 0x1003f426
mov dword [ebp - 0x24], 1
jmp 0x1003f42a
and dword [ebp - 0x24], 0
push 0
mov ecx, dword [ebp - 0x34]
call fcn.100208d0
push dword [eax]
mov ecx, dword [ebp - 0x18]
call fcn.100208d0
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
cmp dword [ebp - 0x24], 0x8807383c
jae 0x1003f45d
mov dword [ebp - 0x44], 1
jmp 0x1003f461
and dword [ebp - 0x44], 0
imul eax, dword [ebp - 0x44], 0
mov ecx, dword [ebp - 0x48]
mov dword [ecx], eax
mov eax, dword [ebp - 0x48]
cmp dword [eax], 1
jge 0x1003f4ee
mov eax, 0x758e356e
test eax, eax
je 0x1003f4ee
push 0
mov ecx, dword [ebp - 0x34]
call fcn.100208d0
push dword [eax]
mov ecx, dword [ebp - 0x18]
call fcn.100208d0
cmp dword [eax], 0
je 0x1003f4ee
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x94], 0x12bad479
push dword [ebp - 0x18]
push 0x1988
push dword [ebp - 0x34]
push dword [ebp - 0x3c]
push 0x38ef
push 0
push 1
push 0x1e5a
push dword [ebp - 0x7c]
push dword [ebp - 0x84]
push dword [ebp - 0x8c]
lea eax, [ebp - 0x94]
push eax
push dword [ebp - 0x50]
lea eax, [ebp - 0x9c]
push eax
call fcn.10044a81
add esp, 0x38
jmp 0x1003f530
mov dword [ebp - 0xdc], 0x1cf2bba2
mov dword [ebp - 0xd8], 0x1cf2bba2
mov dword [ebp - 0xd4], 0x1cf2bba2
mov dword [ebp - 0xd0], 0x1cf2bba2
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0xdc]
push 4
pop ecx
imul ecx, ecx, 3
mov dword [ebp + ecx - 0xdc], eax
jmp 0x1003f57f
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [eax], 0
jmp 0x1003f55d
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 1
jge 0x1003f57f
mov byte [ebp - 0x11], 0
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x1003f57d
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
jmp 0x1003f552
jmp 0x1003f5a9
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xb4], eax
push dword [ebp - 0xb4]
push 1
push dword [ebp - 0xbc]
call fcn.1003cf81
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret