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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1cc
mov eax, dword [0x1024b8c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push ebx
mov dword [ebp - 0x144], ebx
mov dword [ebp - 0x138], eax
call fcn.10023470
add esp, 4
mov dword [ebx + 8], 0
mov ecx, ebx
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
call fcn.10022e40
mov ecx, dword [ebx + 0x54]
xor edi, edi
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x154], edi
mov dword [ebp - 0x16c], ecx
lea edx, [edi + 8]
test ecx, ecx
jle 0x1002e5da
cmp ecx, edx
mov eax, ecx
cmovl eax, edx
test eax, eax
jle 0x1002e5da
imul eax, eax, 0x54
push eax
call fcn.10015f30
add esp, 4
mov dword [ebp - 0x164], eax
lea edx, [edi + 8]
push esi
mov esi, dword [ebx + 0x3c]
mov dword [ebp - 0x17c], esi
test esi, esi
jle 0x1002e60b
cmp esi, 8
mov ecx, esi
cmovl ecx, edx
test ecx, ecx
jle 0x1002e60b
lea eax, [ecx + ecx*2]
shl eax, 3
push eax
call fcn.10015f30
add esp, 4
mov dword [ebp - 0x154], eax
mov edi, eax
imul ecx, dword [ebp - 0x16c], 0x54
push ecx
push 0
push dword [ebp - 0x164]
call sub.VCRUNTIME140.dll_memset
lea eax, [esi + esi*2]
shl eax, 3
push eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [ebp - 0x14c], 0
cmp dword [ebx + 0x54], 0
jle 0x1002e74d
mov edi, dword [ebp - 0x164]
xor eax, eax
mov dword [ebp - 0x140], eax
add edi, 0x34
nop word [eax + eax]
mov ecx, dword [ebp - 0x144]
xor edx, edx
mov ebx, dword [ebx + 0x5c]
add ebx, eax
mov dword [edi - 4], 0xffffffff
cmp dword [ecx + 0x3c], edx
jle 0x1002e7b5
or esi, 0xffffffff
mov eax, esi
cmp esi, 0xffffffff
jne 0x1002e6a7
mov ecx, dword [ecx + 0x44]
or esi, esi
mov eax, dword [ebx + 0x74]
cmp eax, dword [ecx + edx*4]
jne 0x1002e699
mov dword [edi - 4], edx
mov esi, edx
mov ecx, dword [ebp - 0x144]
inc edx
mov eax, esi
cmp edx, dword [ecx + 0x3c]
jl 0x1002e680
cmp eax, 0xffffffff
je 0x1002e7b5
push dword [ebp + 0x10]
lea ecx, [edi - 0x34]
push ebx
push dword [ebp - 0x138]
call fcn.1002f870
test al, al
je 0x1002e7b5
mov eax, dword [edi - 4]
mov edx, dword [ebx + 0x30]
mov ebx, dword [ebp - 0x144]
lea esi, [eax + eax*2]
test edx, edx
jne 0x1002e6e6
mov ecx, ebx
call fcn.10022ed0
mov edx, eax
mov dword [edi - 8], edx
cmp word [edx], 0
je 0x1002e70b
nop
movzx eax, word [edx + 2]
test ax, ax
je 0x1002e70b
mov ecx, eax
cmp dword [edi], ecx
cmovge ecx, dword [edi]
add edx, 4
mov dword [edi], ecx
cmp word [edx], 0
jne 0x1002e6f0
mov edx, dword [ebp - 0x154]
mov eax, dword [ebp - 0x140]
inc dword [edx + esi*8]
mov ecx, dword [edi]
cmp dword [edx + esi*8 + 4], ecx
cmovge ecx, dword [edx + esi*8 + 4]
add eax, 0x78
mov dword [edx + esi*8 + 4], ecx
add edi, 0x54
mov ecx, dword [ebp - 0x14c]
inc ecx
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x14c], ecx
cmp ecx, dword [ebx + 0x54]
jl 0x1002e660
mov edi, edx
mov eax, dword [ebp - 0x16c]
xor esi, esi
mov dword [ebp - 0x160], esi
test eax, eax
jle 0x1002eb7c
mov edx, dword [ebp - 0x164]
add edx, 0x44
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x148], edx
nop dword [eax + eax]
mov eax, dword [edx - 0x14]
mov esi, dword [edx - 0x10]
mov ecx, dword [edx - 4]
add esi, 0x20
sar esi, 5
lea ebx, [eax + eax*2]
mov dword [ebp - 0x14c], ebx
cmp esi, ecx
jle 0x1002e82a
test ecx, ecx
je 0x1002e7bc
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0x148]
sar eax, 1
add eax, ecx
jmp 0x1002e7c1
xor bl, bl
jmp 0x1002f831
mov eax, 8
cmp eax, esi
mov ecx, esi
cmovg ecx, eax
mov dword [ebp - 0x15c], ecx
cmp ecx, dword [edx - 4]
jle 0x1002e82a
lea eax, [ecx*4]
push eax
call fcn.10015f30
mov edx, dword [ebp - 0x148]
add esp, 4
mov dword [ebp - 0x138], eax
cmp dword [edx], 0
je 0x1002e81f
mov ecx, dword [edx - 8]
shl ecx, 2
push ecx
push dword [edx]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x148]
push dword [eax]
call fcn.10015f60
mov edx, dword [ebp - 0x148]
add esp, 0x10
mov eax, dword [ebp - 0x138]
mov dword [edx], eax
mov eax, dword [ebp - 0x15c]
mov dword [edx - 4], eax
lea eax, [esi*4]
mov dword [edx - 8], esi
push eax
push 0
push dword [edx]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + ebx*8 + 0xc], 0
jne 0x1002e8ea
mov esi, dword [edi + ebx*8 + 4]
mov ecx, dword [edi + ebx*8 + 0x10]
add esi, 0x20
sar esi, 5
cmp esi, ecx
jle 0x1002e8d0
test ecx, ecx
je 0x1002e86d
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1002e872
mov eax, 8
cmp eax, esi
mov edx, esi
cmovg edx, eax
mov dword [ebp - 0x15c], edx
cmp edx, ecx
jle 0x1002e8d0
lea eax, [edx*4]
push eax
call fcn.10015f30
mov edx, dword [edi + ebx*8 + 0x14]
add esp, 4
mov dword [ebp - 0x138], eax
test edx, edx
je 0x1002e8c2
mov ecx, dword [edi + ebx*8 + 0xc]
shl ecx, 2
push ecx
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
push dword [edi + ebx*8 + 0x14]
call fcn.10015f60
mov eax, dword [ebp - 0x138]
add esp, 0x10
mov dword [edi + ebx*8 + 0x14], eax
mov eax, dword [ebp - 0x15c]
mov dword [edi + ebx*8 + 0x10], eax
lea eax, [esi*4]
mov dword [edi + ebx*8 + 0xc], esi
push eax
push 0
push dword [edi + ebx*8 + 0x14]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x148]
mov eax, dword [edx - 0x18]
mov dword [ebp - 0x13c], eax
cmp word [eax], 0
je 0x1002e9b5
movzx ecx, word [eax + 2]
test cx, cx
je 0x1002e9af
movzx edi, word [eax]
cmp edi, ecx
ja 0x1002e996
nop word [eax + eax]
mov eax, dword [ebp - 0x14c]
mov ecx, edi
and ecx, 0x1f
mov ebx, 1
shl ebx, cl
mov esi, edi
mov ecx, dword [ebp - 0x154]
sar esi, 5
mov eax, dword [ecx + eax*8 + 0x14]
test dword [eax + esi*4], ebx
jne 0x1002e987
push edi
push dword [edx - 0x2c]
call fcn.10104e40
mov edx, dword [ebp - 0x148]
add esp, 8
test eax, eax
je 0x1002e987
inc dword [edx - 0xc]
mov ecx, dword [ebp - 0x14c]
mov eax, dword [ebp - 0x154]
inc dword [eax + ecx*8 + 8]
mov eax, dword [edx]
or dword [eax + esi*4], ebx
mov eax, dword [ebp - 0x154]
mov eax, dword [eax + ecx*8 + 0x14]
or dword [eax + esi*4], ebx
inc dword [ebp - 0x160]
mov eax, dword [ebp - 0x13c]
inc edi
movzx eax, word [eax + 2]
cmp edi, eax
jle 0x1002e920
mov eax, dword [ebp - 0x13c]
add eax, 4
mov dword [ebp - 0x13c], eax
cmp word [eax], 0
jne 0x1002e903
mov edi, dword [ebp - 0x154]
add edx, 0x54
sub dword [ebp - 0x140], 1
mov dword [ebp - 0x148], edx
jne 0x1002e780
mov esi, dword [ebp - 0x164]
mov ecx, dword [ebp - 0x16c]
add esi, 0x50
mov dword [ebp - 0x13c], esi
mov dword [ebp - 0x140], ecx
mov edi, dword [esi - 0x18]
cmp edi, dword [esi - 4]
jle 0x1002ea31
lea eax, [edi*8]
sub eax, edi
shl eax, 2
push eax
call fcn.10015f30
mov ebx, eax
add esp, 4
mov eax, dword [esi]
test eax, eax
je 0x1002ea2c
mov ecx, dword [esi - 8]
lea edx, [ecx*8]
sub edx, ecx
shl edx, 2
push edx
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
push dword [esi]
call fcn.10015f60
add esp, 0x10
mov dword [esi], ebx
mov dword [esi - 4], edi
mov ecx, dword [esi - 0xc]
mov edx, ecx
mov eax, dword [esi - 0x14]
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x14c], ecx
lea eax, [ecx + eax*4]
mov dword [ebp - 0x180], eax
cmp ecx, eax
jae 0x1002eb39
mov ebx, dword [edx]
mov dword [ebp - 0x15c], ebx
test ebx, ebx
je 0x1002eb28
xor edi, edi
nop dword [eax + eax]
mov eax, 1
mov ecx, edi
shl eax, cl
test ebx, eax
je 0x1002eb18
mov ebx, dword [esi - 4]
mov eax, edx
sub eax, dword [ebp - 0x138]
xorps xmm0, xmm0
mov ecx, dword [esi - 8]
shl eax, 3
and eax, 0xffffffe0
movq qword [ebp - 0x1bc], xmm0
add eax, edi
movzx eax, ax
mov dword [ebp - 0x1b8], eax
cmp ecx, ebx
jne 0x1002eadb
inc ecx
test ebx, ebx
je 0x1002eabf
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
add eax, ebx
jmp 0x1002eac4
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
lea ecx, [esi - 8]
call fcn.1002fa70
mov edx, dword [ebp - 0x14c]
xorps xmm0, xmm0
mov eax, dword [esi - 8]
mov ebx, dword [ebp - 0x15c]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [ebp - 0x13c]
mov eax, dword [eax]
movups xmmword [eax + ecx*4], xmm0
movq xmm0, qword [ebp - 0x1bc]
movq qword [eax + ecx*4 + 0x10], xmm0
mov dword [eax + ecx*4 + 0x18], 0
inc dword [esi - 8]
mov esi, dword [ebp - 0x13c]
inc edi
cmp edi, 0x20
jl 0x1002ea70
mov eax, dword [ebp - 0x180]
add edx, 4
mov dword [ebp - 0x14c], edx
cmp edx, eax
jb 0x1002ea56
mov eax, dword [esi - 0xc]
test eax, eax
je 0x1002eb5e
push eax
mov dword [esi - 0x10], 0
mov dword [esi - 0x14], 0
call fcn.10015f60
add esp, 4
mov dword [esi - 0xc], 0
add esi, 0x54
sub dword [ebp - 0x140], 1
mov dword [ebp - 0x13c], esi
jne 0x1002e9e6
mov esi, dword [ebp - 0x160]
jmp 0x1002eb7e
xor esi, esi
mov ebx, dword [ebp - 0x17c]
test ebx, ebx
jle 0x1002ebbc
mov edi, dword [ebp - 0x154]
add edi, 0x14
mov eax, dword [edi]
test eax, eax
je 0x1002ebb4
push eax
mov dword [edi - 4], 0
mov dword [edi - 8], 0
call fcn.10015f60
add esp, 4
mov dword [edi], 0
add edi, 0x18
sub ebx, 1
jne 0x1002eb91
mov eax, dword [ebp - 0x154]
test eax, eax
je 0x1002ebd9
push eax
call fcn.10015f60
add esp, 4
mov dword [ebp - 0x154], 0
xor ecx, ecx
mov dword [ebp - 0x14c], ecx
test esi, esi
jle 0x1002ec0a
cmp esi, 8
mov eax, esi
mov edx, 8
cmovl eax, edx
test eax, eax
jle 0x1002ec0a
shl eax, 4
push eax
call fcn.10015f30
add esp, 4
mov dword [ebp - 0x14c], eax
mov ecx, eax
shl esi, 4
push esi
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
xor eax, eax
push 0x40000
mov dword [ebp - 0x1a0], eax
call fcn.10015f30
push 0x20
mov esi, eax
call fcn.10015f30
mov ebx, dword [ebp - 0x16c]
add esp, 0x14
movss xmm1, dword [0x10167658]
xor edi, edi
mov dword [ebp - 0x174], eax
mov dword [eax], esi
xor eax, eax
mov dword [ebp - 0x170], 8
mov dword [ebp - 0x148], 1
mov dword [ebp - 0x140], eax
test ebx, ebx
jle 0x1002f1df
mov ebx, dword [ebp - 0x164]
xor edx, edx
mov ecx, dword [ebp - 0x16c]
add ebx, 0x18
mov esi, dword [ebp - 0x144]
mov dword [ebp - 0x15c], edx
mov dword [ebp - 0x180], ebx
mov dword [ebp - 0x138], ecx
nop dword [eax]
mov ecx, dword [esi + 0x5c]
add ecx, edx
mov edx, dword [ebx + 0x20]
test edx, edx
je 0x1002f1a6
mov eax, edi
add edi, edx
shl eax, 4
add eax, dword [ebp - 0x14c]
mov dword [ebx + 0x10], eax
movss xmm0, dword [ecx + 0x44]
ucomiss xmm0, xmm1
mov dword [ebp - 0x198], edi
lahf
test ah, 0x44
jnp 0x1002ecf2
push ecx
lea eax, [ebp - 0x104]
movss dword [esp], xmm0
push eax
mov byte [ebp - 0x155], 1
call fcn.10023320
add esp, 8
jmp 0x1002ecf9
mov byte [ebp - 0x155], 0
cmp dword [ebx + 0x30], 0
movss xmm0, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
movss dword [ebp - 0x1ac], xmm0
movss xmm0, dword [esi + 0x18]
mov dword [ebp - 0x1a8], eax
movss dword [ebp - 0x1b0], xmm0
mov dword [ebp - 0x190], 0
jle 0x1002f1a6
mov eax, dword [ebp - 0x148]
xor edi, edi
inc eax
mov dword [ebp - 0x17c], edi
xor ecx, ecx
mov dword [ebp - 0x184], eax
mov dword [ebp - 0x194], ecx
nop dword [eax]
mov eax, dword [ebx + 0x38]
add eax, ecx
mov dword [ebp - 0x19c], eax
push dword [eax + 0x14]
push dword [ebx]
call fcn.10104e40
add esp, 8
test eax, eax
je 0x1002f16c
push dword [ebx + 8]
push eax
push dword [ebx]
call fcn.101057b0
add esp, 0xc
test eax, eax
jne 0x1002f16c
test byte [ebx + 4], 0x20
mov eax, dword [ebx]
mov esi, dword [eax + 0x54]
je 0x1002ed9a
push esi
call fcn.1010c6e0
add esp, 4
test byte [ebx + 4], 0x40
je 0x1002eda9
push esi
call fcn.1010c7e0
add esp, 4
lea eax, [esi + 0x18]
test eax, eax
je 0x1002f16c
mov eax, dword [ebx]
push dword [ebx + 0xc]
mov esi, dword [eax + 0x54]
push esi
call fcn.10107a40
mov ecx, dword [ebp - 0x19c]
add esp, 8
test eax, eax
je 0x1002edd3
xor edi, edi
jmp 0x1002ee1b
mov eax, dword [ebx]
mov edi, dword [eax + 0x54]
mov eax, dword [edi + 0x50]
add edi, 0x4c
mov dword [ecx], eax
mov eax, dword [edi]
mov dword [ecx + 4], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x64]
mov dword [ecx + 8], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x68]
neg eax
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x40]
add eax, 0x3f
and eax, 0xffffffc0
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ecx + 0x10], xmm0
mov ebx, dword [ecx + 4]
imul ebx, dword [ecx]
mov edx, dword [ebp - 0x1a0]
mov dword [ebp - 0x168], edi
lea eax, [ebx + edx]
cmp eax, 0x40000
jle 0x1002ef0e
xor eax, eax
push 0x40000
mov dword [ebp - 0x1a0], eax
call fcn.10015f30
mov esi, dword [ebp - 0x170]
add esp, 4
mov ecx, eax
mov dword [ebp - 0x13c], ecx
cmp dword [ebp - 0x148], esi
jne 0x1002eee4
test esi, esi
je 0x1002ee75
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
jmp 0x1002ee7a
mov eax, 8
mov esi, dword [ebp - 0x184]
cmp eax, esi
cmovg esi, eax
cmp esi, dword [ebp - 0x170]
jle 0x1002eee4
lea eax, [esi*4]
push eax
call fcn.10015f30
mov edx, dword [ebp - 0x174]
add esp, 4
mov dword [ebp - 0x170], eax
test edx, edx
je 0x1002eed2
mov ecx, dword [ebp - 0x148]
shl ecx, 2
push ecx
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
push dword [ebp - 0x174]
call fcn.10015f60
mov eax, dword [ebp - 0x170]
add esp, 0x10
mov ecx, dword [ebp - 0x13c]
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x170], esi
mov esi, dword [ebp - 0x148]
mov eax, dword [ebp - 0x174]
mov edx, dword [ebp - 0x1a0]
mov dword [eax + esi*4], ecx
inc esi
inc dword [ebp - 0x184]
mov ecx, dword [ebp - 0x19c]
mov dword [ebp - 0x148], esi
jmp 0x1002ef1a
mov esi, dword [ebp - 0x148]
mov eax, dword [ebp - 0x174]
mov esi, dword [eax + esi*4 - 4]
xor eax, eax
add esi, edx
add edx, ebx
cmp byte [ebp - 0x155], al
mov dword [ecx + 0x18], esi
lea ecx, [ebp - 0x104]
mov ebx, dword [edi]
cmove ecx, eax
mov eax, dword [ebp - 0x19c]
mov dword [ebp - 0x1a0], edx
mov edx, dword [ebp - 0x168]
mov dword [ebp - 0x188], esi
mov eax, dword [eax]
mov dword [ebp - 0x13c], eax
mov eax, dword [edi + 4]
mov edi, dword [edi + 0xc]
mov dword [ebp - 0x178], eax
mov eax, dword [edx + 8]
movzx edx, byte [edx + 0x12]
mov dword [ebp - 0x168], eax
mov eax, dword [ebp - 0x178]
mov dword [ebp - 0x1a4], ecx
mov dword [ebp - 0x18c], ebx
mov dword [ebp - 0x160], edi
sub edx, 1
je 0x1002f04a
sub edx, 1
jne 0x1002f0fd
test ecx, ecx
jne 0x1002efce
test ebx, ebx
je 0x1002f0fd
push eax
push edi
push esi
call sub.VCRUNTIME140.dll_memcpy
add edi, dword [ebp - 0x168]
add esp, 0xc
add esi, dword [ebp - 0x13c]
mov eax, dword [ebp - 0x178]
sub ebx, 1
jne 0x1002efa7
jmp 0x1002f0fd
test ebx, ebx
je 0x1002f0fd
mov ecx, dword [ebp - 0x13c]
mov edx, dword [ebp - 0x168]
test eax, eax
je 0x1002f02a
mov ebx, edi
mov ecx, esi
mov edi, dword [ebp - 0x1a4]
sub ebx, esi
mov edx, eax
movzx eax, byte [ecx + ebx]
lea ecx, [ecx + 1]
mov al, byte [eax + edi]
mov byte [ecx - 1], al
sub edx, 1
jne 0x1002eff4
mov esi, dword [ebp - 0x188]
mov edi, dword [ebp - 0x160]
mov eax, dword [ebp - 0x178]
mov ebx, dword [ebp - 0x18c]
mov ecx, dword [ebp - 0x13c]
mov edx, dword [ebp - 0x168]
add edi, edx
add esi, ecx
sub ebx, 1
mov dword [ebp - 0x160], edi
mov dword [ebp - 0x188], esi
mov dword [ebp - 0x18c], ebx
jne 0x1002efe2
jmp 0x1002f0fd
test ecx, ecx
je 0x1002f064
mov dl, byte [ecx]
mov cl, byte [ecx + 0xff]
mov byte [ebp - 0x14d], dl
mov byte [ebp - 0x14e], cl
jmp 0x1002f072
mov byte [ebp - 0x14d], 0
mov byte [ebp - 0x14e], 0xff
test ebx, ebx
je 0x1002f0fd
mov ecx, dword [ebp - 0x18c]
mov bh, byte [ebp - 0x14d]
xor bl, bl
xor edx, edx
test eax, eax
je 0x1002f0d4
nop
mov esi, edx
and esi, 7
jne 0x1002f099
mov bl, byte [edi]
movzx eax, byte [ebp - 0x14e]
test bl, bl
movzx ecx, bh
cmovs ecx, eax
mov eax, dword [ebp - 0x188]
add bl, bl
mov byte [eax + edx], cl
inc edx
test esi, esi
lea eax, [edi + 1]
cmovne eax, edi
mov edi, eax
mov eax, dword [ebp - 0x178]
cmp edx, eax
jb 0x1002f090
mov esi, dword [ebp - 0x188]
mov ecx, dword [ebp - 0x18c]
mov edi, dword [ebp - 0x160]
add edi, dword [ebp - 0x168]
add esi, dword [ebp - 0x13c]
sub ecx, 1
mov dword [ebp - 0x160], edi
mov dword [ebp - 0x188], esi
mov dword [ebp - 0x18c], ecx
jne 0x1002f086
mov edx, dword [ebp - 0x19c]
mov ebx, dword [ebp - 0x180]
mov edi, dword [ebp - 0x17c]
mov eax, dword [edx]
add eax, dword [ebp - 0x1a8]
movd xmm0, eax
mov eax, dword [ebx + 0x10]
cvtdq2ps xmm0, xmm0
addss xmm0, dword [ebp - 0x1ac]
cvttss2si ecx, xmm0
mov word [eax + edi + 4], cx
mov eax, dword [edx + 4]
add eax, dword [ebp - 0x1a8]
movd xmm0, eax
mov eax, dword [ebx + 0x10]
cvtdq2ps xmm0, xmm0
addss xmm0, dword [ebp - 0x1b0]
cvttss2si ecx, xmm0
mov word [eax + edi + 6], cx
mov eax, dword [ebx + 0x10]
movzx ecx, word [eax + edi + 6]
movzx eax, word [eax + edi + 4]
imul ecx, eax
add dword [ebp - 0x140], ecx
mov eax, dword [ebp - 0x190]
add edi, 0x10
mov ecx, dword [ebp - 0x194]
inc eax
add ecx, 0x1c
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x194], ecx
mov dword [ebp - 0x17c], edi
cmp eax, dword [ebx + 0x30]
jl 0x1002ed50
mov esi, dword [ebp - 0x144]
mov edi, dword [ebp - 0x198]
mov edx, dword [ebp - 0x15c]
add ebx, 0x54
movss xmm1, dword [0x10167658]
add edx, 0x78
sub dword [ebp - 0x138], 1
mov dword [ebp - 0x180], ebx
mov dword [ebp - 0x15c], edx
jne 0x1002eca0
mov eax, dword [ebp - 0x140]
mov ebx, dword [ebp - 0x16c]
movd xmm0, eax
sub esp, 8
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrt
mov edi, dword [ebp - 0x144]
add esp, 8
fstp dword [ebp - 0x198]
cvttss2si eax, dword [ebp - 0x198]
mov esi, dword [edi + 0xc]
mov dword [edi + 0x28], 0
inc eax
test esi, esi
jg 0x1002f285
movss xmm0, dword [0x1016b27c]
movss xmm2, dword [0x10167640]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mulss xmm0, xmm2
comiss xmm1, xmm0
jb 0x1002f243
mov esi, 0x1000
jmp 0x1002f285
movss xmm0, dword [0x1016b278]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mulss xmm0, xmm2
comiss xmm1, xmm0
jb 0x1002f262
mov esi, 0x800
jmp 0x1002f285
movss xmm0, dword [0x1016b274]
mov esi, 0x200
movd xmm1, eax
mov eax, 0x400
cvtdq2ps xmm1, xmm1
mulss xmm0, xmm2
comiss xmm1, xmm0
cmovae esi, eax
mov dword [edi + 0x24], esi
xor ecx, ecx
sub esi, dword [edi + 0x10]
mov dword [ebp - 0x178], ecx
test esi, esi
jle 0x1002f2bc
cmp esi, 8
mov eax, esi
mov edx, 8
cmovl eax, edx
test eax, eax
jle 0x1002f2bc
shl eax, 3
push eax
call fcn.10015f30
add esp, 4
mov dword [ebp - 0x178], eax
mov ecx, eax
push esi
push ecx
push 0x8000
push dword [edi + 0x24]
lea eax, [ebp - 0x134]
push eax
call fcn.1002d2d0
lea eax, [ebp - 0x134]
push eax
push edi
call fcn.10023380
add esp, 0x1c
test ebx, ebx
jle 0x1002f378
mov esi, dword [ebp - 0x164]
add esi, 0x38
mov dword [ebp - 0x138], ebx
nop dword [eax]
mov eax, dword [esi]
test eax, eax
je 0x1002f35e
push eax
push dword [esi - 0x10]
lea eax, [ebp - 0x134]
push eax
call fcn.1002d440
xor edi, edi
add esp, 0xc
cmp dword [esi], edi
jle 0x1002f35e
mov ebx, dword [ebp - 0x144]
xor edx, edx
nop word [eax + eax]
mov eax, dword [esi - 0x10]
cmp dword [eax + edx + 0xc], 0
je 0x1002f350
movzx ecx, word [eax + edx + 0xa]
movzx eax, word [eax + edx + 6]
add ecx, eax
cmp dword [ebx + 0x28], ecx
cmovge ecx, dword [ebx + 0x28]
mov dword [ebx + 0x28], ecx
inc edi
add edx, 0x10
cmp edi, dword [esi]
jl 0x1002f330
mov ebx, dword [ebp - 0x138]
add esi, 0x54
sub ebx, 1
mov dword [ebp - 0x138], ebx
jne 0x1002f300
mov edi, dword [ebp - 0x144]
mov ebx, dword [ebp - 0x16c]
test byte [edi + 4], 1
mov eax, dword [edi + 0x28]
jne 0x1002f3a6
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 xmm2, dword [0x10167658]
lea ecx, [eax + 1]
mov eax, dword [edi + 0x24]
movaps xmm1, xmm2
mov dword [edi + 0x28], ecx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
imul eax, ecx
divss xmm1, xmm0
push eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x2c], xmm1
divss xmm2, xmm0
movss dword [edi + 0x30], xmm2
call fcn.10015f30
mov ecx, dword [edi + 0x28]
imul ecx, dword [edi + 0x24]
mov dword [edi + 0x1c], eax
push ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
test ebx, ebx
jle 0x1002f771
mov ebx, dword [ebp - 0x164]
xor eax, eax
mov ecx, dword [ebp - 0x16c]
add ebx, 8
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x168], ecx
cmp dword [ebx + 0x30], 0
je 0x1002f750
mov esi, dword [edi + 0x5c]
sub esp, 8
movss xmm0, dword [ebx]
add esi, eax
movss xmm1, dword [ebx - 4]
mov dword [ebp - 0x198], esi
movss dword [esp + 4], xmm0
mov edi, dword [esi + 0x74]
movss dword [esp], xmm1
push esi
push edi
push dword [ebp - 0x144]
mov dword [ebp - 0x1a8], edi
call fcn.100234e0
movss xmm0, dword [edi + 0x4c]
add esp, 0x14
cmp dword [ebx + 0x30], 0
movss xmm3, dword [0x10167630]
mov edi, dword [ebp - 0x144]
addss xmm0, xmm3
movss xmm4, dword [esi + 0x28]
movss dword [ebp - 0x184], xmm4
mov dword [ebp - 0x17c], 0
mov ecx, dword [edi + 0x10]
cvttss2si eax, xmm0
mov dword [ebp - 0x1a4], ecx
movd xmm5, eax
cvtdq2ps xmm5, xmm5
addss xmm5, dword [esi + 0x2c]
movss dword [ebp - 0x170], xmm5
jle 0x1002f73d
xor esi, esi
xor eax, eax
mov dword [ebp - 0x190], esi
mov dword [ebp - 0x194], eax
mov edx, dword [ebx + 0x48]
add edx, eax
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x180], edx
movzx edi, word [eax + esi + 8]
movzx eax, word [eax + esi + 0xa]
add edi, ecx
mov ebx, dword [edx + 0x18]
add eax, ecx
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 0x15c], eax
mov eax, dword [edx]
mov dword [ebp - 0x138], eax
mov ecx, dword [ecx + 0x24]
mov esi, ecx
imul esi, dword [ebp - 0x15c]
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x1b0], edi
mov dword [ebp - 0x140], ecx
add esi, dword [eax + 0x1c]
mov eax, dword [ebp - 0x138]
add esi, edi
mov edi, dword [edx + 4]
test edi, edi
jle 0x1002f582
push eax
push ebx
push esi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x138]
dec edi
add esi, dword [ebp - 0x140]
add esp, 0xc
add ebx, eax
test edi, edi
jg 0x1002f535
mov edi, dword [ebp - 0x144]
movss xmm3, dword [0x10167630]
movss xmm4, dword [ebp - 0x184]
movss xmm5, dword [ebp - 0x170]
mov ecx, dword [edi + 0x24]
mov edx, dword [ebp - 0x180]
mov dword [ebp - 0x140], ecx
jmp 0x1002f588
mov edi, dword [ebp - 0x144]
mov ebx, dword [ebp - 0x198]
movss xmm2, dword [edx + 0x10]
movss xmm0, dword [ebx + 0x34]
comiss xmm0, xmm2
movss dword [ebp - 0x138], xmm0
ja 0x1002f5b6
movss xmm0, dword [ebx + 0x38]
minss xmm0, xmm2
movss dword [ebp - 0x138], xmm0
ucomiss xmm2, xmm0
movaps xmm1, xmm4
lahf
test ah, 0x44
jnp 0x1002f5ec
cmp byte [ebx + 0x1c], 0
je 0x1002f5dd
subss xmm0, xmm2
mulss xmm0, xmm3
cvttss2si eax, xmm0
movd xmm1, eax
cvtdq2ps xmm1, xmm1
jmp 0x1002f5e8
movaps xmm1, xmm0
subss xmm1, xmm2
mulss xmm1, xmm3
addss xmm1, xmm4
movd xmm0, dword [edx + 8]
sub esp, 0x24
mov eax, dword [edx]
mov esi, dword [ebp - 0x1b0]
mov ebx, dword [ebp - 0x15c]
cvtdq2ps xmm0, xmm0
movd xmm6, eax
add eax, esi
addss xmm0, xmm1
movd xmm7, dword [edx + 0xc]
mov edx, dword [edx + 4]
cvtdq2ps xmm6, xmm6
movss dword [ebp - 0x1ac], xmm0
addss xmm6, xmm0
movd xmm4, esi
movd xmm0, ecx
mov ecx, dword [edi + 0x28]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm4, xmm4
movd xmm3, ebx
divss xmm4, xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm3, xmm3
movd xmm2, eax
lea eax, [ebx + edx]
divss xmm3, xmm0
movd xmm0, dword [ebp - 0x140]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm2, xmm2
movd xmm1, eax
divss xmm2, xmm0
mov eax, dword [ebp - 0x180]
movzx eax, word [eax + 0x14]
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mov ecx, dword [ebp - 0x1a8]
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm7, xmm7
divss xmm1, xmm0
movss xmm0, dword [ebp - 0x138]
addss xmm7, xmm5
movd xmm5, edx
movss dword [esp + 0x20], xmm0
movss xmm0, dword [ebp - 0x1ac]
cvtdq2ps xmm5, xmm5
movss dword [esp + 0x1c], xmm1
movss dword [esp + 0x18], xmm2
addss xmm5, xmm7
movss dword [esp + 0x14], xmm3
movss dword [esp + 0x10], xmm4
movss dword [esp + 0xc], xmm5
movss dword [esp + 8], xmm6
movss dword [esp + 4], xmm7
movss dword [esp], xmm0
push eax
call fcn.10020c70
mov ecx, dword [ebp - 0x17c]
mov ebx, dword [ebp - 0x13c]
inc ecx
mov eax, dword [ebp - 0x194]
mov esi, dword [ebp - 0x190]
add eax, 0x1c
movss xmm3, dword [0x10167630]
add esi, 0x10
cmp ecx, dword [ebx + 0x30]
movss xmm4, dword [ebp - 0x184]
movss xmm5, dword [ebp - 0x170]
mov dword [ebp - 0x17c], ecx
mov ecx, dword [ebp - 0x1a4]
mov dword [ebp - 0x194], eax
mov dword [ebp - 0x190], esi
jl 0x1002f4d2
mov eax, dword [ebp - 0x160]
mov ecx, dword [ebp - 0x168]
mov dword [ebx + 0x20], 0
add ebx, 0x54
add eax, 0x78
sub ecx, 1
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x168], ecx
jne 0x1002f424
mov ebx, dword [ebp - 0x148]
xor esi, esi
test ebx, ebx
jle 0x1002f799
mov edi, dword [ebp - 0x174]
push dword [edi + esi*4]
call fcn.10015f60
inc esi
add esp, 4
cmp esi, ebx
jl 0x1002f783
mov edi, dword [ebp - 0x144]
mov ebx, dword [ebp - 0x16c]
test ebx, ebx
jle 0x1002f7ed
mov esi, dword [ebp - 0x164]
add esi, 0x18
nop dword [eax]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1002f7c0
push eax
call fcn.10015f60
add esp, 4
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x1002f7d0
push eax
call fcn.10015f60
add esp, 4
mov eax, dword [esi]
test eax, eax
je 0x1002f7e5
push eax
call fcn.101049c0
add esp, 4
mov dword [esi], 0
add esi, 0x54
sub ebx, 1
jne 0x1002f7b0
push edi
call fcn.10023060
mov eax, dword [ebp - 0x178]
add esp, 4
mov bl, 1
test eax, eax
je 0x1002f80b
push eax
call fcn.10015f60
add esp, 4
mov eax, dword [ebp - 0x174]
test eax, eax
je 0x1002f81e
push eax
call fcn.10015f60
add esp, 4
mov eax, dword [ebp - 0x14c]
test eax, eax
je 0x1002f831
push eax
call fcn.10015f60
add esp, 4
mov eax, dword [ebp - 0x154]
pop esi
test eax, eax
je 0x1002f845
push eax
call fcn.10015f60
add esp, 4
mov eax, dword [ebp - 0x164]
test eax, eax
je 0x1002f858
push eax
call fcn.10015f60
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
xor ecx, ebp
pop ebx
call fcn.10103042
mov esp, ebp
pop ebp
ret