Function at 0x10029e30
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 0x1003dcac
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x208
mov eax, dword [0x1004900c]
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 - 0x154], esi
cmp dword [esi + 0x58], 0
jge 0x10029eeb
test byte [esi + 4], 2
lea eax, [ebp - 0x1ac]
mov dword [ebp - 0x1a4], 0xffffffff
lea ecx, [esi + 0x40]
mov dword [ebp - 0x1a0], 0
mov dword [ebp - 0x19c], 0
mov dword [ebp - 0x198], 0
mov dword [ebp - 0x194], 0
mov dword [ebp - 0x1ac], Ordinal_2
push eax
mov dword [ebp - 0x1a8], 0x1b00d9
je 0x10029edf
mov dword [ebp - 0x1a8], 0x20002
call fcn.1002d280
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 [ebp - 0x144], edx
test ecx, ecx
je 0x10029f4a
mov eax, dword [0x1004995c]
test eax, eax
je 0x10029f3e
dec dword [eax + 0x374]
push ecx
call edx
mov edx, dword [ebp - 0x144]
add esp, 4
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x10029f66
mov eax, dword [0x1004995c]
test eax, eax
je 0x10029f60
dec dword [eax + 0x374]
push ecx
call edx
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [ebp - 0x1d0], 0
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x1cc], eax
mov dword [ebp - 4], eax
xor edi, edi
mov dword [ebp - 0x1b4], eax
mov dword [ebp - 0x158], edi
mov dword [ebp - 0x1b0], 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 - 0x150], ecx
mov dword [ebp - 0x120], 8
mov dword [ebp - 0x130], edx
test ecx, ecx
jle 0x1002a020
cmp ecx, 8
mov eax, ecx
cmovl eax, dword [ebp - 0x120]
mov dword [ebp - 0x11c], eax
test eax, eax
jle 0x1002a020
mov ecx, dword [0x1004995c]
test ecx, ecx
je 0x10029ff0
inc dword [ecx + 0x374]
imul eax, eax, 0xc4
push eax
call edx
mov ecx, dword [ebp - 0x11c]
add esp, 4
mov edx, dword [ebp - 0x130]
mov dword [ebp - 0x1d0], ecx
mov ecx, dword [ebp - 0x150]
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x1cc], eax
mov dword [ebp - 0x1d4], ecx
mov ecx, dword [esi + 0x34]
mov dword [ebp - 0x134], ecx
test ecx, ecx
jle 0x1002a085
cmp ecx, 8
mov eax, ecx
cmovl eax, dword [ebp - 0x120]
mov dword [ebp - 0x11c], eax
test eax, eax
jle 0x1002a085
mov ecx, dword [0x1004995c]
test ecx, ecx
je 0x1002a059
inc dword [ecx + 0x374]
lea eax, [eax + eax*2]
shl eax, 3
push eax
call edx
mov ecx, dword [ebp - 0x134]
mov edi, eax
mov eax, dword [ebp - 0x11c]
add esp, 4
mov dword [ebp - 0x158], edi
mov dword [ebp - 0x1b0], edi
mov dword [ebp - 0x1b4], eax
mov dword [ebp - 0x1b8], ecx
imul ecx, dword [ebp - 0x150], 0xc4
push ecx
push 0
push dword [ebp - 0x15c]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x134]
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 [ebp - 0x12c], 0
cmp dword [esi + 0x4c], 0
jle 0x1002a236
mov eax, dword [ebp - 0x15c]
xor edx, edx
add eax, 0xa4
mov dword [ebp - 0x128], edx
mov dword [ebp - 0x13c], eax
nop dword [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 0x1002a2a9
mov edi, dword [ebp - 0x154]
or esi, 0xffffffff
mov eax, esi
cmp esi, 0xffffffff
jne 0x1002a143
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 0x1002a13b
mov eax, dword [ebp - 0x13c]
mov esi, edx
mov dword [eax - 4], edx
inc edx
mov eax, esi
cmp edx, dword [edi + 0x34]
jl 0x1002a116
mov edi, dword [ebp - 0x158]
cmp eax, 0xffffffff
je 0x1002a2a9
mov eax, dword [ebp - 0x148]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [eax + 0xc]
call fcn.10020d30
mov ecx, dword [ebp - 0x13c]
mov edx, esi
add ecx, 0xffffff5c
push eax
mov dword [ebp - 0x11c], ecx
call fcn.10021010
add esp, 4
test eax, eax
je 0x1002a2a9
mov eax, dword [ebp - 0x11c]
mov edx, 0x10045518
mov esi, dword [ebp - 0x13c]
mov eax, dword [eax + 0xa0]
lea ecx, [eax + eax*2]
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x120], ecx
mov eax, dword [eax + 0x30]
test eax, eax
cmovne edx, eax
mov dword [esi - 8], edx
cmp word [edx], 0
je 0x1002a1e1
movzx eax, word [edx + 2]
test ax, ax
je 0x1002a1db
mov ecx, eax
cmp dword [esi], ecx
cmovge ecx, dword [esi]
add edx, 4
mov dword [esi], ecx
cmp word [edx], 0
jne 0x1002a1c0
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp - 0x120]
inc dword [edi + ecx*8]
mov ecx, dword [esi]
mov eax, dword [ebp - 0x12c]
cmp dword [edi + edx*8 + 4], ecx
cmovge ecx, dword [edi + edx*8 + 4]
add esi, 0xc4
mov dword [ebp - 0x13c], esi
inc eax
mov esi, dword [ebp - 0x154]
mov dword [edi + edx*8 + 4], ecx
mov edx, dword [ebp - 0x128]
add edx, 0x78
mov dword [ebp - 0x12c], eax
cmp eax, dword [esi + 0x4c]
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x128], edx
jl 0x1002a0f0
mov eax, dword [ebp - 0x150]
xor esi, esi
mov dword [ebp - 0x13c], esi
test eax, eax
jle 0x1002a666
mov edx, dword [ebp - 0x15c]
add edx, 0xa8
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], 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 - 0x138], ecx
mov eax, dword [edx + 8]
mov dword [ebp - 0x148], esi
mov dword [ebp - 0x11c], eax
cmp ecx, eax
jle 0x1002a2f7
test eax, eax
je 0x1002a2b5
cdq
sub eax, edx
mov edx, dword [ebp - 0x124]
sar eax, 1
add eax, dword [ebp - 0x11c]
mov dword [ebp - 0x120], eax
jmp 0x1002a2bf
mov byte [ebp - 0x149], 0
jmp 0x1002b866
mov dword [ebp - 0x120], 8
cmp dword [ebp - 0x120], ecx
lea eax, [edx + 4]
mov dword [ebp - 0x12c], eax
mov eax, ecx
cmovg eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x12c]
push eax
call fcn.1001faf0
mov edx, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x138]
mov eax, dword [ebp - 0x12c]
jmp 0x1002a2fa
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 - 0x120], ecx
cmp dword [ecx], 0
jne 0x1002a384
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 0x1002a36d
test eax, eax
je 0x1002a34f
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, dword [ebp - 0x11c]
jmp 0x1002a354
mov ecx, 8
cmp ecx, esi
mov eax, esi
cmovg eax, ecx
mov ecx, dword [ebp - 0x120]
push eax
call fcn.1001faf0
mov ecx, dword [ebp - 0x120]
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 - 0x124]
mov eax, dword [edx - 0xc]
mov dword [ebp - 0x140], eax
cmp word [eax], 0
je 0x1002a478
nop dword [eax]
movzx ecx, word [eax + 2]
test cx, cx
je 0x1002a472
movzx edi, word [eax]
cmp edi, ecx
ja 0x1002a459
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 - 0x158]
sar esi, 5
mov dword [ebp - 0x11c], edx
mov eax, dword [ecx + eax*8 + 0x14]
test dword [eax + esi*4], edx
jne 0x1002a440
mov ecx, dword [ebp - 0x124]
mov edx, edi
add ecx, 0xffffff58
call fcn.10021520
mov edx, dword [ebp - 0x124]
test eax, eax
je 0x1002a446
inc dword [edx]
mov eax, dword [ebp - 0x148]
mov ecx, dword [ebp - 0x158]
inc dword [ecx + eax*8 + 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x158]
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 - 0x13c]
mov edx, dword [ebp - 0x124]
mov eax, dword [ebp - 0x140]
inc edi
movzx eax, word [eax + 2]
cmp edi, eax
jbe 0x1002a3c0
mov eax, dword [ebp - 0x140]
add eax, 4
mov dword [ebp - 0x140], eax
cmp word [eax], 0
jne 0x1002a3a0
mov edi, dword [ebp - 0x158]
add edx, 0xc4
sub dword [ebp - 0x128], 1
mov dword [ebp - 0x124], edx
jne 0x1002a264
mov esi, dword [ebp - 0x15c]
mov eax, dword [ebp - 0x150]
add esi, 0xb8
mov dword [ebp - 0x148], eax
nop dword [eax]
mov edi, dword [esi - 0x10]
cmp edi, dword [esi + 4]
jle 0x1002a521
mov eax, dword [0x1004995c]
test eax, eax
je 0x1002a4c7
inc dword [eax + 0x374]
lea eax, [edi*4]
push eax
call dword [ebp - 0x130]
mov edx, dword [esi + 8]
add esp, 4
mov dword [ebp - 0x11c], eax
test edx, edx
je 0x1002a51b
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 0x1002a50b
mov eax, dword [0x1004995c]
test eax, eax
je 0x1002a50b
dec dword [eax + 0x374]
push ecx
call dword [ebp - 0x144]
mov eax, dword [ebp - 0x11c]
add esp, 4
mov dword [esi + 8], eax
mov dword [esi + 4], edi
mov edx, dword [esi - 4]
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x128], edx
lea eax, [edx + eax*4]
mov dword [ebp - 0x17c], eax
cmp edx, eax
jae 0x1002a610
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov edi, dword [edx]
mov dword [ebp - 0x138], edi
test edi, edi
je 0x1002a5f6
xor eax, eax
mov edx, 1
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x12c], edx
nop dword [eax]
test edx, edi
je 0x1002a5d6
mov edi, ecx
mov ecx, dword [esi + 4]
and edi, 0xffffffe0
add edi, eax
mov eax, dword [esi]
cmp eax, ecx
jne 0x1002a5ba
lea edx, [eax + 1]
mov dword [ebp - 0x11c], edx
test ecx, ecx
je 0x1002a5a2
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0x11c]
sar eax, 1
add eax, ecx
jmp 0x1002a5a7
mov eax, 8
cmp eax, edx
mov ecx, esi
cmovg edx, eax
push edx
call fcn.1001faf0
mov edx, dword [ebp - 0x12c]
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov dword [eax + ecx*4], edi
inc dword [esi]
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x164]
mov edi, dword [ebp - 0x138]
inc eax
rol edx, 1
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x12c], edx
cmp eax, 0x20
jl 0x1002a570
mov edx, dword [ebp - 0x128]
mov eax, dword [ebp - 0x17c]
add edx, 4
add ecx, 0x20
mov dword [ebp - 0x128], edx
mov dword [ebp - 0x164], ecx
cmp edx, eax
jb 0x1002a546
mov ecx, dword [esi - 4]
test ecx, ecx
je 0x1002a645
mov eax, dword [0x1004995c]
mov dword [esi - 8], 0
mov dword [esi - 0xc], 0
test eax, eax
je 0x1002a634
dec dword [eax + 0x374]
push ecx
call dword [ebp - 0x144]
add esp, 4
mov dword [esi - 4], 0
add esi, 0xc4
sub dword [ebp - 0x148], 1
jne 0x1002a4b0
mov edi, dword [ebp - 0x158]
mov esi, dword [ebp - 0x13c]
jmp 0x1002a66e
xor esi, esi
mov dword [ebp - 0x13c], esi
cmp dword [ebp - 0x134], 0
jle 0x1002a6df
mov esi, dword [ebp - 0x144]
lea eax, [edi + 0x14]
mov edi, dword [ebp - 0x134]
mov dword [ebp - 0x120], eax
nop dword [eax]
mov ecx, dword [eax]
test ecx, ecx
je 0x1002a6c5
mov dword [eax - 4], 0
mov dword [eax - 8], 0
mov eax, dword [0x1004995c]
test eax, eax
je 0x1002a6b3
dec dword [eax + 0x374]
push ecx
call esi
mov eax, dword [ebp - 0x120]
add esp, 4
mov dword [eax], 0
add eax, 0x18
mov dword [ebp - 0x120], eax
sub edi, 1
jne 0x1002a690
mov edi, dword [ebp - 0x158]
mov esi, dword [ebp - 0x13c]
test edi, edi
je 0x1002a71e
mov eax, dword [0x1004995c]
mov dword [ebp - 0x1b4], 0
mov dword [ebp - 0x1b8], 0
test eax, eax
je 0x1002a706
dec dword [eax + 0x374]
push edi
call dword [ebp - 0x144]
add esp, 4
xor eax, eax
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x1b0], eax
xor eax, eax
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x1bc], eax
mov dword [ebp - 0x1dc], eax
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x1d8], eax
mov eax, 8
test esi, esi
jle 0x1002a791
cmp esi, eax
mov edi, esi
cmovl edi, eax
test edi, edi
jle 0x1002a791
mov eax, dword [0x1004995c]
test eax, eax
je 0x1002a76b
inc dword [eax + 0x374]
mov eax, edi
shl eax, 4
push eax
call dword [ebp - 0x130]
mov dword [ebp - 0x13c], eax
add esp, 4
mov dword [ebp - 0x1bc], eax
mov eax, 8
mov dword [ebp - 0x1c0], edi
mov dword [ebp - 0x1c4], esi
test esi, esi
jle 0x1002a7de
cmp esi, 8
mov edi, esi
cmovl edi, eax
test edi, edi
jle 0x1002a7de
mov eax, dword [0x1004995c]
test eax, eax
je 0x1002a7b6
inc dword [eax + 0x374]
lea eax, [edi*8]
sub eax, edi
shl eax, 2
push eax
call dword [ebp - 0x130]
add esp, 4
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x1d8], eax
mov dword [ebp - 0x1dc], edi
mov ecx, esi
mov dword [ebp - 0x1e0], esi
shl ecx, 4
push ecx
push 0
push dword [ebp - 0x13c]
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 edx, dword [ebp - 0x150]
xor esi, esi
xor eax, eax
mov dword [ebp - 0x128], esi
xor ecx, ecx
mov dword [ebp - 0x124], eax
add esp, 0xc
mov dword [ebp - 0x134], ecx
test edx, edx
jle 0x1002ac3b
mov edi, dword [ebp - 0x15c]
add edi, 0x98
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x11c], edx
nop dword [eax + eax]
mov edx, dword [edi + 0x10]
test edx, edx
je 0x1002ac1b
add dword [ebp - 0x124], edx
add dword [ebp - 0x134], edx
shl eax, 4
add eax, dword [ebp - 0x13c]
mov dword [edi - 4], eax
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [ebp - 0x148]
lea ecx, [ecx + eax*4]
mov eax, dword [ebp - 0x154]
mov dword [edi], ecx
mov edx, dword [eax + 0x54]
add edx, dword [ebp - 0x120]
mov dword [ebp - 0x164], 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 [0x10045b04]
jbe 0x1002a939
mov esi, dword [ebp - 0x140]
mov eax, 0x100
mov edi, dword [edi - 0x7c]
cwde
mov esi, dword [esi - 0x94]
movzx ecx, byte [edi + esi + 4]
movzx edx, byte [edi + esi + 5]
movsx ecx, cx
imul ecx, eax
mov eax, 0x100
cwde
add dx, cx
movzx ecx, byte [edi + esi + 6]
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edi + esi + 7]
mov edi, dword [ebp - 0x140]
mov esi, dword [ebp - 0x128]
movsx edx, dx
add cx, ax
movsx eax, cx
sub edx, eax
jmp 0x1002a95b
mov ecx, dword [edi - 0x84]
mov eax, dword [edi - 0x94]
xorps xmm1, xmmword [0x10045fe0]
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 - 0x154]
mov eax, dword [eax + 0x10]
divss xmm1, xmm0
mov dword [ebp - 0x160], eax
xor eax, eax
mov dword [ebp - 0x17c], eax
movss dword [ebp - 0x138], xmm1
cmp dword [edi + 0x20], eax
jle 0x1002ac0f
mov dword [ebp - 0x12c], eax
mov edx, dword [edi + 0x28]
lea ecx, [edi - 0x98]
mov edx, dword [edx + eax*4]
call fcn.10021520
mov ecx, dword [ebp - 0x164]
mov edx, eax
mov dword [ebp - 0x178], 0
mov dword [ebp - 0x188], 0
movd xmm0, dword [ecx + 0x14]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x174], xmm0
movd xmm0, dword [ecx + 0x18]
lea ecx, [ebp - 0x18c]
push ecx
cvtdq2ps xmm0, xmm0
lea ecx, [ebp - 0x190]
push ecx
lea ecx, [ebp - 0x188]
push ecx
lea ecx, [ebp - 0x178]
mulss xmm0, xmm1
push ecx
lea ecx, [edi - 0x98]
movss dword [ebp - 0x180], xmm0
call fcn.10021930
add esp, 0x10
test eax, eax
jne 0x1002aa30
mov dword [ebp - 0x178], eax
xor esi, esi
mov dword [ebp - 0x184], eax
mov dword [ebp - 0x174], eax
jmp 0x1002ab6e
xorps xmm0, xmm0
sub esp, 8
cvtsi2ss xmm0, dword [ebp - 0x178]
mulss xmm0, dword [ebp - 0x174]
addss xmm0, dword [0x10045b04]
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_floor
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 - 0x18c]
mov dword [ebp - 0x178], eax
mulss xmm0, dword [ebp - 0x180]
subss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd qword [ebp - 0x170], xmm0
fld qword [ebp - 0x170]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
fstp qword [ebp - 0x170]
movsd xmm0, qword [ebp - 0x170]
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [ebp - 0x190]
mov dword [ebp - 0x184], eax
mulss xmm0, dword [ebp - 0x174]
addss xmm0, dword [0x10045b04]
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 - 0x188]
mov dword [ebp - 0x174], eax
mulss xmm0, dword [ebp - 0x180]
subss xmm1, xmm0
cvtps2pd xmm0, xmm1
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]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si esi, xmm0
mov eax, dword [ebp - 0x160]
sub esi, dword [ebp - 0x184]
movzx edx, ax
mov eax, dword [ebp - 0x164]
add esi, edx
movss xmm1, dword [ebp - 0x138]
dec si
mov cx, word [eax + 0x14]
sub cx, word [ebp - 0x178]
mov eax, dword [edi - 4]
dec cx
add cx, word [ebp - 0x174]
mov edi, dword [ebp - 0x12c]
add cx, dx
mov edx, dword [ebp - 0x12c]
mov word [edi + eax + 4], cx
mov eax, dword [ebp - 0x164]
mov edi, dword [ebp - 0x140]
add si, word [eax + 0x18]
mov eax, dword [edi - 4]
mov word [edx + eax + 6], si
mov eax, dword [edi - 4]
mov esi, dword [ebp - 0x128]
movzx ecx, word [edx + eax + 6]
movzx eax, word [edx + eax + 4]
add edx, 0x10
imul ecx, eax
mov eax, dword [ebp - 0x17c]
inc eax
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x17c], eax
add esi, ecx
mov dword [ebp - 0x128], esi
cmp eax, dword [edi + 0x20]
jl 0x1002a994
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x134]
add dword [ebp - 0x120], 0x78
add edi, 0xc4
sub dword [ebp - 0x11c], 1
mov dword [ebp - 0x140], edi
jne 0x1002a860
movd xmm0, esi
xorps xmm1, xmm1
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x1002ac54
sqrtsd xmm0, xmm0
jmp 0x1002ac59
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
mov edi, dword [ebp - 0x154]
cvtsd2ss xmm0, xmm0
mov eax, dword [edi + 0xc]
mov dword [edi + 0x20], 0
cvttss2si ecx, xmm0
inc ecx
test eax, eax
jg 0x1002acb1
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
comiss xmm0, dword [0x10045c28]
jb 0x1002ac8d
mov eax, 0x1000
jmp 0x1002acb1
comiss xmm0, dword [0x10045c24]
jb 0x1002ac9d
mov eax, 0x800
jmp 0x1002acb1
comiss xmm0, dword [0x10045c18]
mov eax, 0x200
mov ecx, 0x400
cmovae eax, ecx
push 0x2c
mov dword [edi + 0x1c], eax
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [edi + 0x10]
add esp, 0xc
mov dword [ebp - 0x138], eax
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x11c], eax
mov eax, dword [0x1004995c]
test eax, eax
je 0x1002ace8
inc dword [eax + 0x374]
push 0x30
call dword [ebp - 0x130]
mov ecx, dword [0x1004995c]
mov esi, eax
mov eax, dword [ebp - 0x11c]
add esp, 4
sub eax, dword [ebp - 0x138]
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x160], eax
test ecx, ecx
je 0x1002ad1d
inc dword [ecx + 0x374]
shl eax, 3
push eax
call dword [ebp - 0x130]
add esp, 4
test esi, esi
je 0x1002ada8
test eax, eax
je 0x1002ad96
mov edx, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x138]
mov dword [ebp - 0x204], edx
mov dword [ebp - 0x1fc], edx
mov edx, dword [ebp - 0x160]
push edx
push eax
mov dword [ebp - 0x1e4], eax
mov eax, 0x8000
sub eax, ecx
mov dword [ebp - 0x1f8], ecx
push eax
mov ecx, esi
mov dword [ebp - 0x208], esi
mov dword [ebp - 0x1f0], 1
mov dword [ebp - 0x1ec], 1
mov dword [ebp - 0x1f4], 0
call fcn.10020060
add esp, 0xc
jmp 0x1002add2
mov eax, dword [0x1004995c]
test eax, eax
je 0x1002ada5
dec dword [eax + 0x374]
push esi
jmp 0x1002adbd
test eax, eax
je 0x1002adc6
mov ecx, dword [0x1004995c]
test ecx, ecx
je 0x1002adbc
dec dword [ecx + 0x374]
push eax
call dword [ebp - 0x144]
add esp, 4
mov eax, dword [ebp - 0x208]
mov dword [ebp - 0x124], eax
xor eax, eax
mov dword [ebp - 0x134], eax
mov esi, dword [edi + 0x40]
mov dword [ebp - 0x140], esi
test esi, esi
jle 0x1002ae1a
cmp esi, 8
mov ecx, esi
mov edx, 8
cmovl ecx, edx
test ecx, ecx
jle 0x1002ae1a
mov eax, dword [0x1004995c]
test eax, eax
je 0x1002ae07
inc dword [eax + 0x374]
shl ecx, 4
push ecx
call dword [ebp - 0x130]
add esp, 4
mov dword [ebp - 0x134], 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 0x1002ae6a
mov edx, dword [ebp - 0x134]
xor ecx, ecx
add edx, 6
xor esi, esi
nop
mov eax, dword [edi + 0x48]
lea ecx, [ecx + 0x1c]
inc esi
lea edx, [edx + 0x10]
movzx eax, word [ecx + eax - 0x18]
mov word [edx - 0x12], ax
mov eax, dword [edi + 0x48]
movzx eax, word [ecx + eax - 0x16]
mov word [edx - 0x10], ax
cmp esi, dword [edi + 0x40]
jl 0x1002ae40
mov esi, dword [ebp - 0x140]
mov edx, dword [ebp - 0x134]
mov ecx, dword [ebp - 0x124]
push esi
call fcn.10020530
add esp, 4
test esi, esi
jle 0x1002aedb
mov edx, dword [ebp - 0x134]
xor esi, esi
mov eax, dword [ebp - 0x140]
add edx, 0xa
cmp dword [edx + 2], 0
je 0x1002aeca
mov eax, dword [edi + 0x48]
movzx ecx, word [edx - 2]
mov word [esi + eax + 8], cx
mov eax, dword [edi + 0x48]
movzx ecx, word [edx]
mov word [esi + eax + 0xa], cx
movzx eax, word [edx]
movzx ecx, word [edx - 4]
add ecx, eax
mov eax, dword [ebp - 0x140]
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 - 0x140], eax
jne 0x1002ae94
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x1002aeff
mov ecx, dword [0x1004995c]
test ecx, ecx
je 0x1002aef5
dec dword [ecx + 0x374]
push eax
call dword [ebp - 0x144]
add esp, 4
mov byte [ebp - 4], 7
mov esi, dword [ebp - 0x150]
test esi, esi
jle 0x1002af9f
mov esi, dword [ebp - 0x15c]
mov eax, dword [ebp - 0x150]
add esi, 0xa8
mov dword [ebp - 0x138], eax
nop dword [eax]
mov eax, dword [esi]
test eax, eax
je 0x1002af8a
mov edx, dword [esi - 0x14]
mov ecx, dword [ebp - 0x124]
push eax
call fcn.10020530
xor ecx, ecx
add esp, 4
mov dword [ebp - 0x11c], ecx
cmp dword [esi], ecx
jle 0x1002af8a
xor edx, edx
mov eax, dword [esi - 0x14]
cmp dword [edx + eax + 0xc], 0
je 0x1002af7c
movzx ecx, word [edx + eax + 0xa]
movzx eax, word [edx + eax + 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 0x1002af56
add esi, 0xc4
sub dword [ebp - 0x138], 1
jne 0x1002af30
mov esi, dword [ebp - 0x150]
test byte [edi + 4], 1
mov eax, dword [edi + 0x20]
jne 0x1002afcd
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
movss xmm1, dword [0x10045b88]
lea ecx, [eax + 1]
mov eax, dword [edi + 0x1c]
movaps xmm2, xmm1
mov dword [edi + 0x20], ecx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm2, xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
imul ecx, eax
divss xmm1, xmm0
mov eax, dword [0x1004995c]
movss dword [edi + 0x24], xmm2
movss dword [edi + 0x28], xmm1
test eax, eax
je 0x1002b013
inc dword [eax + 0x374]
push ecx
call dword [ebp - 0x130]
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 - 0x1e8], eax
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x200], eax
test esi, esi
jle 0x1002b21c
mov ecx, dword [ebp - 0x15c]
xor eax, eax
mov dword [ebp - 0x11c], eax
mov edx, esi
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x138], esi
nop dword [eax]
mov esi, dword [edi + 0x54]
add esi, eax
cmp dword [ecx + 0xa8], 0
je 0x1002b1f0
push dword [ecx + 0x94]
lea eax, [ecx + 0x7c]
mov edx, ecx
push ecx
push eax
lea ecx, [ebp - 0x20c]
call fcn.100267f0
movss xmm1, dword [esi + 0x44]
add esp, 0xc
ucomiss xmm1, dword [0x10045b88]
movss dword [ebp - 0x160], xmm1
lahf
test ah, 0x44
jnp 0x1002b1d4
xor esi, esi
nop dword [eax]
movd xmm0, esi
mov eax, esi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10045fb0]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
call fcn.1003ca00
movss xmm1, dword [ebp - 0x160]
mov edx, 0xff
cmp eax, edx
movzx ecx, al
cmovbe edx, ecx
mov byte [ebp + esi - 0x118], dl
inc esi
cmp esi, 0x100
jb 0x1002b0c0
mov ecx, dword [ebp - 0x130]
xor eax, eax
mov dword [ebp - 0x12c], eax
mov edx, dword [ecx + 0x94]
cmp dword [ecx + 0xa8], eax
jle 0x1002b1da
lea ecx, [edx + 6]
mov edx, dword [ebp - 0x130]
mov dword [ebp - 0x128], ecx
cmp dword [ecx + 6], 0
je 0x1002b1b8
mov eax, dword [edi + 0x1c]
movzx edx, word [ecx + 4]
movzx edi, word [ecx]
movzx esi, word [ecx - 2]
mov dword [ebp - 0x120], eax
movzx eax, word [ecx + 2]
imul edx, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x154]
add edx, dword [ecx + 0x14]
mov ecx, dword [ebp - 0x128]
add edx, eax
test edi, edi
je 0x1002b1a6
mov eax, dword [ebp - 0x120]
xor ecx, ecx
test esi, esi
je 0x1002b199
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 0x1002b180
mov eax, dword [ebp - 0x120]
dec edi
add edx, eax
test edi, edi
jg 0x1002b177
mov ecx, dword [ebp - 0x128]
mov edx, dword [ebp - 0x130]
mov eax, dword [ebp - 0x12c]
mov edi, dword [ebp - 0x154]
inc eax
add ecx, 0x10
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], ecx
cmp eax, dword [edx + 0xa8]
jl 0x1002b137
mov ecx, dword [ebp - 0x130]
mov eax, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x138]
mov dword [ecx + 0x94], 0
add eax, 0x78
add ecx, 0xc4
sub edx, 1
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x138], edx
jne 0x1002b070
mov esi, dword [ebp - 0x208]
jmp 0x1002b222
mov esi, dword [ebp - 0x124]
cmp dword [ebp - 0x1e4], 0
je 0x1002b23a
mov eax, dword [0x1004995c]
test eax, eax
je 0x1002b23a
dec dword [eax + 0x374]
push dword [ebp - 0x1e4]
call dword [ebp - 0x144]
add esp, 4
test esi, esi
je 0x1002b25c
mov eax, dword [0x1004995c]
test eax, eax
je 0x1002b25c
dec dword [eax + 0x374]
push esi
mov esi, dword [ebp - 0x144]
call esi
mov ecx, dword [ebp - 0x13c]
add esp, 4
test ecx, ecx
je 0x1002b2a9
mov eax, dword [0x1004995c]
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1c4], 0
test eax, eax
je 0x1002b295
dec dword [eax + 0x374]
push ecx
call esi
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x1bc], ecx
mov eax, dword [ebp - 0x150]
test eax, eax
jle 0x1002b806
mov esi, dword [ebp - 0x15c]
xor ecx, ecx
movss xmm4, dword [0x10045b58]
add esi, 4
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x164], esi
mov dword [ebp - 0x130], eax
nop dword [eax]
cmp dword [esi + 0xa4], 0
je 0x1002b768
mov eax, dword [edi + 0x54]
xorps xmm6, xmm6
mov edi, dword [esi + 0x18]
add eax, ecx
mov esi, dword [esi]
mov dword [ebp - 0x140], eax
mov eax, dword [eax + 0x74]
movzx ecx, byte [edi + esi + 6]
movzx edx, byte [edi + esi + 7]
mov dword [ebp - 0x120], eax
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
add dx, cx
movzx ecx, byte [edi + esi + 4]
movsx eax, dx
movzx edx, byte [edi + esi + 5]
mov dword [ebp - 0x160], eax
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
add dx, cx
movsx ecx, dx
mov edx, dword [ebp - 0x160]
mov eax, ecx
sub eax, edx
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
mov ecx, dword [ebp - 0x140]
movd xmm0, eax
mov eax, dword [ebp - 0x140]
cvtdq2ps xmm0, xmm0
movss xmm2, dword [eax + 0x10]
xor eax, eax
divss xmm2, xmm0
comiss xmm1, xmm6
mulss xmm1, xmm2
seta al
lea eax, [eax*2 - 1]
movd xmm0, eax
xor eax, eax
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movd xmm1, edx
cvtdq2ps xmm1, xmm1
mov edx, dword [ebp - 0x120]
cvttss2si esi, xmm0
comiss xmm1, xmm6
mulss xmm1, xmm2
seta al
cmp byte [ecx + 0x3c], 0
lea eax, [eax*2 - 1]
movd xmm0, eax
lea eax, [edx + 0x4c]
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x160], eax
addss xmm0, xmm1
cvttss2si edi, xmm0
jne 0x1002b421
mov ecx, edx
call fcn.1002bdd0
mov edx, dword [ebp - 0x120]
xorps xmm6, xmm6
mov ecx, dword [ebp - 0x140]
movss xmm4, dword [0x10045b58]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov eax, dword [ecx + 0x10]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x154]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 0x160]
mov dword [edx + 0x3c], ecx
movss dword [eax], xmm0
movd xmm0, edi
cvtdq2ps xmm0, xmm0
movss dword [edx + 0x50], xmm0
movss xmm0, dword [eax]
inc word [edx + 0x40]
addss xmm0, xmm4
mov esi, dword [ebp - 0x164]
movss xmm2, dword [ecx + 0x28]
mov edi, dword [ebp - 0x154]
movss dword [ebp - 0x1c8], xmm2
cmp dword [esi + 0xa4], 0
cvttss2si eax, xmm0
mov dword [ebp - 0x12c], 0
movd xmm5, eax
cvtdq2ps xmm5, xmm5
addss xmm5, dword [ecx + 0x2c]
movss dword [ebp - 0x16c], xmm5
jle 0x1002b75c
add edx, 0x20
mov dword [ebp - 0x11c], edx
xor edx, edx
mov dword [ebp - 0x128], edx
nop word [eax + eax]
mov eax, dword [esi + 0xbc]
mov edx, dword [ebp - 0x12c]
mov esi, dword [esi + 0x94]
movss xmm0, dword [ecx + 0x34]
movss dword [ebp - 0x138], xmm0
mov eax, dword [eax + edx*4]
mov edx, dword [ebp - 0x128]
mov dword [ebp - 0x160], eax
movss xmm1, dword [edx + esi + 0x10]
comiss xmm0, xmm1
ja 0x1002b4da
movss xmm0, dword [ecx + 0x38]
minss xmm0, xmm1
movss dword [ebp - 0x138], xmm0
ucomiss xmm1, xmm0
movaps xmm3, xmm2
lahf
test ah, 0x44
jnp 0x1002b506
cmp byte [ecx + 0x1c], 0
movaps xmm3, xmm0
subss xmm3, xmm1
mulss xmm3, xmm4
je 0x1002b502
cvttss2si eax, xmm3
movd xmm3, eax
cvtdq2ps xmm3, xmm3
addss xmm3, xmm2
movd xmm0, dword [edi + 0x1c]
movss xmm2, dword [0x10045b88]
cvtdq2ps xmm0, xmm0
movzx eax, word [edx + esi]
movaps xmm1, xmm2
divss xmm1, xmm0
movd xmm0, dword [edi + 0x20]
cvtdq2ps xmm0, xmm0
divss xmm2, xmm0
movd xmm0, eax
movzx eax, word [edx + esi + 2]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x180], xmm0
movd xmm0, eax
movzx eax, word [edx + esi + 4]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
movss dword [ebp - 0x188], xmm0
movd xmm0, eax
movzx eax, word [edx + esi + 6]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x174], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
movss dword [ebp - 0x178], xmm0
movss xmm0, dword [edx + esi + 8]
addss xmm0, xmm6
addss xmm0, xmm3
movss dword [ebp - 0x190], xmm0
movss xmm0, dword [edx + esi + 0xc]
addss xmm0, xmm6
addss xmm0, xmm5
movss dword [ebp - 0x18c], xmm0
movss xmm0, dword [edx + esi + 0x14]
addss xmm0, xmm6
addss xmm0, xmm3
movss dword [ebp - 0x17c], xmm0
movss xmm0, dword [edx + esi + 0x18]
mov esi, dword [ebp - 0x11c]
addss xmm0, xmm6
mov ecx, esi
mov eax, dword [esi]
addss xmm0, xmm5
inc eax
push eax
movss dword [ebp - 0x184], xmm0
call fcn.1002d1d0
mov eax, dword [esi]
mov edx, dword [ebp - 0x11c]
movss xmm0, dword [ebp - 0x190]
movss xmm4, dword [0x10045b58]
lea esi, [eax + eax*4]
mov eax, dword [ebp - 0x160]
mov ecx, dword [edx + 8]
mov edx, dword [ebp - 0x120]
mov dword [ebp - 0x124], ecx
movss dword [ecx + esi*8 - 0x20], xmm0
movss xmm0, dword [ebp - 0x18c]
movss dword [ecx + esi*8 - 0x1c], xmm0
movss xmm0, dword [ebp - 0x17c]
movss dword [ecx + esi*8 - 0x18], xmm0
movss xmm0, dword [ebp - 0x184]
movss dword [ecx + esi*8 - 0x14], xmm0
movss xmm0, dword [ebp - 0x180]
movss dword [ecx + esi*8 - 0x10], xmm0
movss xmm0, dword [ebp - 0x188]
movss dword [ecx + esi*8 - 0xc], xmm0
movss xmm0, dword [ebp - 0x174]
movss dword [ecx + esi*8 - 8], xmm0
movss xmm0, dword [ebp - 0x178]
movss dword [ecx + esi*8 - 4], xmm0
movss xmm0, dword [ebp - 0x138]
mov word [ecx + esi*8 - 0x28], ax
mov eax, dword [edx + 0x3c]
addss xmm0, dword [eax + 0x20]
movss dword [ecx + esi*8 - 0x24], xmm0
mov eax, dword [edx + 0x3c]
cmp byte [eax + 0x1c], 0
je 0x1002b6c2
addss xmm0, xmm4
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ecx + esi*8 - 0x24], xmm0
mov eax, dword [edx + 0x38]
xorps xmm6, xmm6
mov byte [edx + 0x58], 1
movss xmm0, dword [ecx + esi*8 - 4]
subss xmm0, dword [ecx + esi*8 - 0xc]
movd xmm1, dword [eax + 0x20]
cvtdq2ps xmm1, xmm1
add dword [ebp - 0x128], 0x1c
movss xmm2, dword [ebp - 0x1c8]
mulss xmm1, xmm0
movss xmm5, dword [ebp - 0x16c]
addss xmm1, dword [0x10045bb0]
cvttss2si ecx, xmm1
movd xmm1, dword [eax + 0x1c]
mov eax, dword [ebp - 0x124]
cvtdq2ps xmm1, xmm1
movss xmm0, dword [eax + esi*8 - 8]
subss xmm0, dword [eax + esi*8 - 0x10]
mov esi, dword [ebp - 0x164]
mulss xmm1, xmm0
addss xmm1, dword [0x10045bb0]
cvttss2si eax, xmm1
imul ecx, eax
mov eax, dword [ebp - 0x12c]
inc eax
mov dword [ebp - 0x12c], eax
add dword [edx + 0x54], ecx
mov ecx, dword [ebp - 0x140]
cmp eax, dword [esi + 0xa4]
jl 0x1002b490
mov eax, dword [ebp - 0x130]
mov ecx, dword [ebp - 0x134]
add esi, 0xc4
add ecx, 0x78
sub eax, 1
mov dword [ebp - 0x164], esi
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x130], eax
jne 0x1002b2e0
mov eax, dword [ebp - 0x150]
test eax, eax
jle 0x1002b806
mov esi, dword [ebp - 0x15c]
mov edi, dword [ebp - 0x144]
add esi, 0xb4
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x1002b7ca
mov eax, dword [0x1004995c]
test eax, eax
je 0x1002b7be
dec dword [eax + 0x374]
push ecx
call edi
mov eax, dword [ebp - 0x150]
add esp, 4
mov ecx, dword [esi]
test ecx, ecx
je 0x1002b7eb
mov eax, dword [0x1004995c]
test eax, eax
je 0x1002b7df
dec dword [eax + 0x374]
push ecx
call edi
mov eax, dword [ebp - 0x150]
add esp, 4
add esi, 0xc4
mov byte [ebp - 4], 7
sub eax, 1
mov dword [ebp - 0x150], eax
jne 0x1002b7a8
mov edi, dword [ebp - 0x154]
mov ecx, edi
call fcn.1002b8e0
mov byte [ebp - 0x149], 1
mov ecx, dword [ebp - 0x148]
test ecx, ecx
je 0x1002b83b
mov eax, dword [0x1004995c]
test eax, eax
je 0x1002b82d
dec dword [eax + 0x374]
mov esi, dword [ebp - 0x144]
push ecx
call esi
add esp, 4
jmp 0x1002b841
mov esi, dword [ebp - 0x144]
mov ecx, dword [ebp - 0x13c]
test ecx, ecx
je 0x1002b860
mov eax, dword [0x1004995c]
test eax, eax
je 0x1002b85a
dec dword [eax + 0x374]
push ecx
call esi
add esp, 4
mov edi, dword [ebp - 0x158]
test edi, edi
je 0x1002b887
mov eax, dword [0x1004995c]
test eax, eax
je 0x1002b879
dec dword [eax + 0x374]
mov esi, dword [ebp - 0x144]
push edi
call esi
add esp, 4
jmp 0x1002b88d
mov esi, dword [ebp - 0x144]
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x1002b8ad
mov ecx, dword [0x1004995c]
test ecx, ecx
je 0x1002b8a7
dec dword [ecx + 0x374]
push eax
call esi
add esp, 4
mov al, byte [ebp - 0x149]
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.1003b65b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret