Function at 0x1001ff9d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x10020047
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
test eax, eax
je 0x1002001d
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x1002001b
mov eax, dword [ebp - 0x2c]
push dword [eax]
push 0x7022
push 1
push 0x57c7
push 0x247f
push 0x59c8
push 1
mov eax, dword [ebp - 0x14]
push dword [eax]
call fcn.10018890
add esp, 0x20
jmp 0x10020042
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
test eax, eax
je 0x10020042
push 0x1810
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
jmp 0x100201e0
mov dword [ebp - 0xc], 0xf6af1124
mov dword [ebp - 0xc], 0xffffffee
jmp 0x1002005e
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x17
jge 0x100201d8
mov dword [ebp - 0x3c], 0x1692
cmp dword [ebp - 0x3c], 0x9d7
jge 0x10020187
lea eax, [ebp - 0x40]
push eax
mov ecx, 0x10657d50
call fcn.1002a017
and dword [ebp - 8], 0
jmp 0x10020097
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x40]
jge 0x10020187
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x58]
push eax
mov ecx, 0x10657d50
call fcn.1002a26c
mov ecx, eax
call fcn.1002a26c
mov ecx, eax
call fcn.1002a26c
movsd xmm0, qword [ebp - 0x50]
comisd xmm0, xmmword [ebp - 0x48]
jae 0x100200f9
movsd xmm0, qword [ebp - 0x48]
ucomisd xmm0, qword [0x100087c0]
lahf
test ah, 0x44
jnp 0x100200f9
movsd xmm0, qword [ebp - 0x50]
ucomisd xmm0, qword [0x100087c0]
lahf
test ah, 0x44
jp 0x1002010c
mov eax, dword [ebp - 8]
inc eax
push eax
push 0x10008298
call fcn.1004ef5e
pop ecx
pop ecx
jmp 0x10020090
movsd xmm0, qword [ebp - 0x58]
divsd xmm0, qword [ebp - 0x48]
movsd qword [ebp - 0x70], xmm0
movsd xmm0, qword [ebp - 0x48]
mulsd xmm0, qword [ebp - 0x48]
movsd xmm1, qword [ebp - 0x50]
mulsd xmm1, qword [ebp - 0x50]
subsd xmm0, xmm1
push ecx
push ecx
movsd qword [esp], xmm0
call fcn.1004c764
pop ecx
pop ecx
fstp qword [ebp - 0x60]
movsd xmm0, qword [ebp - 0x58]
divsd xmm0, qword [ebp - 0x60]
movsd qword [ebp - 0x68], xmm0
movsd xmm0, qword [ebp - 0x68]
subsd xmm0, qword [ebp - 0x70]
push ecx
push ecx
movsd qword [esp], xmm0
call fcn.1004f4ef
pop ecx
pop ecx
push ecx
push ecx
fstp qword [esp]
mov eax, dword [ebp - 8]
inc eax
push eax
push 0x100082b4
call fcn.1004ef5e
add esp, 0x10
jmp 0x10020090
mov dword [ebp - 0x10], 0
jmp 0x10020197
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 2
jge 0x100201aa
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x78], 0xfffe
jmp 0x10020190
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x100201c4
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x78], 0
je 0x100201d3
jmp 0x100201d8
jmp 0x10020057
push 0
call fcn.1000a39b
pop ecx
mov esp, ebp
pop ebp
ret