Function at 0x1001a0e3
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1001a28c
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
neg ecx
cmp dword [eax], ecx
jne 0x1001a16c
mov dword [ebp - 0x18], 1
jmp 0x1001a170
and dword [ebp - 0x18], 0
push 0
mov ecx, dword [ebp - 0xc]
call fcn.1001587a
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 4]
mov esi, dword [eax]
push 0
mov ecx, dword [ebp - 0xc]
call fcn.1001587a
cmp esi, dword [eax]
jle 0x1001a1a3
mov dword [ebp - 0x1c], 1
jmp 0x1001a1a7
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x1c], eax
jle 0x1001a1ba
mov dword [ebp - 0x20], 1
jmp 0x1001a1be
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x20], 0xffff
jbe 0x1001a1d0
mov dword [ebp - 0x24], 1
jmp 0x1001a1d4
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp dword [ebp - 0x24], eax
jge 0x1001a1f3
push 0
mov ecx, dword [ebp - 0xc]
call fcn.1001587a
cmp dword [eax], 0
jne 0x1001a1f3
and dword [ebp - 0x2c], 0
jmp 0x1001a1fa
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x2c]
sub ecx, 0x47073e70
cmp dword [eax], ecx
jl 0x1001a225
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x1001a225
mov dword [ebp - 0x30], 1
jmp 0x1001a229
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x58]
mov eax, dword [eax]
add eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx]
jne 0x1001a241
mov dword [ebp - 0x34], 1
jmp 0x1001a245
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x34], eax
jl 0x1001a258
mov dword [ebp - 0x14], 1
jmp 0x1001a25c
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
push 0
mov ecx, dword [ebp - 0xc]
call fcn.1001587a
mov eax, dword [eax]
cmp eax, dword [ebp - 0x14]
jne 0x1001a27e
mov dword [ebp - 0x38], 1
jmp 0x1001a282
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
jmp 0x1001a29b
push 0x1991
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
pop esi
mov esp, ebp
pop ebp
ret