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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100dbb7c
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1e8
mov eax, dword [0x1010502c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x158], esi
cmp dword [esi + 0x58], 0
jge 0x10065fab
test byte [esi + 4], 2
lea eax, [ebp - 0x1a0]
mov dword [ebp - 0x19c], 0xffffffff
lea ecx, [esi + 0x40]
mov dword [ebp - 0x198], 0
mov dword [ebp - 0x194], 0
mov dword [ebp - 0x190], 0
mov dword [ebp - 0x18c], 0
mov dword [ebp - 0x188], 0
push eax
mov dword [ebp - 0x1a0], 0x1b00d9
je 0x10065f9f
mov dword [ebp - 0x1a0], 0x20002
call fcn.10069450
mov eax, dword [esi + 0x40]
dec eax
mov dword [esi + 0x58], eax
mov ecx, esi
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
call fcn.10065b10
xor eax, eax
mov dword [ebp - 0x1d8], 0
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x1d4], eax
mov dword [ebp - 4], eax
xor edi, edi
mov dword [ebp - 0x1c0], eax
mov dword [ebp - 0x15c], edi
mov dword [ebp - 0x1bc], edi
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0x4c]
mov edx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x124], 8
mov dword [ebp - 0x12c], edx
test ecx, ecx
jle 0x1006608f
cmp ecx, 8
mov eax, ecx
cmovl eax, dword [ebp - 0x124]
mov dword [ebp - 0x11c], eax
test eax, eax
jle 0x1006608f
mov ecx, dword [0x101075c0]
test ecx, ecx
je 0x1006605f
inc dword [ecx + 0x374]
imul eax, eax, 0xc4
push eax
call edx
mov ecx, dword [ebp - 0x11c]
add esp, 4
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x1d8], ecx
mov ecx, dword [ebp - 0x154]
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x1d4], eax
mov dword [ebp - 0x1dc], ecx
mov ecx, dword [esi + 0x34]
mov dword [ebp - 0x130], ecx
test ecx, ecx
jle 0x100660f4
cmp ecx, 8
mov eax, ecx
cmovl eax, dword [ebp - 0x124]
mov dword [ebp - 0x11c], eax
test eax, eax
jle 0x100660f4
mov ecx, dword [0x101075c0]
test ecx, ecx
je 0x100660c8
inc dword [ecx + 0x374]
lea eax, [eax + eax*2]
shl eax, 3
push eax
call edx
mov ecx, dword [ebp - 0x130]
mov edi, eax
mov eax, dword [ebp - 0x11c]
add esp, 4
mov dword [ebp - 0x15c], edi
mov dword [ebp - 0x1bc], edi
mov dword [ebp - 0x1c0], eax
mov dword [ebp - 0x1c4], ecx
imul ecx, dword [ebp - 0x154], 0xc4
push ecx
push 0
push dword [ebp - 0x160]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x130]
add esp, 0xc
lea eax, [eax + eax*2]
shl eax, 3
push eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0xc
cmp dword [esi + 0x4c], 0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x150], eax
jle 0x100662b6
mov eax, dword [ebp - 0x160]
xor edx, edx
add eax, 0xa4
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x134], eax
nop word [eax + eax]
mov ecx, dword [esi + 0x54]
add ecx, edx
mov dword [eax - 4], 0xffffffff
xor edx, edx
mov dword [ebp - 0x148], ecx
cmp dword [esi + 0x34], edx
jle 0x10066329
mov edi, dword [ebp - 0x158]
or esi, 0xffffffff
mov eax, esi
cmp esi, 0xffffffff
jne 0x100661c3
mov eax, dword [ebp - 0x148]
or esi, esi
mov ecx, dword [edi + 0x3c]
mov eax, dword [eax + 0x74]
cmp eax, dword [ecx + edx*4]
jne 0x100661bb
mov eax, dword [ebp - 0x134]
mov esi, edx
mov dword [eax - 4], edx
inc edx
mov eax, esi
cmp edx, dword [edi + 0x34]
jl 0x10066196
mov edi, dword [ebp - 0x15c]
cmp eax, 0xffffffff
je 0x10066329
mov eax, dword [ebp - 0x148]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [eax + 0xc]
call fcn.1005c7f0
mov ecx, dword [ebp - 0x134]
mov edx, esi
add ecx, 0xffffff5c
push eax
mov dword [ebp - 0x11c], ecx
call fcn.1005cad0
add esp, 4
test eax, eax
je 0x10066329
mov eax, dword [ebp - 0x11c]
mov edx, 0x100fa5e4
mov esi, dword [ebp - 0x134]
mov eax, dword [eax + 0xa0]
lea ecx, [eax + eax*2]
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x124], ecx
mov eax, dword [eax + 0x30]
test eax, eax
cmovne edx, eax
mov dword [esi - 8], edx
cmp word [edx], 0
je 0x10066261
movzx eax, word [edx + 2]
test ax, ax
je 0x1006625b
mov ecx, eax
cmp dword [esi], ecx
cmovge ecx, dword [esi]
add edx, 4
mov dword [esi], ecx
cmp word [edx], 0
jne 0x10066240
mov ecx, dword [ebp - 0x124]
mov edx, dword [ebp - 0x124]
inc dword [edi + ecx*8]
mov ecx, dword [esi]
mov eax, dword [ebp - 0x13c]
cmp dword [edi + edx*8 + 4], ecx
cmovge ecx, dword [edi + edx*8 + 4]
add esi, 0xc4
mov dword [ebp - 0x134], esi
inc eax
mov esi, dword [ebp - 0x158]
mov dword [edi + edx*8 + 4], ecx
mov edx, dword [ebp - 0x120]
add edx, 0x78
mov dword [ebp - 0x13c], eax
cmp eax, dword [esi + 0x4c]
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x120], edx
jl 0x10066170
mov eax, dword [ebp - 0x154]
xor esi, esi
mov dword [ebp - 0x134], esi
test eax, eax
jle 0x100666e4
mov edx, dword [ebp - 0x160]
add edx, 0xa8
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x128], edx
mov eax, dword [edx - 8]
mov ecx, dword [edx - 4]
add ecx, 0x20
sar ecx, 5
lea esi, [eax + eax*2]
mov dword [ebp - 0x14c], ecx
mov eax, dword [edx + 8]
mov dword [ebp - 0x148], esi
mov dword [ebp - 0x11c], eax
cmp ecx, eax
jle 0x10066377
test eax, eax
je 0x10066335
cdq
sub eax, edx
mov edx, dword [ebp - 0x128]
sar eax, 1
add eax, dword [ebp - 0x11c]
mov dword [ebp - 0x124], eax
jmp 0x1006633f
mov byte [ebp - 0x141], 0
jmp 0x1006776e
mov dword [ebp - 0x124], 8
cmp dword [ebp - 0x124], ecx
lea eax, [edx + 4]
mov dword [ebp - 0x13c], eax
mov eax, ecx
cmovg eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x13c]
push eax
call fcn.1005b300
mov edx, dword [ebp - 0x128]
mov ecx, dword [ebp - 0x14c]
mov eax, dword [ebp - 0x13c]
jmp 0x1006637a
lea eax, [edx + 4]
mov dword [eax], ecx
lea eax, [ecx*4]
push eax
push 0
push dword [edx + 0xc]
call sub.VCRUNTIME140.dll_memset
lea ecx, [esi*8 + 0xc]
add esp, 0xc
add ecx, edi
mov dword [ebp - 0x124], ecx
cmp dword [ecx], 0
jne 0x10066404
mov esi, dword [edi + esi*8 + 4]
mov eax, dword [ecx + 4]
add esi, 0x20
sar esi, 5
mov dword [ebp - 0x11c], eax
cmp esi, eax
jle 0x100663ed
test eax, eax
je 0x100663cf
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, dword [ebp - 0x11c]
jmp 0x100663d4
mov ecx, 8
cmp ecx, esi
mov eax, esi
cmovg eax, ecx
mov ecx, dword [ebp - 0x124]
push eax
call fcn.1005b300
mov ecx, dword [ebp - 0x124]
lea eax, [esi*4]
mov dword [ecx], esi
push eax
push 0
push dword [ecx + 8]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x128]
mov eax, dword [edx - 0xc]
mov dword [ebp - 0x120], eax
cmp word [eax], 0
je 0x100664f8
nop dword [eax]
movzx ecx, word [eax + 2]
test cx, cx
je 0x100664f2
movzx edi, word [eax]
cmp edi, ecx
ja 0x100664d9
nop dword [eax + eax]
mov eax, dword [ebp - 0x148]
mov ecx, edi
and ecx, 0x1f
mov edx, 1
shl edx, cl
mov esi, edi
mov ecx, dword [ebp - 0x15c]
sar esi, 5
mov dword [ebp - 0x11c], edx
mov eax, dword [ecx + eax*8 + 0x14]
test dword [eax + esi*4], edx
jne 0x100664c0
mov ecx, dword [ebp - 0x128]
mov edx, edi
add ecx, 0xffffff58
call fcn.1005cfe0
mov edx, dword [ebp - 0x128]
test eax, eax
je 0x100664c6
inc dword [edx]
mov eax, dword [ebp - 0x148]
mov ecx, dword [ebp - 0x15c]
inc dword [ecx + eax*8 + 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x15c]
or dword [eax + esi*4], ecx
mov eax, dword [ebp - 0x148]
mov eax, dword [edx + eax*8 + 0x14]
or dword [eax + esi*4], ecx
inc dword [ebp - 0x134]
mov edx, dword [ebp - 0x128]
mov eax, dword [ebp - 0x120]
inc edi
movzx eax, word [eax + 2]
cmp edi, eax
jbe 0x10066440
mov eax, dword [ebp - 0x120]
add eax, 4
mov dword [ebp - 0x120], eax
cmp word [eax], 0
jne 0x10066420
mov edi, dword [ebp - 0x15c]
add edx, 0xc4
sub dword [ebp - 0x164], 1
mov dword [ebp - 0x128], edx
jne 0x100662e4
mov esi, dword [ebp - 0x160]
mov eax, dword [ebp - 0x154]
add esi, 0xb8
mov dword [ebp - 0x120], eax
nop dword [eax]
mov edi, dword [esi - 0x10]
cmp edi, dword [esi + 4]
jle 0x100665a1
mov eax, dword [0x101075c0]
test eax, eax
je 0x10066547
inc dword [eax + 0x374]
lea eax, [edi*4]
push eax
call dword [ebp - 0x12c]
mov edx, dword [esi + 8]
add esp, 4
mov dword [ebp - 0x11c], eax
test edx, edx
je 0x1006659b
mov ecx, dword [esi]
shl ecx, 2
push ecx
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esi + 8]
add esp, 0xc
test ecx, ecx
je 0x1006658b
mov eax, dword [0x101075c0]
test eax, eax
je 0x1006658b
dec dword [eax + 0x374]
push ecx
call dword [ebp - 0x150]
mov eax, dword [ebp - 0x11c]
add esp, 4
mov dword [esi + 8], eax
mov dword [esi + 4], edi
mov ecx, dword [esi - 4]
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x13c], ecx
lea eax, [ecx + eax*4]
mov dword [ebp - 0x17c], eax
cmp ecx, eax
jae 0x1006668e
xor edi, edi
mov dword [ebp - 0x148], edi
mov ecx, dword [ecx]
mov dword [ebp - 0x14c], ecx
test ecx, ecx
je 0x1006666e
xor eax, eax
mov edx, 1
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x124], edx
nop dword [eax]
test edx, ecx
je 0x10066654
mov ecx, dword [esi + 4]
and edi, 0xffffffe0
add edi, eax
mov eax, dword [esi]
cmp eax, ecx
jne 0x10066638
lea edx, [eax + 1]
mov dword [ebp - 0x11c], edx
test ecx, ecx
je 0x10066620
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0x11c]
sar eax, 1
add eax, ecx
jmp 0x10066625
mov eax, 8
cmp eax, edx
mov ecx, esi
cmovg edx, eax
push edx
call fcn.1005b300
mov edx, dword [ebp - 0x124]
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov dword [eax + ecx*4], edi
inc dword [esi]
mov eax, dword [ebp - 0x164]
mov ecx, dword [ebp - 0x14c]
mov edi, dword [ebp - 0x148]
inc eax
rol edx, 1
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x124], edx
cmp eax, 0x20
jb 0x100665f0
mov eax, dword [ebp - 0x17c]
mov ecx, dword [ebp - 0x13c]
add edi, 0x20
add ecx, 4
mov dword [ebp - 0x148], edi
mov dword [ebp - 0x13c], ecx
cmp ecx, eax
jb 0x100665c6
mov ecx, dword [esi - 4]
test ecx, ecx
je 0x100666c3
mov eax, dword [0x101075c0]
mov dword [esi - 8], 0
mov dword [esi - 0xc], 0
test eax, eax
je 0x100666b2
dec dword [eax + 0x374]
push ecx
call dword [ebp - 0x150]
add esp, 4
mov dword [esi - 4], 0
add esi, 0xc4
sub dword [ebp - 0x120], 1
jne 0x10066530
mov edi, dword [ebp - 0x15c]
mov esi, dword [ebp - 0x134]
jmp 0x100666ec
xor esi, esi
mov dword [ebp - 0x134], esi
cmp dword [ebp - 0x130], 0
jle 0x1006675f
mov esi, dword [ebp - 0x150]
lea eax, [edi + 0x14]
mov edi, dword [ebp - 0x130]
mov dword [ebp - 0x164], eax
nop word [eax + eax]
mov ecx, dword [eax]
test ecx, ecx
je 0x10066745
mov dword [eax - 4], 0
mov dword [eax - 8], 0
mov eax, dword [0x101075c0]
test eax, eax
je 0x10066733
dec dword [eax + 0x374]
push ecx
call esi
mov eax, dword [ebp - 0x164]
add esp, 4
mov dword [eax], 0
add eax, 0x18
mov dword [ebp - 0x164], eax
sub edi, 1
jne 0x10066710
mov edi, dword [ebp - 0x15c]
mov esi, dword [ebp - 0x134]
test edi, edi
je 0x1006679e
mov eax, dword [0x101075c0]
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1c4], 0
test eax, eax
je 0x10066786
dec dword [eax + 0x374]
push edi
call dword [ebp - 0x150]
add esp, 4
xor eax, eax
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x1bc], eax
xor eax, eax
mov dword [ebp - 0x1cc], 0
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x1c8], eax
mov dword [ebp - 0x1e4], eax
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x1e0], eax
mov eax, 8
test esi, esi
jle 0x10066811
cmp esi, eax
mov edi, esi
cmovl edi, eax
test edi, edi
jle 0x10066811
mov eax, dword [0x101075c0]
test eax, eax
je 0x100667eb
inc dword [eax + 0x374]
mov eax, edi
shl eax, 4
push eax
call dword [ebp - 0x12c]
mov dword [ebp - 0x134], eax
add esp, 4
mov dword [ebp - 0x1c8], eax
mov eax, 8
mov dword [ebp - 0x1cc], edi
mov dword [ebp - 0x1d0], esi
test esi, esi
jle 0x1006685e
cmp esi, 8
mov edi, esi
cmovl edi, eax
test edi, edi
jle 0x1006685e
mov eax, dword [0x101075c0]
test eax, eax
je 0x10066836
inc dword [eax + 0x374]
lea eax, [edi*8]
sub eax, edi
shl eax, 2
push eax
call dword [ebp - 0x12c]
add esp, 4
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x1e0], eax
mov dword [ebp - 0x1e4], edi
mov ecx, esi
mov dword [ebp - 0x1e8], esi
shl ecx, 4
push ecx
push 0
push dword [ebp - 0x134]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esi*8]
sub eax, esi
shl eax, 2
push eax
push 0
push dword [ebp - 0x148]
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp - 0x154]
xor eax, eax
xor edx, edx
mov dword [ebp - 0x130], eax
add esp, 0xc
mov dword [ebp - 0x128], edx
mov dword [ebp - 0x164], eax
test ecx, ecx
jle 0x10066cc0
mov edi, dword [ebp - 0x160]
add edi, 0x98
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x13c], edi
mov dword [ebp - 0x11c], ecx
nop dword [eax]
mov esi, dword [edi + 0x10]
test esi, esi
je 0x10066ca0
mov edx, dword [ebp - 0x164]
mov ecx, dword [ebp - 0x148]
shl eax, 4
add eax, dword [ebp - 0x134]
mov dword [edi - 4], eax
lea eax, [edx*8]
sub eax, edx
add dword [ebp - 0x130], esi
add edx, esi
mov dword [ebp - 0x164], edx
lea ecx, [ecx + eax*4]
mov eax, dword [ebp - 0x158]
mov dword [edi], ecx
mov edx, dword [eax + 0x54]
add edx, dword [ebp - 0x124]
mov dword [ebp - 0x120], edx
mov eax, dword [edx + 0x10]
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 [0x100ff010]
jbe 0x100669c2
mov eax, dword [edi - 0x7c]
mov edi, dword [edi - 0x94]
movzx edx, byte [eax + edi + 7]
movzx ecx, byte [eax + edi + 6]
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
add dx, cx
mov ecx, dword [ebp - 0x13c]
movsx esi, dx
mov eax, dword [ecx - 0x7c]
movzx edx, byte [eax + edi + 5]
movzx ecx, byte [eax + edi + 4]
mov eax, 0x100
mov edi, dword [ebp - 0x13c]
cwde
movsx ecx, cx
imul ecx, eax
add dx, cx
movsx eax, dx
sub eax, esi
movd xmm0, eax
jmp 0x100669e8
mov ecx, dword [edi - 0x84]
mov eax, dword [edi - 0x94]
xorps xmm1, xmmword [0x10100890]
movzx edx, byte [ecx + eax + 0x13]
movzx eax, byte [ecx + eax + 0x12]
shl eax, 8
add edx, eax
movd xmm0, edx
cvtdq2ps xmm0, xmm0
mov eax, dword [ebp - 0x158]
mov eax, dword [eax + 0x10]
divss xmm1, xmm0
mov dword [ebp - 0x168], eax
xor eax, eax
mov dword [ebp - 0x1b8], eax
movss dword [ebp - 0x14c], xmm1
cmp dword [edi + 0x20], eax
jle 0x10066c94
mov dword [ebp - 0x17c], eax
nop dword [eax]
mov edx, dword [edi + 0x28]
lea ecx, [edi - 0x98]
mov edx, dword [edx + eax*4]
call fcn.1005cfe0
mov ecx, dword [ebp - 0x120]
mov edx, eax
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x1b4], 0
movd xmm0, dword [ecx + 0x14]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x16c], xmm0
movd xmm0, dword [ecx + 0x18]
lea ecx, [ebp - 0x180]
push ecx
cvtdq2ps xmm0, xmm0
lea ecx, [ebp - 0x184]
push ecx
lea ecx, [ebp - 0x1b4]
push ecx
lea ecx, [ebp - 0x13c]
mulss xmm0, xmm1
push ecx
lea ecx, [edi - 0x98]
movss dword [ebp - 0x174], xmm0
call fcn.1005d3f0
add esp, 0x10
test eax, eax
jne 0x10066abc
xor esi, esi
mov dword [ebp - 0x13c], esi
mov dword [ebp - 0x16c], esi
mov dword [ebp - 0x174], esi
jmp 0x10066bfa
xorps xmm0, xmm0
sub esp, 8
cvtsi2ss xmm0, dword [ebp - 0x13c]
mulss xmm0, dword [ebp - 0x16c]
addss xmm0, dword [0x100ff010]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x140], xmm0
fld qword [ebp - 0x140]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
fstp qword [ebp - 0x140]
movsd xmm0, qword [ebp - 0x140]
xorps xmm1, xmm1
cvtpd2ps xmm0, xmm0
cvttss2si esi, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [ebp - 0x180]
mulss xmm0, dword [ebp - 0x174]
subss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd qword [ebp - 0x140], xmm0
fld qword [ebp - 0x140]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
fstp qword [ebp - 0x140]
movsd xmm0, qword [ebp - 0x140]
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [ebp - 0x184]
mov dword [ebp - 0x13c], eax
mulss xmm0, dword [ebp - 0x16c]
addss xmm0, dword [0x100ff010]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x170], xmm0
fld qword [ebp - 0x170]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [ebp - 0x170]
movsd xmm0, qword [ebp - 0x170]
xorps xmm1, xmm1
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [ebp - 0x1b4]
mov dword [ebp - 0x16c], eax
mulss xmm0, dword [ebp - 0x174]
subss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd qword [ebp - 0x178], xmm0
fld qword [ebp - 0x178]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [ebp - 0x178]
movsd xmm0, qword [ebp - 0x178]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x168]
movzx edx, ax
mov eax, dword [ebp - 0x120]
mov ecx, edx
sub ecx, esi
movss xmm1, dword [ebp - 0x14c]
mov esi, dword [ebp - 0x17c]
dec cx
dec dx
add cx, word [eax + 0x14]
add cx, word [ebp - 0x16c]
mov eax, dword [edi - 4]
mov word [eax + esi + 4], cx
mov eax, dword [ebp - 0x120]
mov cx, word [eax + 0x18]
sub cx, word [ebp - 0x13c]
mov eax, dword [edi - 4]
add cx, dx
add cx, word [ebp - 0x174]
mov edx, dword [ebp - 0x128]
mov word [eax + esi + 6], cx
mov eax, dword [edi - 4]
movzx ecx, word [eax + esi + 6]
movzx eax, word [eax + esi + 4]
add esi, 0x10
imul ecx, eax
mov eax, dword [ebp - 0x1b8]
inc eax
mov dword [ebp - 0x17c], esi
mov dword [ebp - 0x1b8], eax
add edx, ecx
mov dword [ebp - 0x128], edx
cmp eax, dword [edi + 0x20]
jl 0x10066a20
jmp 0x10066c9a
mov edx, dword [ebp - 0x128]
mov eax, dword [ebp - 0x130]
add dword [ebp - 0x124], 0x78
add edi, 0xc4
sub dword [ebp - 0x11c], 1
mov dword [ebp - 0x13c], edi
jne 0x100668e0
movd xmm0, edx
cvtdq2ps xmm0, xmm0
call fcn.10007d70
mov edi, dword [ebp - 0x158]
cvttss2si ecx, xmm0
mov eax, dword [edi + 0xc]
mov dword [edi + 0x20], 0
inc ecx
test eax, eax
jg 0x10066d20
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
comiss xmm0, dword [0x100ff518]
jb 0x10066cfc
mov eax, 0x1000
jmp 0x10066d20
comiss xmm0, dword [0x100ff504]
jb 0x10066d0c
mov eax, 0x800
jmp 0x10066d20
comiss xmm0, dword [0x100ff4e8]
mov eax, 0x200
mov ecx, 0x400
cmovae eax, ecx
push 0x2c
mov dword [edi + 0x1c], eax
lea eax, [ebp - 0x1b0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [edi + 0x10]
add esp, 0xc
mov dword [ebp - 0x14c], eax
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x11c], eax
mov eax, dword [0x101075c0]
test eax, eax
je 0x10066d57
inc dword [eax + 0x374]
push 0x30
call dword [ebp - 0x12c]
mov ecx, dword [0x101075c0]
mov esi, eax
mov eax, dword [ebp - 0x11c]
add esp, 4
sub eax, dword [ebp - 0x14c]
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x168], eax
test ecx, ecx
je 0x10066d8c
inc dword [ecx + 0x374]
shl eax, 3
push eax
call dword [ebp - 0x12c]
add esp, 4
test esi, esi
je 0x10066e17
test eax, eax
je 0x10066e05
mov edx, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x1a8], edx
mov dword [ebp - 0x1a0], edx
mov edx, dword [ebp - 0x168]
push edx
push eax
mov dword [ebp - 0x188], eax
mov eax, 0x8000
sub eax, ecx
mov dword [ebp - 0x19c], ecx
push eax
mov ecx, esi
mov dword [ebp - 0x1ac], esi
mov dword [ebp - 0x194], 1
mov dword [ebp - 0x190], 1
mov dword [ebp - 0x198], 0
call fcn.1005baf0
add esp, 0xc
jmp 0x10066e41
mov eax, dword [0x101075c0]
test eax, eax
je 0x10066e14
dec dword [eax + 0x374]
push esi
jmp 0x10066e2c
test eax, eax
je 0x10066e35
mov ecx, dword [0x101075c0]
test ecx, ecx
je 0x10066e2b
dec dword [ecx + 0x374]
push eax
call dword [ebp - 0x150]
add esp, 4
mov eax, dword [ebp - 0x1ac]
mov dword [ebp - 0x128], eax
xor eax, eax
mov dword [ebp - 0x130], eax
mov esi, dword [edi + 0x40]
mov dword [ebp - 0x120], esi
test esi, esi
jle 0x10066e89
cmp esi, 8
mov ecx, esi
mov edx, 8
cmovl ecx, edx
test ecx, ecx
jle 0x10066e89
mov eax, dword [0x101075c0]
test eax, eax
je 0x10066e76
inc dword [eax + 0x374]
shl ecx, 4
push ecx
call dword [ebp - 0x12c]
add esp, 4
mov dword [ebp - 0x130], eax
mov ecx, esi
shl ecx, 4
push ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x40], 0
jle 0x10066eda
mov edx, dword [ebp - 0x130]
xor ecx, ecx
add edx, 6
xor esi, esi
nop dword [eax]
mov eax, dword [edi + 0x48]
lea ecx, [ecx + 0x1c]
inc esi
lea edx, [edx + 0x10]
movzx eax, word [ecx + eax - 0x1c]
mov word [edx - 0x12], ax
mov eax, dword [edi + 0x48]
movzx eax, word [ecx + eax - 0x1a]
mov word [edx - 0x10], ax
cmp esi, dword [edi + 0x40]
jl 0x10066eb0
mov esi, dword [ebp - 0x120]
mov edx, dword [ebp - 0x130]
mov ecx, dword [ebp - 0x128]
push esi
call fcn.1005bfc0
add esp, 4
test esi, esi
jle 0x10066f4b
mov edx, dword [ebp - 0x130]
xor esi, esi
mov eax, dword [ebp - 0x120]
add edx, 0xa
cmp dword [edx + 2], 0
je 0x10066f3a
mov eax, dword [edi + 0x48]
movzx ecx, word [edx - 2]
mov word [esi + eax + 4], cx
mov eax, dword [edi + 0x48]
movzx ecx, word [edx]
mov word [esi + eax + 6], cx
movzx eax, word [edx]
movzx ecx, word [edx - 4]
add ecx, eax
mov eax, dword [ebp - 0x120]
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 [ebp - 0x120], eax
jne 0x10066f04
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x10066f6f
mov ecx, dword [0x101075c0]
test ecx, ecx
je 0x10066f65
dec dword [ecx + 0x374]
push eax
call dword [ebp - 0x150]
add esp, 4
mov byte [ebp - 4], 7
mov esi, dword [ebp - 0x154]
test esi, esi
jle 0x1006700f
mov esi, dword [ebp - 0x160]
mov eax, dword [ebp - 0x154]
add esi, 0xa8
mov dword [ebp - 0x14c], eax
nop dword [eax]
mov eax, dword [esi]
test eax, eax
je 0x10066ffa
mov edx, dword [esi - 0x14]
mov ecx, dword [ebp - 0x128]
push eax
call fcn.1005bfc0
xor ecx, ecx
add esp, 4
mov dword [ebp - 0x11c], ecx
cmp dword [esi], ecx
jle 0x10066ffa
xor edx, edx
mov eax, dword [esi - 0x14]
cmp dword [eax + edx + 0xc], 0
je 0x10066fec
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 [ebp - 0x11c]
inc ecx
add edx, 0x10
mov dword [ebp - 0x11c], ecx
cmp ecx, dword [esi]
jl 0x10066fc6
add esi, 0xc4
sub dword [ebp - 0x14c], 1
jne 0x10066fa0
mov esi, dword [ebp - 0x154]
test byte [edi + 4], 1
mov eax, dword [edi + 0x20]
jne 0x1006703d
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 [0x100ff0d0]
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 [0x101075c0]
movss dword [edi + 0x24], xmm2
divss xmm1, xmm0
movss dword [edi + 0x28], xmm1
test eax, eax
je 0x10067081
inc dword [eax + 0x374]
push ecx
call dword [ebp - 0x12c]
mov ecx, dword [edi + 0x1c]
add esp, 4
imul ecx, dword [edi + 0x20]
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 [ebp - 0x18c], eax
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x1a4], eax
test esi, esi
jle 0x1006728c
mov ecx, dword [ebp - 0x160]
xor eax, eax
mov dword [ebp - 0x11c], eax
mov edx, esi
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x14c], esi
nop word [eax + eax]
mov esi, dword [edi + 0x54]
add esi, eax
cmp dword [ecx + 0xa8], 0
je 0x10067260
push dword [ecx + 0x94]
lea eax, [ecx + 0x7c]
mov edx, ecx
push ecx
push eax
lea ecx, [ebp - 0x1b0]
call fcn.10062230
movss xmm1, dword [esi + 0x44]
add esp, 0xc
ucomiss xmm1, dword [0x100ff0d0]
movss dword [ebp - 0x168], xmm1
lahf
test ah, 0x44
jnp 0x10067244
xor esi, esi
nop dword [eax]
movd xmm0, esi
mov eax, esi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x101003a0]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
call fcn.100d97f0
movss xmm1, dword [ebp - 0x168]
mov edx, 0xff
cmp eax, edx
movzx ecx, al
cmovbe edx, ecx
mov byte [ebp + esi - 0x118], dl
inc esi
cmp esi, 0x100
jb 0x10067130
mov ecx, dword [ebp - 0x12c]
xor eax, eax
mov dword [ebp - 0x13c], eax
mov edx, dword [ecx + 0x94]
cmp dword [ecx + 0xa8], eax
jle 0x1006724a
lea ecx, [edx + 6]
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x120], ecx
cmp dword [ecx + 6], 0
je 0x10067228
mov eax, dword [edi + 0x1c]
movzx edx, word [ecx + 4]
movzx edi, word [ecx]
movzx esi, word [ecx - 2]
mov dword [ebp - 0x124], eax
movzx eax, word [ecx + 2]
imul edx, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x158]
add edx, dword [ecx + 0x14]
mov ecx, dword [ebp - 0x120]
add edx, eax
test edi, edi
je 0x10067216
mov eax, dword [ebp - 0x124]
xor ecx, ecx
test esi, esi
je 0x10067209
nop dword [eax]
movzx eax, byte [ecx + edx]
mov al, byte [ebp + eax - 0x118]
mov byte [ecx + edx], al
inc ecx
cmp ecx, esi
jl 0x100671f0
mov eax, dword [ebp - 0x124]
dec edi
add edx, eax
test edi, edi
jg 0x100671e7
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp - 0x12c]
mov eax, dword [ebp - 0x13c]
mov edi, dword [ebp - 0x158]
inc eax
add ecx, 0x10
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x120], ecx
cmp eax, dword [edx + 0xa8]
jl 0x100671a7
mov ecx, dword [ebp - 0x12c]
mov eax, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x14c]
mov dword [ecx + 0x94], 0
add eax, 0x78
add ecx, 0xc4
sub edx, 1
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x14c], edx
jne 0x100670e0
mov esi, dword [ebp - 0x1ac]
jmp 0x10067292
mov esi, dword [ebp - 0x128]
cmp dword [ebp - 0x188], 0
je 0x100672aa
mov eax, dword [0x101075c0]
test eax, eax
je 0x100672aa
dec dword [eax + 0x374]
push dword [ebp - 0x188]
call dword [ebp - 0x150]
add esp, 4
test esi, esi
je 0x100672cc
mov eax, dword [0x101075c0]
test eax, eax
je 0x100672cc
dec dword [eax + 0x374]
push esi
mov esi, dword [ebp - 0x150]
call esi
mov ecx, dword [ebp - 0x134]
add esp, 4
test ecx, ecx
je 0x10067319
mov eax, dword [0x101075c0]
mov dword [ebp - 0x1cc], 0
mov dword [ebp - 0x1d0], 0
test eax, eax
je 0x10067305
dec dword [eax + 0x374]
push ecx
call esi
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x1c8], ecx
mov eax, dword [ebp - 0x154]
test eax, eax
jle 0x1006770e
mov ecx, dword [ebp - 0x160]
xor edx, edx
add ecx, 4
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x128], eax
nop dword [eax]
nop dword [eax + eax]
cmp dword [ecx + 0xa4], 0
je 0x10067669
mov esi, dword [ecx + 0x18]
xorps xmm4, xmm4
mov eax, dword [edi + 0x54]
add eax, edx
mov edx, dword [ecx]
mov dword [ebp - 0x120], eax
mov eax, dword [eax + 0x74]
movzx ecx, byte [esi + edx + 6]
mov dword [ebp - 0x124], eax
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
movzx eax, byte [esi + edx + 7]
add cx, ax
mov eax, 0x100
movsx edi, cx
movzx ecx, byte [esi + edx + 4]
cwde
movsx ecx, cx
imul ecx, eax
movzx eax, byte [esi + edx + 5]
mov edx, dword [ebp - 0x120]
add cx, ax
movss xmm3, dword [edx + 0x10]
movsx ecx, cx
mov eax, ecx
sub eax, edi
movd xmm2, ecx
cvtdq2ps xmm2, xmm2
mov ecx, dword [ebp - 0x124]
movd xmm0, eax
xor eax, eax
cvtdq2ps xmm0, xmm0
comiss xmm2, xmm4
divss xmm3, xmm0
seta al
lea eax, [eax*2 - 1]
movd xmm1, eax
xor eax, eax
cvtdq2ps xmm1, xmm1
movaps xmm0, xmm3
mulss xmm0, xmm2
addss xmm1, xmm0
cvttss2si esi, xmm1
movd xmm1, edi
cvtdq2ps xmm1, xmm1
comiss xmm1, xmm4
mulss xmm3, xmm1
seta al
cmp byte [edx + 0x3c], 0
lea eax, [eax*2 - 1]
movd xmm0, eax
lea eax, [ecx + 0x4c]
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x168], eax
addss xmm0, xmm3
cvttss2si edi, xmm0
jne 0x10067475
call fcn.10067bd0
mov ecx, dword [ebp - 0x124]
mov edx, dword [ebp - 0x120]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov eax, dword [edx + 0x10]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x158]
mov dword [ecx + 0x38], eax
mov eax, dword [ebp - 0x168]
mov dword [ecx + 0x3c], edx
movss dword [eax], xmm0
movd xmm0, edi
cvtdq2ps xmm0, xmm0
movss dword [ecx + 0x50], xmm0
movss xmm0, dword [eax]
movss xmm2, dword [0x100ff098]
inc word [ecx + 0x40]
addss xmm0, xmm2
mov ecx, dword [ebp - 0x130]
movss xmm1, dword [edx + 0x28]
movss dword [ebp - 0x180], xmm1
mov dword [ebp - 0x13c], 0
cmp dword [ecx + 0xa4], 0
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, dword [edx + 0x2c]
movss dword [ebp - 0x168], xmm0
jle 0x10067657
xor esi, esi
nop dword [eax]
mov eax, dword [ecx + 0xbc]
mov ecx, dword [ecx + 0x94]
mov edi, dword [ebp - 0x13c]
movss xmm7, dword [edx + 0x34]
movss xmm0, dword [ecx + esi + 0x10]
comiss xmm7, xmm0
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x184], eax
ja 0x10067504
movss xmm7, dword [edx + 0x38]
minss xmm7, xmm0
mov edi, dword [ebp - 0x158]
movaps xmm6, xmm1
ucomiss xmm0, xmm7
lahf
test ah, 0x44
jnp 0x10067536
cmp byte [edx + 0x1c], 0
movaps xmm6, xmm7
subss xmm6, xmm0
mulss xmm6, xmm2
je 0x10067532
cvttss2si eax, xmm6
movd xmm6, eax
cvtdq2ps xmm6, xmm6
addss xmm6, xmm1
movd xmm0, dword [edi + 0x1c]
sub esp, 0x1c
movss xmm2, dword [0x100ff0d0]
movss xmm3, dword [0x100ff0d0]
movzx eax, word [ecx + esi]
cvtdq2ps xmm0, xmm0
movd xmm5, eax
divss xmm2, xmm0
movzx eax, word [ecx + esi + 2]
movd xmm0, dword [edi + 0x20]
cvtdq2ps xmm0, xmm0
movd xmm4, eax
movzx eax, word [ecx + esi + 4]
divss xmm3, xmm0
movd xmm1, eax
movzx eax, word [ecx + esi + 6]
cvtdq2ps xmm4, xmm4
movd xmm0, eax
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
mulss xmm0, xmm3
mulss xmm4, xmm3
movss xmm3, dword [ecx + esi + 0xc]
mulss xmm1, xmm2
movss dword [esp + 0x18], xmm7
movss dword [esp + 0x14], xmm0
movss xmm0, dword [ecx + esi + 0x18]
movss dword [esp + 0x10], xmm1
movss dword [esp + 0xc], xmm4
xorps xmm4, xmm4
addss xmm0, xmm4
cvtdq2ps xmm5, xmm5
addss xmm0, dword [ebp - 0x168]
mulss xmm5, xmm2
addss xmm3, xmm4
movss xmm2, dword [ecx + esi + 8]
addss xmm2, xmm4
movss dword [esp + 8], xmm5
addss xmm3, dword [ebp - 0x168]
movss dword [esp + 4], xmm0
movss xmm0, dword [ecx + esi + 0x14]
mov ecx, dword [ebp - 0x124]
addss xmm0, xmm4
addss xmm2, xmm6
addss xmm0, xmm6
movss dword [esp], xmm0
push dword [ebp - 0x184]
call fcn.10068090
mov eax, dword [ebp - 0x13c]
add esi, 0x1c
mov ecx, dword [ebp - 0x130]
inc eax
movss xmm1, dword [ebp - 0x180]
movss xmm2, dword [0x100ff098]
mov edx, dword [ebp - 0x120]
mov dword [ebp - 0x13c], eax
cmp eax, dword [ecx + 0xa4]
jl 0x100674d0
jmp 0x1006765d
mov edi, dword [ebp - 0x158]
mov eax, dword [ebp - 0x128]
mov edx, dword [ebp - 0x12c]
add ecx, 0xc4
add edx, 0x78
sub eax, 1
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x128], eax
jne 0x10067350
mov eax, dword [ebp - 0x154]
test eax, eax
jle 0x1006770e
mov esi, dword [ebp - 0x160]
mov edi, dword [ebp - 0x150]
add esi, 0xb4
nop dword [eax]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x100676d2
mov eax, dword [0x101075c0]
test eax, eax
je 0x100676c6
dec dword [eax + 0x374]
push ecx
call edi
mov eax, dword [ebp - 0x154]
add esp, 4
mov ecx, dword [esi]
test ecx, ecx
je 0x100676f3
mov eax, dword [0x101075c0]
test eax, eax
je 0x100676e7
dec dword [eax + 0x374]
push ecx
call edi
mov eax, dword [ebp - 0x154]
add esp, 4
add esi, 0xc4
mov byte [ebp - 4], 7
sub eax, 1
mov dword [ebp - 0x154], eax
jne 0x100676b0
mov edi, dword [ebp - 0x158]
mov ecx, edi
call fcn.100677e0
mov byte [ebp - 0x141], 1
mov ecx, dword [ebp - 0x148]
test ecx, ecx
je 0x10067743
mov eax, dword [0x101075c0]
test eax, eax
je 0x10067735
dec dword [eax + 0x374]
mov esi, dword [ebp - 0x150]
push ecx
call esi
add esp, 4
jmp 0x10067749
mov esi, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x134]
test ecx, ecx
je 0x10067768
mov eax, dword [0x101075c0]
test eax, eax
je 0x10067762
dec dword [eax + 0x374]
push ecx
call esi
add esp, 4
mov edi, dword [ebp - 0x15c]
test edi, edi
je 0x1006778f
mov eax, dword [0x101075c0]
test eax, eax
je 0x10067781
dec dword [eax + 0x374]
mov esi, dword [ebp - 0x150]
push edi
call esi
add esp, 4
jmp 0x10067795
mov esi, dword [ebp - 0x150]
mov eax, dword [ebp - 0x160]
test eax, eax
je 0x100677b5
mov ecx, dword [0x101075c0]
test ecx, ecx
je 0x100677af
dec dword [ecx + 0x374]
push eax
call esi
add esp, 4
mov al, byte [ebp - 0x141]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100d8a78
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret