Function at 0x1001cfd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1b0
mov eax, dword [0x1003c00c]
xor eax, esp
mov dword [esp + 0x1ac], eax
push esi
mov esi, ecx
push edi
mov dword [esp + 0x30], esi
cmp dword [esi + 0x58], 0
jge 0x1001d05b
test byte [esi + 4], 2
lea eax, [esp + 0x70]
mov dword [esp + 0x78], 0xffffffff
lea ecx, [esi + 0x40]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x70], Ordinal_2
push eax
mov dword [esp + 0x78], 0x1b00d9
je 0x1001d04f
mov dword [esp + 0x78], 0x20002
call fcn.10020080
mov eax, dword [esi + 0x40]
dec eax
mov dword [esi + 0x58], eax
mov ecx, dword [esi + 0x14]
mov edx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [esi + 8], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esp + 0x20], edx
test ecx, ecx
je 0x1001d0b6
mov eax, dword [0x100604b8]
test eax, eax
je 0x1001d0ac
dec dword [eax + 0x370]
push ecx
call edx
mov edx, dword [esp + 0x24]
add esp, 4
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x1001d0d2
mov eax, dword [0x100604b8]
test eax, eax
je 0x1001d0cc
dec dword [eax + 0x370]
push ecx
call edx
add esp, 4
mov ecx, dword [esi + 0x4c]
xor edi, edi
mov edx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ecx
mov dword [esp + 0x50], edx
test ecx, ecx
jle 0x1001d138
cmp ecx, 8
mov eax, ecx
mov ecx, 8
cmovl eax, ecx
test eax, eax
jle 0x1001d138
mov ecx, dword [0x100604b8]
test ecx, ecx
je 0x1001d124
inc dword [ecx + 0x370]
imul eax, eax, 0xc4
push eax
call edx
mov edx, dword [esp + 0x54]
add esp, 4
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x34]
mov dword [esp + 0x3c], eax
test eax, eax
jle 0x1001d175
cmp eax, 8
mov ecx, eax
mov eax, 8
cmovl ecx, eax
test ecx, ecx
jle 0x1001d175
mov eax, dword [0x100604b8]
test eax, eax
je 0x1001d163
inc dword [eax + 0x370]
lea eax, [ecx + ecx*2]
shl eax, 3
push eax
call edx
add esp, 4
mov dword [esp + 0x48], eax
mov edi, eax
imul ecx, dword [esp + 0x44], 0xc4
push ecx
push 0
push dword [esp + 0x3c]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x48]
add esp, 0xc
lea eax, [eax + eax*2]
shl eax, 3
push eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x14], 0
cmp dword [esi + 0x4c], 0
jle 0x1001d2e1
mov edx, dword [esp + 0x34]
xor eax, eax
add edx, 0xa4
mov dword [esp + 0x10], eax
mov dword [esp + 8], edx
nop dword [eax + eax]
mov ecx, dword [esi + 0x54]
mov dword [edx - 4], 0xffffffff
add ecx, eax
xor edx, edx
mov dword [esp + 0x2c], ecx
cmp dword [esi + 0x34], edx
jle 0x1001d7cc
or eax, 0xffffffff
nop
cmp eax, 0xffffffff
jne 0x1001d221
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 0x3c]
mov eax, dword [eax + 0x70]
cmp eax, dword [ecx + edx*4]
mov eax, dword [esp + 8]
jne 0x1001d20f
mov dword [eax - 4], edx
mov eax, edx
jmp 0x1001d212
mov eax, dword [eax - 4]
inc edx
cmp edx, dword [esi + 0x34]
jl 0x1001d1f0
cmp eax, 0xffffffff
je 0x1001d7cc
mov eax, dword [esp + 0x2c]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [eax + 0xc]
call fcn.1001a3b0
mov ecx, dword [esp + 8]
mov edx, esi
add ecx, 0xffffff5c
push eax
mov dword [esp + 0x10], ecx
call fcn.100141a0
add esp, 4
test eax, eax
je 0x1001d7cc
mov eax, dword [esp + 0xc]
mov esi, 0x10038704
mov edx, dword [esp + 8]
mov eax, dword [eax + 0xa0]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], ecx
mov eax, dword [eax + 0x30]
test eax, eax
cmovne esi, eax
mov dword [edx - 8], esi
cmp word [esi], 0
je 0x1001d2a0
movzx eax, word [esi + 2]
test ax, ax
je 0x1001d29c
mov ecx, eax
cmp dword [edx], ecx
cmovge ecx, dword [edx]
add esi, 4
mov dword [edx], ecx
cmp word [esi], 0
jne 0x1001d281
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x24]
inc dword [edi + ecx*8]
mov ecx, dword [edx]
mov eax, dword [esp + 0x10]
cmp dword [edi + esi*8 + 4], ecx
cmovge ecx, dword [edi + esi*8 + 4]
add edx, 0xc4
mov dword [edi + esi*8 + 4], ecx
add eax, 0x74
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x30]
inc ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 8], edx
mov dword [esp + 0x10], eax
cmp ecx, dword [esi + 0x4c]
jl 0x1001d1d0
mov eax, dword [esp + 0x44]
xor esi, esi
mov dword [esp + 0x28], esi
test eax, eax
jle 0x1001d5aa
mov edx, dword [esp + 0x34]
add edx, 0xa8
mov dword [esp + 0x24], eax
mov dword [esp + 8], edx
mov eax, dword [edx - 8]
lea esi, [edx + 4]
mov ecx, esi
lea edi, [eax + eax*2]
mov eax, dword [edx - 4]
add eax, 0x20
mov dword [esp + 0x2c], edi
sar eax, 5
push eax
call fcn.10012fc0
mov eax, dword [esi]
mov ecx, dword [esp + 8]
shl eax, 2
push eax
push 0
push dword [ecx + 0xc]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x54]
add esp, 0xc
cmp dword [eax + edi*8 + 0xc], 0
lea esi, [eax + edi*8]
jne 0x1001d36f
mov eax, dword [eax + edi*8 + 4]
lea ecx, [esi + 0xc]
add eax, 0x20
sar eax, 5
push eax
call fcn.10012fc0
mov eax, dword [esi + 0xc]
shl eax, 2
push eax
push 0
push dword [esi + 0x14]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, dword [esp + 8]
mov eax, dword [edx - 0xc]
mov dword [esp + 0x38], eax
movzx ecx, word [eax]
test cx, cx
je 0x1001d442
nop word [eax + eax]
movzx eax, word [eax + 2]
test ax, ax
je 0x1001d442
movzx edi, cx
cmp edi, eax
ja 0x1001d42b
nop dword [eax + eax]
mov eax, dword [esp + 0x2c]
mov ecx, edi
and ecx, 0x1f
mov edx, 1
shl edx, cl
mov esi, edi
mov ecx, dword [esp + 0x48]
sar esi, 5
mov dword [esp + 0xc], edx
mov eax, dword [ecx + eax*8 + 0x14]
test dword [eax + esi*4], edx
jne 0x1001d41a
mov ecx, dword [esp + 8]
mov edx, edi
add ecx, 0xffffff58
call fcn.100146a0
mov edx, dword [esp + 8]
test eax, eax
je 0x1001d41e
inc dword [edx]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x48]
inc dword [ecx + eax*8 + 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x48]
or dword [eax + esi*4], ecx
mov eax, dword [esp + 0x2c]
mov eax, dword [edx + eax*8 + 0x14]
or dword [eax + esi*4], ecx
inc dword [esp + 0x28]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x38]
inc edi
movzx eax, word [eax + 2]
cmp edi, eax
jle 0x1001d3b0
mov eax, dword [esp + 0x38]
add eax, 4
mov dword [esp + 0x38], eax
movzx ecx, word [eax]
test cx, cx
jne 0x1001d390
add edx, 0xc4
sub dword [esp + 0x24], 1
mov dword [esp + 8], edx
jne 0x1001d305
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x44]
add ecx, 0xc0
mov dword [esp + 8], ecx
mov dword [esp + 0x10], eax
nop dword [eax]
mov esi, dword [ecx - 0x18]
cmp esi, dword [ecx - 4]
jle 0x1001d4dd
mov eax, dword [0x100604b8]
test eax, eax
je 0x1001d487
inc dword [eax + 0x370]
lea eax, [esi*4]
push eax
call dword [esp + 0x54]
mov ecx, dword [esp + 0xc]
add esp, 4
mov edi, eax
mov edx, dword [ecx]
test edx, edx
je 0x1001d4d8
mov ecx, dword [ecx - 8]
shl ecx, 2
push ecx
push edx
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x14]
add esp, 0xc
mov ecx, dword [eax]
test ecx, ecx
je 0x1001d4cc
mov eax, dword [0x100604b8]
test eax, eax
je 0x1001d4cc
dec dword [eax + 0x370]
push ecx
call dword [esp + 0x24]
mov ecx, dword [esp + 0xc]
add esp, 4
mov dword [ecx], edi
mov dword [ecx - 4], esi
mov esi, dword [ecx - 0xc]
mov eax, dword [ecx - 0x14]
mov dword [esp + 0x24], esi
lea eax, [esi + eax*4]
mov dword [esp + 0x4c], eax
cmp esi, eax
jae 0x1001d556
xor edx, edx
mov dword [esp + 0x14], edx
mov eax, dword [esi]
mov dword [esp + 0x18], eax
test eax, eax
je 0x1001d542
xor edi, edi
mov esi, 1
nop dword [eax]
test esi, eax
je 0x1001d536
and edx, 0xffffffe0
lea eax, [esp + 0xc]
add edx, edi
add ecx, 0xfffffff8
push eax
mov dword [esp + 0x10], edx
call fcn.10012ae0
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
inc edi
rol esi, 1
cmp edi, 0x20
jl 0x1001d510
mov esi, dword [esp + 0x24]
add esi, 4
add edx, 0x20
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], edx
cmp esi, dword [esp + 0x4c]
jb 0x1001d4f8
mov edx, dword [ecx - 0xc]
test edx, edx
je 0x1001d58d
mov eax, dword [0x100604b8]
mov dword [ecx - 0x10], 0
mov dword [ecx - 0x14], 0
test eax, eax
je 0x1001d57a
dec dword [eax + 0x370]
push edx
call dword [esp + 0x24]
mov ecx, dword [esp + 0xc]
add esp, 4
mov dword [ecx - 0xc], 0
add ecx, 0xc4
sub dword [esp + 0x10], 1
mov dword [esp + 8], ecx
jne 0x1001d470
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x28]
cmp dword [esp + 0x3c], 0
jle 0x1001d607
mov esi, dword [esp + 0x3c]
lea eax, [edi + 0x14]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x24], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x1001d5f3
mov dword [eax - 4], 0
mov dword [eax - 8], 0
mov eax, dword [0x100604b8]
test eax, eax
je 0x1001d5e3
dec dword [eax + 0x370]
push ecx
call edi
mov eax, dword [esp + 0x28]
add esp, 4
mov dword [eax], 0
add eax, 0x18
mov dword [esp + 0x24], eax
sub esi, 1
jne 0x1001d5c0
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x28]
test edi, edi
je 0x1001d62a
mov eax, dword [0x100604b8]
test eax, eax
je 0x1001d61a
dec dword [eax + 0x370]
push edi
call dword [esp + 0x24]
add esp, 4
mov dword [esp + 0x48], 0
xor edi, edi
mov dword [esp + 0x5c], 0
push esi
lea ecx, [esp + 0x5c]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x28], edi
call fcn.1001ff20
test esi, esi
jle 0x1001d690
cmp esi, 8
mov ecx, esi
mov eax, 8
cmovl ecx, eax
test ecx, ecx
jle 0x1001d690
mov eax, dword [0x100604b8]
test eax, eax
je 0x1001d676
inc dword [eax + 0x370]
lea eax, [ecx*8]
sub eax, ecx
shl eax, 2
push eax
call dword [esp + 0x54]
add esp, 4
mov dword [esp + 0x24], eax
mov edi, eax
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
shl ecx, 4
push ecx
push 0
push eax
mov dword [esp + 0x38], eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esi*8]
sub eax, esi
shl eax, 2
push eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
mov edx, dword [esp + 0x50]
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x14], eax
add esp, 0xc
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], ecx
test edx, edx
jle 0x1001d936
mov edi, dword [esp + 0x34]
xor esi, esi
add edi, 0x98
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], edx
nop word [eax + eax]
mov edx, dword [edi + 0x10]
test edx, edx
je 0x1001d91a
mov eax, dword [esp + 0x3c]
add dword [esp + 0x3c], edx
add dword [esp + 0x28], edx
shl eax, 4
add eax, dword [esp + 0x2c]
mov dword [edi - 4], eax
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [esp + 0x24]
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x30]
mov dword [edi], ecx
mov edx, dword [eax + 0x54]
mov eax, dword [edx + esi + 0x10]
add edx, esi
mov dword [edi - 0x1c], eax
mov eax, dword [edi + 0x28]
mov dword [edi - 0x14], eax
mov eax, dword [edi + 0x20]
mov dword [edi - 0x18], 0
mov dword [edi - 0x10], eax
mov dword [edi - 0xc], ecx
mov al, byte [edx + 0x14]
mov byte [edi - 8], al
mov al, byte [edx + 0x18]
mov byte [edi - 7], al
movss xmm1, dword [edx + 0x10]
comiss xmm1, dword [0x10038b64]
mov dword [esp + 0x38], edx
jbe 0x1001d7d6
mov esi, dword [esp + 0x10]
mov eax, 0x100
mov edi, dword [edi - 0x7c]
cwde
mov esi, dword [esi - 0x94]
movzx ecx, byte [edi + esi + 4]
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edi + esi + 5]
add cx, ax
mov eax, 0x100
movsx edx, cx
movzx ecx, byte [edi + esi + 6]
cwde
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edi + esi + 7]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
add cx, ax
movsx eax, cx
sub edx, eax
movd xmm0, edx
jmp 0x1001d7fc
mov byte [esp + 0x1f], 0
jmp 0x1001e400
mov edx, dword [edi - 0x84]
mov eax, dword [edi - 0x94]
xorps xmm1, xmmword [0x10039050]
movzx ecx, byte [edx + eax + 0x13]
movzx eax, byte [edx + eax + 0x12]
shl eax, 8
add ecx, eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mov eax, dword [esp + 0x30]
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov eax, dword [eax + 0x10]
divss xmm1, xmm0
mov dword [esp + 0x64], eax
movss dword [esp + 0x18], xmm1
cmp dword [edi + 0x20], ecx
jle 0x1001d912
mov dword [esp + 0x4c], ecx
mov edx, dword [edi + 0x28]
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x70]
push eax
mov edx, dword [edx + ecx*4]
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x74]
push eax
mov eax, dword [esp + 0x48]
lea ecx, [edi - 0x98]
sub esp, 8
movd xmm3, dword [eax + 0x18]
movd xmm2, dword [eax + 0x14]
cvtdq2ps xmm3, xmm3
mov dword [esp + 4], 0
mov dword [esp], 0
cvtdq2ps xmm2, xmm2
mulss xmm3, xmm1
mulss xmm2, xmm1
call fcn.100146a0
mov edx, eax
lea ecx, [edi - 0x98]
call fcn.10016de0
mov eax, dword [esp + 0x7c]
add esp, 0x18
mov esi, dword [esp + 0x4c]
movzx edx, ax
mov eax, dword [esp + 0x38]
movss xmm1, dword [esp + 0x18]
movzx ecx, word [eax + 0x14]
sub cx, word [esp + 0x68]
mov eax, dword [edi - 4]
dec cx
add cx, dx
add cx, word [esp + 0x6c]
mov word [esi + eax + 4], cx
mov eax, dword [esp + 0x38]
movzx ecx, word [eax + 0x18]
sub cx, word [esp + 0x54]
mov eax, dword [edi - 4]
dec cx
add cx, dx
add cx, word [esp + 0x40]
mov word [esi + eax + 6], cx
mov eax, dword [edi - 4]
movzx ecx, word [esi + eax + 6]
movzx eax, word [esi + eax + 4]
add esi, 0x10
imul ecx, eax
mov eax, dword [esp + 8]
mov dword [esp + 0x4c], esi
add eax, ecx
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 8], eax
mov dword [esp + 0x10], ecx
cmp ecx, dword [edi + 0x20]
jl 0x1001d827
mov esi, dword [esp + 0x14]
jmp 0x1001d916
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x28]
add edi, 0xc4
add esi, 0x74
sub dword [esp + 0xc], 1
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], esi
jne 0x1001d700
mov edi, dword [esp + 0x30]
mov ecx, dword [edi + 0xc]
mov dword [edi + 0x20], 0
test ecx, ecx
jg 0x1001d9aa
movd xmm0, eax
xorps xmm1, xmm1
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x1001d961
sqrtsd xmm0, xmm0
jmp 0x1001d966
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
cvtsd2ss xmm0, xmm0
cvttss2si eax, xmm0
inc eax
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm0, dword [0x10038c7c]
jb 0x1001d986
mov ecx, 0x1000
jmp 0x1001d9aa
comiss xmm0, dword [0x10038c78]
jb 0x1001d996
mov ecx, 0x800
jmp 0x1001d9aa
comiss xmm0, dword [0x10038c6c]
mov ecx, 0x200
mov eax, 0x400
cmovae ecx, eax
push 0x2c
lea eax, [esp + 0x74]
mov dword [edi + 0x1c], ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [edi + 0x10]
add esp, 0xc
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [0x100604b8]
test eax, eax
je 0x1001d9db
inc dword [eax + 0x370]
push 0x30
call dword [esp + 0x54]
mov ecx, dword [0x100604b8]
mov esi, eax
mov eax, dword [esp + 0x10]
add esp, 4
sub eax, dword [esp + 0x18]
mov dword [esp + 8], esi
mov dword [esp + 0x40], eax
test ecx, ecx
je 0x1001da06
inc dword [ecx + 0x370]
shl eax, 3
push eax
call dword [esp + 0x54]
add esp, 4
test esi, esi
je 0x1001da8e
test eax, eax
je 0x1001da7c
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x78], edx
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x40]
push edx
push eax
mov dword [esp + 0xa0], eax
mov eax, 0x8000
sub eax, ecx
mov dword [esp + 0x8c], ecx
push eax
mov ecx, esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x98], 1
mov dword [esp + 0x9c], 1
mov dword [esp + 0x94], 0
call fcn.100133e0
add esp, 0xc
jmp 0x1001dab2
mov eax, dword [0x100604b8]
test eax, eax
je 0x1001da8b
dec dword [eax + 0x370]
push esi
jmp 0x1001daa3
test eax, eax
je 0x1001daaa
mov ecx, dword [0x100604b8]
test ecx, ecx
je 0x1001daa2
dec dword [ecx + 0x370]
push eax
call dword [esp + 0x24]
add esp, 4
mov eax, dword [esp + 0x74]
mov dword [esp + 8], eax
push dword [edi + 0x40]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x64], 0
call fcn.1001ff20
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x60]
mov dword [esp + 0xc], eax
shl eax, 4
push eax
push 0
push edx
call sub.VCRUNTIME140.dll_memset
xor esi, esi
add esp, 0xc
cmp dword [edi + 0x40], esi
jle 0x1001db25
mov edx, dword [esp + 0x60]
xor ecx, ecx
add edx, 6
mov eax, dword [edi + 0x48]
lea ecx, [ecx + 0x1c]
inc esi
lea edx, [edx + 0x10]
movzx eax, word [eax + ecx - 0x18]
mov word [edx - 0x12], ax
mov eax, dword [edi + 0x48]
movzx eax, word [eax + ecx - 0x16]
mov word [edx - 0x10], ax
cmp esi, dword [edi + 0x40]
jl 0x1001db01
push dword [esp + 0x58]
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0xc]
call fcn.10013860
mov eax, dword [esp + 0x5c]
add esp, 4
test eax, eax
jle 0x1001db93
mov edx, dword [esp + 0x60]
xor esi, esi
add edx, 0xa
nop word [eax + eax]
cmp dword [edx + 2], 0
je 0x1001db84
mov ecx, dword [edi + 0x48]
movzx eax, word [edx - 2]
mov word [ecx + esi + 8], ax
mov ecx, dword [edi + 0x48]
movzx eax, word [edx]
mov word [ecx + esi + 0xa], ax
movzx eax, word [edx]
movzx ecx, word [edx - 4]
add ecx, eax
mov eax, dword [esp + 0xc]
cmp dword [edi + 0x20], ecx
cmovge ecx, dword [edi + 0x20]
mov dword [edi + 0x20], ecx
add esi, 0x1c
add edx, 0x10
sub eax, 1
mov dword [esp + 0xc], eax
jne 0x1001db50
mov eax, dword [esp + 0x60]
test eax, eax
je 0x1001dbb3
mov ecx, dword [0x100604b8]
test ecx, ecx
je 0x1001dbab
dec dword [ecx + 0x370]
push eax
call dword [esp + 0x24]
add esp, 4
mov esi, dword [esp + 0x44]
test esi, esi
jle 0x1001dc33
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x44]
add esi, 0xa8
mov dword [esp + 0x18], eax
nop dword [eax]
mov eax, dword [esi]
test eax, eax
je 0x1001dc22
mov edx, dword [esi - 0x14]
mov ecx, dword [esp + 8]
push eax
call fcn.10013860
xor ecx, ecx
add esp, 4
mov dword [esp + 0xc], ecx
cmp dword [esi], ecx
jle 0x1001dc22
xor edx, edx
mov eax, dword [esi - 0x14]
cmp dword [eax + edx + 0xc], 0
je 0x1001dc16
movzx ecx, word [eax + edx + 0xa]
movzx eax, word [eax + edx + 6]
add ecx, eax
cmp dword [edi + 0x20], ecx
cmovge ecx, dword [edi + 0x20]
mov dword [edi + 0x20], ecx
mov ecx, dword [esp + 0xc]
inc ecx
add edx, 0x10
mov dword [esp + 0xc], ecx
cmp ecx, dword [esi]
jl 0x1001dbf2
add esi, 0xc4
sub dword [esp + 0x18], 1
jne 0x1001dbd0
mov esi, dword [esp + 0x44]
test byte [edi + 4], 1
mov eax, dword [edi + 0x20]
jne 0x1001dc61
lea ecx, [eax - 1]
mov eax, ecx
sar eax, 1
or ecx, eax
mov eax, ecx
sar eax, 2
or ecx, eax
mov eax, ecx
sar eax, 4
or ecx, eax
mov eax, ecx
sar eax, 8
or ecx, eax
mov eax, ecx
sar eax, 0x10
or eax, ecx
mov ecx, dword [edi + 0x1c]
inc eax
movss xmm1, dword [0x10038bd4]
movaps xmm2, xmm1
mov dword [edi + 0x20], eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
imul ecx, eax
divss xmm2, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov eax, dword [0x100604b8]
movss dword [edi + 0x24], xmm2
divss xmm1, xmm0
movss dword [edi + 0x28], xmm1
test eax, eax
je 0x1001dca5
inc dword [eax + 0x370]
push ecx
call dword [esp + 0x54]
mov ecx, dword [edi + 0x20]
add esp, 4
imul ecx, dword [edi + 0x1c]
mov dword [edi + 0x14], eax
push ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [edi + 0x14]
add esp, 0xc
mov dword [esp + 0x94], eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0x7c], eax
test esi, esi
jle 0x1001de70
mov ecx, dword [esp + 0x34]
xor eax, eax
mov dword [esp + 0x4c], eax
mov edx, esi
mov dword [esp + 8], ecx
mov dword [esp + 0x10], esi
mov esi, dword [edi + 0x54]
add esi, eax
cmp dword [ecx + 0xa8], 0
je 0x1001de4c
push dword [ecx + 0x94]
lea eax, [ecx + 0x7c]
mov edx, ecx
push ecx
push eax
lea ecx, [esp + 0x7c]
call fcn.10019f00
movss xmm1, dword [esi + 0x44]
add esp, 0xc
ucomiss xmm1, dword [0x10038bd4]
movss dword [esp + 0x40], xmm1
lahf
test ah, 0x44
jnp 0x1001de36
xor esi, esi
nop dword [eax]
movd xmm0, esi
mov eax, esi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10038f80]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
call fcn.10033540
movss xmm1, dword [esp + 0x40]
mov edx, 0xff
cmp eax, edx
movzx ecx, al
cmovbe edx, ecx
mov byte [esp + esi + 0xb0], dl
inc esi
cmp esi, 0x100
jb 0x1001dd40
mov ecx, dword [esp + 8]
xor eax, eax
mov dword [esp + 0x14], eax
mov edx, dword [ecx + 0x94]
cmp dword [ecx + 0xa8], eax
jle 0x1001de3a
lea ecx, [edx + 4]
mov edx, dword [esp + 8]
mov dword [esp + 0x18], ecx
nop dword [eax]
cmp dword [ecx + 8], 0
je 0x1001de1e
mov eax, dword [edi + 0x1c]
movzx edx, word [ecx + 6]
movzx esi, word [ecx]
imul edx, eax
mov dword [esp + 0xc], eax
movzx eax, word [ecx + 4]
add edx, eax
add edx, dword [edi + 0x14]
movzx edi, word [ecx + 2]
test edi, edi
je 0x1001de12
mov eax, dword [esp + 0xc]
nop dword [eax]
xor ecx, ecx
test esi, esi
je 0x1001de07
nop word [eax + eax]
movzx eax, byte [ecx + edx]
mov al, byte [esp + eax + 0xb0]
mov byte [ecx + edx], al
inc ecx
cmp ecx, esi
jl 0x1001ddf0
mov eax, dword [esp + 0xc]
dec edi
add edx, eax
test edi, edi
jg 0x1001dde0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x30]
inc eax
add ecx, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
cmp eax, dword [edx + 0xa8]
jl 0x1001ddb0
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x10]
mov dword [ecx + 0x94], 0
add eax, 0x74
add ecx, 0xc4
sub edx, 1
mov dword [esp + 0x4c], eax
mov dword [esp + 8], ecx
mov dword [esp + 0x10], edx
jne 0x1001dcf0
mov esi, dword [esp + 0x74]
jmp 0x1001de74
mov esi, dword [esp + 8]
cmp dword [esp + 0x98], 0
je 0x1001de8d
mov eax, dword [0x100604b8]
test eax, eax
je 0x1001de8d
dec dword [eax + 0x370]
push dword [esp + 0x98]
call dword [esp + 0x24]
add esp, 4
test esi, esi
je 0x1001deae
mov eax, dword [0x100604b8]
test eax, eax
je 0x1001deae
dec dword [eax + 0x370]
push esi
mov esi, dword [esp + 0x24]
call esi
mov ecx, dword [esp + 0x30]
add esp, 4
test ecx, ecx
je 0x1001dedd
mov eax, dword [0x100604b8]
test eax, eax
je 0x1001decf
dec dword [eax + 0x370]
push ecx
call esi
add esp, 4
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x44]
test eax, eax
jle 0x1001e3b4
mov edx, dword [esp + 0x34]
xor ecx, ecx
movss xmm4, dword [0x10038ba8]
add edx, 4
mov dword [esp + 0x28], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x50], eax
jmp 0x1001df14
mov edi, dword [esp + 0x30]
cmp dword [edx + 0xa4], 0
je 0x1001e33c
mov eax, dword [edi + 0x54]
mov edi, dword [edx + 0x18]
add eax, ecx
mov esi, dword [edx]
mov dword [esp + 0x4c], eax
mov eax, dword [eax + 0x70]
movzx ecx, byte [edi + esi + 4]
movzx edx, byte [edi + esi + 5]
mov dword [esp + 0x14], eax
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
add dx, cx
movzx ecx, byte [edi + esi + 6]
movsx eax, dx
movzx edx, byte [edi + esi + 7]
mov edi, dword [esp + 0x4c]
mov dword [esp + 0xc], eax
mov eax, 0x100
cwde
movsx ecx, cx
movss xmm1, dword [edi + 0x10]
imul ecx, eax
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x14]
add dx, cx
movsx ecx, dx
sub eax, ecx
mov dword [esp + 0x54], ecx
cmp byte [edi + 0x3c], 0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movss dword [esp + 0x40], xmm1
jne 0x1001e03a
mov ecx, esi
call fcn.1001e820
movd xmm1, dword [esp + 0xc]
xorps xmm4, xmm4
mov eax, dword [edi + 0x10]
cvtdq2ps xmm1, xmm1
mov dword [esi + 0x10], eax
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x38], ecx
comiss xmm1, xmm4
mulss xmm1, dword [esp + 0x40]
seta al
lea eax, [eax*2 - 1]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movd xmm1, dword [esp + 0x54]
cvtdq2ps xmm1, xmm1
cvttss2si eax, xmm0
movd xmm2, eax
xor eax, eax
comiss xmm1, xmm4
mulss xmm1, dword [esp + 0x40]
seta al
movss xmm4, dword [0x10038ba8]
cvtdq2ps xmm2, xmm2
lea eax, [eax*2 - 1]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esi + 0x48], xmm2
addss xmm0, xmm1
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esi + 0x4c], xmm0
jmp 0x1001e043
movss xmm2, dword [esi + 0x48]
mov ecx, dword [esp + 0x30]
inc word [esi + 0x40]
addss xmm2, xmm4
mov edx, dword [esp + 0x38]
movss xmm3, dword [edi + 0x28]
movss dword [esp + 0xac], xmm3
mov dword [esp + 0x10], 0
cmp dword [edx + 0xa4], 0
cvttss2si eax, xmm2
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, dword [edi + 0x2c]
movss dword [esp + 0x68], xmm0
jle 0x1001e338
mov dword [esp + 0x3c], 0
mov eax, dword [edx + 0xbc]
mov esi, dword [esp + 0x10]
movss xmm0, dword [edi + 0x34]
movss dword [esp + 0x18], xmm0
mov eax, dword [eax + esi*4]
mov dword [esp + 0x54], eax
mov eax, dword [edx + 0x94]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x40], eax
movss xmm1, dword [edx + eax + 0x10]
comiss xmm0, xmm1
ja 0x1001e0d4
movss xmm0, dword [edi + 0x38]
minss xmm0, xmm1
movss dword [esp + 0x18], xmm0
mov esi, dword [esp + 0x14]
ucomiss xmm1, xmm0
movss dword [esp + 0xc], xmm3
lahf
test ah, 0x44
jnp 0x1001e10a
cmp byte [edi + 0x1c], 0
subss xmm0, xmm1
mulss xmm0, xmm4
je 0x1001e100
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, xmm3
movss dword [esp + 0xc], xmm0
movd xmm0, dword [ecx + 0x1c]
movss xmm1, dword [0x10038bd4]
cvtdq2ps xmm0, xmm0
movaps xmm2, xmm1
divss xmm2, xmm0
movd xmm0, dword [ecx + 0x20]
mov ecx, dword [esp + 0x40]
cvtdq2ps xmm0, xmm0
movzx eax, word [edx + ecx]
divss xmm1, xmm0
movss xmm0, dword [edx + ecx + 8]
movss dword [esp + 0x40], xmm0
movss xmm0, dword [edx + ecx + 0xc]
movss dword [esp + 0x6c], xmm0
movss xmm0, dword [edx + ecx + 0x14]
movss dword [esp + 0x64], xmm0
movss xmm0, dword [edx + ecx + 0x18]
movss dword [esp + 8], xmm0
movd xmm0, eax
movzx eax, word [edx + ecx + 2]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
movss dword [esp + 0x9c], xmm0
movd xmm0, eax
movzx eax, word [edx + ecx + 4]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 0xa0], xmm0
movd xmm0, eax
movzx eax, word [edx + ecx + 6]
lea ecx, [esi + 0x20]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
movss dword [esp + 0xa4], xmm0
movd xmm0, eax
mov eax, dword [esi + 0x20]
cvtdq2ps xmm0, xmm0
inc eax
push eax
mulss xmm0, xmm1
movss dword [esp + 0xac], xmm0
call fcn.1001ffd0
mov eax, dword [esi + 0x20]
xorps xmm6, xmm6
movss xmm0, dword [esp + 0x40]
mov edi, dword [esi + 0x28]
addss xmm0, xmm6
movss xmm4, dword [0x10038ba8]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x54]
mov word [edi + edx*8 - 0x28], ax
addss xmm0, dword [esp + 0xc]
movss dword [edi + edx*8 - 0x20], xmm0
movss xmm0, dword [esp + 0x6c]
addss xmm0, xmm6
addss xmm0, dword [esp + 0x68]
movss dword [edi + edx*8 - 0x1c], xmm0
movss xmm0, dword [esp + 0x64]
addss xmm0, xmm6
addss xmm0, dword [esp + 0xc]
movss dword [edi + edx*8 - 0x18], xmm0
movss xmm0, dword [esp + 8]
addss xmm0, xmm6
addss xmm0, dword [esp + 0x68]
movss dword [edi + edx*8 - 0x14], xmm0
movss xmm0, dword [esp + 0x9c]
movss dword [edi + edx*8 - 0x10], xmm0
movss xmm0, dword [esp + 0xa0]
movss dword [edi + edx*8 - 0xc], xmm0
movss xmm0, dword [esp + 0xa4]
movss dword [edi + edx*8 - 8], xmm0
movss xmm0, dword [esp + 0xa8]
movss dword [edi + edx*8 - 4], xmm0
mov eax, dword [esi + 0x3c]
movss xmm0, dword [esp + 0x18]
addss xmm0, dword [eax + 0x20]
movss dword [edi + edx*8 - 0x24], xmm0
mov eax, dword [esi + 0x3c]
cmp byte [eax + 0x1c], 0
je 0x1001e2b4
addss xmm0, xmm4
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + edx*8 - 0x24], xmm0
mov eax, dword [esi + 0x38]
mov byte [esi + 0x54], 1
movss xmm0, dword [edi + edx*8 - 4]
subss xmm0, dword [edi + edx*8 - 0xc]
movd xmm1, dword [eax + 0x20]
cvtdq2ps xmm1, xmm1
add dword [esp + 0x3c], 0x1c
movss xmm3, dword [esp + 0xac]
mulss xmm1, xmm0
movss xmm0, dword [edi + edx*8 - 8]
subss xmm0, dword [edi + edx*8 - 0x10]
addss xmm1, dword [0x10038be8]
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x4c]
cvttss2si ecx, xmm1
movd xmm1, dword [eax + 0x1c]
cvtdq2ps xmm1, xmm1
mulss xmm1, xmm0
addss xmm1, dword [0x10038be8]
cvttss2si eax, xmm1
imul ecx, eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
add dword [esi + 0x50], ecx
mov ecx, dword [esp + 0x30]
cmp eax, dword [edx + 0xa4]
jl 0x1001e090
mov ecx, dword [esp + 0x28]
add edx, 0xc4
add ecx, 0x74
sub dword [esp + 0x50], 1
mov dword [esp + 0x38], edx
mov dword [esp + 0x28], ecx
jne 0x1001df10
mov esi, dword [esp + 0x34]
add esi, 0xb4
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x1001e384
mov eax, dword [0x100604b8]
test eax, eax
je 0x1001e378
dec dword [eax + 0x370]
mov edi, dword [esp + 0x20]
push ecx
call edi
add esp, 4
jmp 0x1001e388
mov edi, dword [esp + 0x20]
mov ecx, dword [esi]
test ecx, ecx
je 0x1001e3a3
mov eax, dword [0x100604b8]
test eax, eax
je 0x1001e39d
dec dword [eax + 0x370]
push ecx
call edi
add esp, 4
add esi, 0xc4
sub dword [esp + 0x44], 1
jne 0x1001e362
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
call fcn.1001e460
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x1f], 1
test ecx, ecx
je 0x1001e3df
mov eax, dword [0x100604b8]
test eax, eax
je 0x1001e3d9
dec dword [eax + 0x370]
push ecx
call esi
add esp, 4
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x1001e3fc
mov eax, dword [0x100604b8]
test eax, eax
je 0x1001e3f6
dec dword [eax + 0x370]
push ecx
call esi
add esp, 4
mov edi, dword [esp + 0x48]
test edi, edi
je 0x1001e41f
mov eax, dword [0x100604b8]
test eax, eax
je 0x1001e413
dec dword [eax + 0x370]
mov esi, dword [esp + 0x20]
push edi
call esi
add esp, 4
jmp 0x1001e423
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x1001e441
mov ecx, dword [0x100604b8]
test ecx, ecx
je 0x1001e43b
dec dword [ecx + 0x370]
push eax
call esi
add esp, 4
mov ecx, dword [esp + 0x1b4]
mov al, byte [esp + 0x1f]
pop edi
pop esi
xor ecx, esp
call fcn.1002f6f7
mov esp, ebp
pop ebp
ret