Function at 0x100417b8
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006ba54
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xd4
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x10041aab
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0x64], eax
lea eax, [ebp + 0x50]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x48]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x30], 0x2fec
mov dword [ebp - 0x7c], 0x100089e8
cmp dword [ebp - 0x30], 0x3164
jle 0x100418c9
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
and dword [ebp - 0x18], 0
jmp 0x10041862
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x243b
jge 0x100418c9
and dword [ebp - 0x1c], 0
jmp 0x10041878
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x4fc5
jge 0x100418c7
and dword [ebp - 0x14], 0
jmp 0x1004188e
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x6bd5
jge 0x100418c5
mov eax, dword [ebp - 0x18]
and eax, dword [ebp - 0x1c]
or eax, dword [ebp - 0x14]
cdq
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xd0], edx
push dword [ebp - 0xd0]
push dword [ebp - 0xd4]
mov ecx, 0x106128d8
call fcn.10012ec5
jmp 0x10041887
jmp 0x10041871
jmp 0x1004185b
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x74], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x30], 0x2f57
jge 0x100418e9
mov edx, dword [ebp - 0x7c]
mov ecx, 0x106128d8
call fcn.10015cdf
jmp 0x10041905
or dword [ebp - 4], 0xffffffff
jmp 0x1004190f
mov eax, dword [ebp - 0xbc]
movzx eax, byte [eax]
test eax, eax
je 0x1004194b
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x5c], eax
push 0
mov ecx, dword [ebp - 0x5c]
call fcn.10013282
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
jmp 0x10041aa6
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x34]
cmp dword [eax], 0
jne 0x10041a10
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0
je 0x100419fc
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0
je 0x100419fc
mov dword [ebp - 0x40], 1
jmp 0x10041a00
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x58]
mov eax, dword [eax]
add eax, dword [ebp - 0x40]
jne 0x10041a10
and dword [ebp - 0x38], 0
jmp 0x10041a17
mov dword [ebp - 0x38], 1
mov eax, dword [ebp - 0x60]
mov dword [eax], 1
cmp dword [ebp - 0x38], 1
jg 0x10041a2f
mov dword [ebp - 0x2c], 1
jmp 0x10041a33
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
cmp dword [ebp - 0x2c], eax
jl 0x10041a46
mov dword [ebp - 0x68], 1
jmp 0x10041a4a
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0x70]
mov eax, dword [eax]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0x78]
cmp dword [eax], 0
jae 0x10041a7c
mov dword [ebp - 0x3c], 1
jmp 0x10041a80
and dword [ebp - 0x3c], 0
cmp dword [ebp - 0x3c], 0x184bf4d8
jle 0x10041a92
mov dword [ebp - 0x24], 1
jmp 0x10041a96
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
jmp 0x10041b4b
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0x44]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x4c]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xa0], eax
push dword [ebp - 0x88]
push 1
push 0x3a7c
push dword [ebp - 0x90]
push 0x9fd
push dword [ebp - 0x98]
push dword [ebp - 0xa0]
push dword [ebp - 0xa8]
push dword [ebp - 0xb0]
push dword [ebp - 0xb8]
push 0x792a
push 0x27e6
push 0x5439
push 0x4384
push dword [ebp - 0xc0]
call fcn.1002edec
add esp, 0x3c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret