Function at 0x100817e0
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 0x1013dea7
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x210
mov eax, dword [0x10200e40]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x170], edi
mov dword [ebp - 0x1b4], ecx
imul edx, dword [edi + 0x54], 0x7c
mov ecx, dword [edi + 0x5c]
add edx, ecx
cmp ecx, edx
je 0x10081858
nop dword [eax]
cvttss2si eax, dword [ecx + 0x10]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ecx + 0x10], xmm0
add ecx, 0x7c
cmp ecx, edx
jne 0x10081840
cmp dword [edi + 0x468], 0
jge 0x100818cf
test byte [edi], 2
lea eax, [ebp - 0x1d4]
mov dword [ebp - 0x1d0], 0xffffffff
lea ecx, [edi + 0x48]
mov dword [ebp - 0x1cc], 0
mov dword [ebp - 0x1c8], 0
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1bc], 0
push eax
mov dword [ebp - 0x1d4], 0x1b00f5
je 0x100818c0
mov dword [ebp - 0x1d4], 0x20002
call fcn.1004a2e0
mov eax, dword [edi + 0x48]
dec eax
mov dword [edi + 0x468], eax
cmp dword [edi + 0x46c], 0
jge 0x1008193c
test byte [edi], 4
jne 0x1008193c
lea eax, [ebp - 0x1d4]
mov dword [ebp - 0x1d0], 0xffffffff
push eax
lea ecx, [edi + 0x48]
mov dword [ebp - 0x1cc], 0
mov dword [ebp - 0x1c8], 0
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1bc], 0
mov dword [ebp - 0x1d4], 0x400041
call fcn.1004a2e0
mov eax, dword [edi + 0x48]
dec eax
mov dword [edi + 0x46c], eax
mov eax, dword [edi + 0x1c]
mov dword [edi + 4], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
test eax, eax
je 0x1008197d
push eax
call fcn.1011b2ad
add esp, 4
mov eax, dword [edi + 0x20]
test eax, eax
je 0x1008198d
push eax
call fcn.1011b2ad
add esp, 4
xor eax, eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov byte [edi + 0x19], 0
mov byte [ebp - 0x15d], 0
mov dword [ebp - 0x1f0], 0
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x1ec], eax
mov dword [ebp - 4], eax
xor esi, esi
mov dword [ebp - 0x1e4], eax
mov dword [ebp - 0x19c], esi
mov dword [ebp - 0x1e0], esi
mov byte [ebp - 4], 1
lea edx, [eax + 8]
mov ecx, dword [edi + 0x54]
mov dword [ebp - 0x1a8], ecx
test ecx, ecx
jle 0x10081a27
cmp ecx, edx
mov eax, ecx
cmovl eax, edx
mov dword [ebp - 0x168], eax
test eax, eax
jle 0x10081a27
imul eax, eax, 0x5c
push eax
call fcn.1012189d
mov ecx, dword [ebp - 0x168]
lea edx, [esi + 8]
mov dword [ebp - 0x1f0], ecx
add esp, 4
mov ecx, dword [ebp - 0x1a8]
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x1ec], eax
mov dword [ebp - 0x1f4], ecx
mov ecx, dword [edi + 0x3c]
mov dword [ebp - 0x164], ecx
test ecx, ecx
jle 0x10081a7b
cmp ecx, 8
mov eax, ecx
cmovl eax, edx
mov dword [ebp - 0x168], eax
test eax, eax
jle 0x10081a7b
lea eax, [eax + eax*2]
shl eax, 3
push eax
call fcn.1012189d
mov ecx, dword [ebp - 0x164]
mov esi, eax
mov eax, dword [ebp - 0x168]
add esp, 4
mov dword [ebp - 0x19c], esi
mov dword [ebp - 0x1e0], esi
mov dword [ebp - 0x1e4], eax
mov dword [ebp - 0x1e8], ecx
imul ecx, dword [ebp - 0x1a8], 0x5c
push ecx
push 0
push dword [ebp - 0x188]
call fcn.1010cde0
mov eax, dword [ebp - 0x164]
add esp, 0xc
lea eax, [eax + eax*2]
shl eax, 3
push eax
push 0
push esi
call fcn.1010cde0
add esp, 0xc
mov dword [ebp - 0x180], 0
cmp dword [edi + 0x54], 0
jle 0x10081c07
mov edi, dword [ebp - 0x188]
xor edx, edx
mov ecx, dword [ebp - 0x170]
add edi, 0x3c
mov dword [ebp - 0x1a4], edx
mov dword [ebp - 0x174], edi
mov eax, dword [ecx + 0x5c]
add eax, edx
mov dword [edi - 4], 0xffffffff
xor edx, edx
mov dword [ebp - 0x198], eax
cmp dword [ecx + 0x3c], edx
jle 0x10081ea3
mov esi, dword [ebp - 0x174]
or edi, 0xffffffff
mov ecx, edi
cmp edi, 0xffffffff
jne 0x10081b3b
mov ecx, dword [ebp - 0x170]
or edi, edi
mov eax, dword [eax + 0x78]
mov ecx, dword [ecx + 0x44]
cmp eax, dword [ecx + edx*4]
jne 0x10081b27
mov dword [esi - 4], edx
mov edi, edx
mov eax, dword [ebp - 0x170]
inc edx
mov ecx, edi
cmp edx, dword [eax + 0x3c]
mov eax, dword [ebp - 0x198]
jl 0x10081b08
mov esi, dword [ebp - 0x19c]
cmp ecx, 0xffffffff
je 0x10081ea3
push dword [ebx + 8]
mov edi, dword [ebp - 0x174]
push eax
push dword [ebp - 0x1b4]
lea ecx, [edi - 0x3c]
call fcn.10080d10
test al, al
je 0x10081ea3
mov ecx, dword [ebp - 0x198]
mov edx, 0x101f4250
mov eax, dword [ecx + 0x40]
shr eax, 8
and al, 1
or byte [ebp - 0x15d], al
mov eax, dword [edi - 4]
lea eax, [eax + eax*2]
mov dword [ebp - 0x168], eax
mov eax, dword [ecx + 0x30]
test eax, eax
cmovne edx, eax
mov dword [edi - 8], edx
cmp word [edx], 0
je 0x10081bbb
movzx eax, word [edx + 2]
test ax, ax
je 0x10081bbb
mov ecx, eax
cmp dword [edi], ecx
cmovge ecx, dword [edi]
add edx, 4
mov dword [edi], ecx
cmp word [edx], 0
jne 0x10081ba0
mov edx, dword [ebp - 0x168]
mov eax, dword [ebp - 0x180]
inc dword [esi + edx*8]
mov ecx, dword [edi]
cmp dword [esi + edx*8 + 4], ecx
cmovge ecx, dword [esi + edx*8 + 4]
inc eax
mov dword [esi + edx*8 + 4], ecx
add edi, 0x5c
mov ecx, dword [ebp - 0x170]
mov edx, dword [ebp - 0x1a4]
add edx, 0x7c
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x174], edi
mov dword [ebp - 0x1a4], edx
cmp eax, dword [ecx + 0x54]
jl 0x10081ae2
mov eax, dword [ebp - 0x1a8]
xor edi, edi
mov dword [ebp - 0x184], edi
test eax, eax
jle 0x10081f90
mov edx, dword [ebp - 0x188]
add edx, 0x40
mov dword [ebp - 0x198], eax
mov dword [ebp - 0x178], edx
mov eax, dword [edx - 8]
lea esi, [edx + 4]
mov ecx, esi
lea edi, [eax + eax*2]
mov eax, dword [edx - 4]
add eax, 0x20
mov dword [ebp - 0x174], edi
sar eax, 5
push eax
call fcn.1004a420
mov eax, dword [esi]
shl eax, 2
push eax
mov eax, dword [ebp - 0x178]
push 0
push dword [eax + 0xc]
call fcn.1010cde0
mov eax, dword [ebp - 0x19c]
add esp, 0xc
cmp dword [eax + edi*8 + 0xc], 0
lea esi, [eax + edi*8]
jne 0x10081ca2
mov eax, dword [eax + edi*8 + 4]
lea ecx, [esi + 0xc]
add eax, 0x20
sar eax, 5
push eax
call fcn.1004a420
mov eax, dword [esi + 0xc]
shl eax, 2
push eax
push 0
push dword [esi + 0x14]
call fcn.1010cde0
add esp, 0xc
mov edx, dword [ebp - 0x178]
mov eax, dword [edx - 0xc]
mov dword [ebp - 0x190], eax
cmp word [eax], 0
je 0x10081d91
nop dword [eax + eax]
movzx ecx, word [eax + 2]
test cx, cx
je 0x10081d91
movzx edi, word [eax]
cmp edi, ecx
ja 0x10081d78
nop dword [eax + eax]
mov eax, dword [ebp - 0x174]
mov ecx, edi
and ecx, 0x1f
mov edx, 1
shl edx, cl
mov esi, edi
mov ecx, dword [ebp - 0x19c]
sar esi, 5
mov dword [ebp - 0x168], edx
mov eax, dword [ecx + eax*8 + 0x14]
test dword [eax + esi*4], edx
jne 0x10081d5f
mov eax, dword [ebp - 0x178]
push edi
push dword [eax - 0x28]
call fcn.10088af0
mov edx, dword [ebp - 0x178]
add esp, 8
test eax, eax
je 0x10081d65
inc dword [edx]
mov eax, dword [ebp - 0x174]
mov ecx, dword [ebp - 0x19c]
inc dword [ecx + eax*8 + 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x168]
mov edx, dword [ebp - 0x19c]
or dword [eax + esi*4], ecx
mov eax, dword [ebp - 0x174]
mov eax, dword [edx + eax*8 + 0x14]
or dword [eax + esi*4], ecx
inc dword [ebp - 0x184]
mov edx, dword [ebp - 0x178]
mov eax, dword [ebp - 0x190]
inc edi
movzx eax, word [eax + 2]
cmp edi, eax
jle 0x10081ce0
mov eax, dword [ebp - 0x190]
add eax, 4
mov dword [ebp - 0x190], eax
cmp word [eax], 0
jne 0x10081cc0
add edx, 0x5c
sub dword [ebp - 0x198], 1
mov dword [ebp - 0x178], edx
jne 0x10081c32
mov esi, dword [ebp - 0x188]
mov ecx, dword [ebp - 0x1a8]
add esi, 0x50
mov dword [ebp - 0x180], ecx
nop dword [eax]
mov edi, dword [esi - 0x10]
cmp edi, dword [esi + 4]
jle 0x10081e0a
mov eax, edi
shl eax, 5
push eax
call fcn.1012189d
mov edx, dword [esi + 8]
add esp, 4
mov dword [ebp - 0x168], eax
test edx, edx
je 0x10081e04
mov ecx, dword [esi]
shl ecx, 5
push ecx
push edx
push eax
call fcn.1010c860
add esp, 0xc
push dword [esi + 8]
call fcn.1011b2ad
mov eax, dword [ebp - 0x168]
add esp, 4
mov dword [esi + 8], eax
mov dword [esi + 4], edi
mov ecx, dword [esi - 4]
mov edx, ecx
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x1b4], ecx
mov dword [ebp - 0x198], ecx
lea eax, [ecx + eax*4]
mov dword [ebp - 0x194], eax
cmp ecx, eax
jae 0x10081f4d
nop
mov eax, dword [edx]
mov dword [ebp - 0x168], eax
test eax, eax
je 0x10081f38
xor edi, edi
mov dword [ebp - 0x174], edi
nop dword [eax + eax]
mov eax, 1
mov ecx, edi
shl eax, cl
test dword [ebp - 0x168], eax
je 0x10081f28
mov ecx, dword [esi + 4]
mov eax, edx
sub eax, dword [ebp - 0x1b4]
xorps xmm0, xmm0
shl eax, 3
and eax, 0xffffffe0
add eax, edi
movzx eax, ax
movups xmmword [ebp - 0x1c8], xmm0
mov dword [ebp - 0x1c0], eax
mov eax, dword [esi]
cmp eax, ecx
jne 0x10081f08
lea edi, [eax + 1]
test ecx, ecx
je 0x10081eaf
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x10081eb4
mov byte [ebp - 0x15d], 0
jmp 0x10082d4e
mov eax, 8
cmp eax, edi
cmovg edi, eax
cmp edi, ecx
jle 0x10081f02
mov eax, edi
shl eax, 5
push eax
call fcn.1012189d
mov edx, dword [esi + 8]
add esp, 4
mov dword [ebp - 0x1b0], eax
test edx, edx
je 0x10081ef9
mov ecx, dword [esi]
shl ecx, 5
push ecx
push edx
push eax
call fcn.1010c860
add esp, 0xc
push dword [esi + 8]
call fcn.1011b2ad
mov eax, dword [ebp - 0x1b0]
add esp, 4
mov dword [esi + 8], eax
xorps xmm0, xmm0
mov dword [esi + 4], edi
mov edi, dword [ebp - 0x174]
mov eax, dword [esi]
mov ecx, dword [esi + 8]
mov edx, dword [ebp - 0x198]
shl eax, 5
movups xmmword [ecx + eax], xmm0
movups xmm0, xmmword [ebp - 0x1c8]
movups xmmword [ecx + eax + 0x10], xmm0
inc dword [esi]
inc edi
mov dword [ebp - 0x174], edi
cmp edi, 0x20
jb 0x10081e50
add edx, 4
mov dword [ebp - 0x198], edx
cmp edx, dword [ebp - 0x194]
jb 0x10081e30
mov eax, dword [esi - 4]
test eax, eax
je 0x10081f72
push eax
mov dword [esi - 8], 0
mov dword [esi - 0xc], 0
call fcn.1011b2ad
add esp, 4
mov dword [esi - 4], 0
add esi, 0x5c
sub dword [ebp - 0x180], 1
jne 0x10081dc0
mov esi, dword [ebp - 0x19c]
mov edi, dword [ebp - 0x184]
jmp 0x10081f98
xor edi, edi
mov dword [ebp - 0x184], edi
cmp dword [ebp - 0x164], 0
jle 0x10081fe9
mov edi, dword [ebp - 0x164]
lea eax, [esi + 0x14]
mov dword [ebp - 0x168], eax
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x10081fd5
push eax
mov dword [esi - 4], 0
mov dword [esi - 8], 0
call fcn.1011b2ad
add esp, 4
mov dword [esi], 0
add esi, 0x18
sub edi, 1
jne 0x10081fb2
mov esi, dword [ebp - 0x19c]
mov edi, dword [ebp - 0x184]
test esi, esi
je 0x10082018
push esi
mov dword [ebp - 0x1e4], 0
mov dword [ebp - 0x1e8], 0
call fcn.1011b2ad
add esp, 4
xor eax, eax
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x1e0], eax
xor eax, eax
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x198], eax
mov dword [ebp - 0x20c], eax
test edi, edi
jle 0x10082066
cmp edi, 8
mov esi, edi
mov ecx, 8
cmovl esi, ecx
test esi, esi
jle 0x10082066
lea eax, [esi + esi*2]
shl eax, 3
push eax
call fcn.1012189d
add esp, 4
mov dword [ebp - 0x198], eax
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x210], esi
lea ecx, [edi + edi*2]
mov dword [ebp - 0x214], edi
shl ecx, 3
push ecx
push 0
push eax
call fcn.1010cde0
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x164], eax
push 0x40000
call fcn.1012189d
add esp, 4
mov esi, eax
push 0x20
call fcn.1012189d
movss xmm0, dword [0x101f4f54]
xor ecx, ecx
mov dword [ebp - 0x184], eax
xor edi, edi
mov dword [ebp - 0x11c], eax
add esp, 4
mov dword [eax], esi
mov edx, 8
mov eax, 1
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x178], eax
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x1a8]
mov dword [ebp - 0x190], ecx
mov dword [ebp - 0x1ac], edi
test eax, eax
jle 0x100824c0
mov esi, dword [ebp - 0x188]
xor edx, edx
mov dword [ebp - 0x1a0], eax
add esi, 0x50
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x18c], edx
nop dword [eax]
mov ecx, dword [eax + 0x5c]
add ecx, edx
cmp dword [esi - 0x10], 0
je 0x1008248d
mov edx, dword [ebp - 0x198]
lea eax, [edi + edi*2]
add edi, dword [esi - 0x10]
mov dword [ebp - 0x1ac], edi
lea eax, [edx + eax*8]
mov dword [esi - 0x20], eax
movss xmm1, dword [ecx + 0x44]
ucomiss xmm1, xmm0
movss dword [ebp - 0x168], xmm1
lahf
test ah, 0x44
jnp 0x100821a0
mov byte [ebp - 0x169], 1
xor edi, edi
movd xmm0, edi
mov eax, edi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x101f5500]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
call fcn.1010aeb0
movss xmm1, dword [ebp - 0x168]
mov edx, 0xff
cmp eax, edx
movzx ecx, al
cmovbe edx, ecx
mov byte [ebp + edi - 0x118], dl
inc edi
cmp edi, 0x100
jb 0x10082156
jmp 0x100821a7
mov byte [ebp - 0x169], 0
cmp dword [esi], 0
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x17c], 0
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x1a4], ecx
jle 0x1008248d
xor ecx, ecx
mov dword [ebp - 0x174], 0
mov dword [ebp - 0x1b8], ecx
nop dword [eax + eax]
mov edi, dword [esi + 8]
add edi, ecx
push dword [edi + 0x18]
push dword [esi - 0x38]
call fcn.10088af0
add esp, 8
test eax, eax
je 0x1008245c
push dword [esi - 0x30]
push eax
push dword [esi - 0x38]
call fcn.10089430
add esp, 0xc
test eax, eax
jne 0x1008245c
test byte [esi - 0x34], 0x20
mov eax, dword [esi - 0x38]
mov eax, dword [eax + 0x54]
mov dword [ebp - 0x180], eax
je 0x10082233
push eax
call fcn.10090840
mov eax, dword [ebp - 0x180]
add esp, 4
test byte [esi - 0x34], 0x40
je 0x10082242
push eax
call fcn.10090940
add esp, 4
mov eax, dword [ebp - 0x180]
add eax, 0x18
je 0x1008245c
mov eax, dword [esi - 0x38]
push dword [esi - 0x2c]
mov eax, dword [eax + 0x54]
push eax
mov dword [ebp - 0x168], eax
call fcn.1008b8e0
add esp, 8
test eax, eax
jne 0x1008245c
mov eax, dword [esi - 0x38]
mov ecx, dword [eax + 0x54]
mov eax, dword [ecx + 0x50]
add ecx, 0x4c
mov dword [edi], eax
mov dword [ebp - 0x180], ecx
mov eax, dword [ecx]
mov dword [edi + 4], eax
mov eax, dword [esi - 0x38]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x64]
mov dword [edi + 8], eax
mov eax, dword [esi - 0x38]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x68]
neg eax
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x168]
mov eax, dword [eax + 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 [edi + 0x10], xmm0
cmp byte [ecx + 0x12], 7
sete al
mov byte [edi + 0x14], al
test ecx, ecx
je 0x1008245c
mov eax, dword [edi + 4]
imul eax, dword [edi]
mov edx, dword [ebp - 0x164]
shl eax, 2
mov dword [ebp - 0x194], eax
add eax, edx
cmp eax, 0x40000
jle 0x100823e4
xor eax, eax
push 0x40000
mov dword [ebp - 0x164], eax
call fcn.1012189d
mov ecx, dword [ebp - 0x178]
add esp, 4
mov dword [ebp - 0x1b0], eax
mov eax, dword [ebp - 0x120]
cmp ecx, eax
jne 0x100823c0
inc ecx
test eax, eax
je 0x1008233f
cdq
sub eax, edx
mov edx, dword [ebp - 0x120]
sar eax, 1
add eax, edx
jmp 0x1008234a
mov edx, dword [ebp - 0x120]
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov dword [ebp - 0x1b4], ecx
cmp ecx, edx
jle 0x100823ba
lea eax, [ecx*4]
push eax
call fcn.1012189d
mov edx, dword [ebp - 0x184]
add esp, 4
mov dword [ebp - 0x168], eax
test edx, edx
je 0x100823a2
mov ecx, dword [ebp - 0x178]
shl ecx, 2
push ecx
push edx
push eax
call fcn.1010c860
mov edx, dword [ebp - 0x184]
add esp, 0xc
push edx
call fcn.1011b2ad
mov eax, dword [ebp - 0x168]
add esp, 4
mov dword [ebp - 0x184], eax
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x1b4]
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x178]
mov edx, dword [ebp - 0x184]
mov eax, dword [ebp - 0x1b0]
mov dword [edx + ecx*4], eax
inc ecx
mov edx, dword [ebp - 0x164]
mov dword [ebp - 0x178], ecx
mov dword [ebp - 0x124], ecx
jmp 0x100823ea
mov ecx, dword [ebp - 0x178]
mov eax, dword [ebp - 0x184]
mov ecx, dword [eax + ecx*4 - 4]
lea eax, [ebp - 0x118]
add ecx, edx
add edx, dword [ebp - 0x194]
mov dword [ebp - 0x164], edx
xor edx, edx
cmp byte [ebp - 0x169], dl
mov dword [edi + 0x1c], ecx
cmove eax, edx
push eax
push dword [edi]
push ecx
push dword [ebp - 0x180]
call fcn.10080f70
mov edx, dword [ebp - 0x174]
mov eax, dword [esi - 0x20]
mov ecx, dword [edi]
add ecx, dword [ebp - 0x1a4]
mov dword [edx + eax + 4], ecx
mov eax, dword [esi - 0x20]
mov ecx, dword [edi + 4]
add ecx, dword [ebp - 0x1a4]
mov dword [edx + eax + 8], ecx
mov eax, dword [esi - 0x20]
mov ecx, dword [eax + edx + 8]
imul ecx, dword [eax + edx + 4]
add dword [ebp - 0x190], ecx
mov eax, dword [ebp - 0x17c]
mov ecx, dword [ebp - 0x1b8]
inc eax
add dword [ebp - 0x174], 0x18
add ecx, 0x20
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x1b8], ecx
cmp eax, dword [esi]
jl 0x100821e0
mov eax, dword [ebp - 0x170]
mov edx, dword [ebp - 0x18c]
add esi, 0x5c
movss xmm0, dword [0x101f4f54]
add edx, 0x7c
sub dword [ebp - 0x1a0], 1
mov edi, dword [ebp - 0x1ac]
mov dword [ebp - 0x18c], edx
jne 0x10082110
mov ecx, dword [ebp - 0x190]
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
call fcn.10030ea0
mov edi, dword [ebp - 0x170]
cvttss2si ecx, xmm0
mov eax, dword [edi + 8]
mov dword [edi + 0x28], 0
inc ecx
test eax, eax
jg 0x10082520
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
comiss xmm0, dword [0x101f503c]
jb 0x100824fc
mov eax, 0x1000
jmp 0x10082520
comiss xmm0, dword [0x101f5038]
jb 0x1008250c
mov eax, 0x800
jmp 0x10082520
comiss xmm0, dword [0x101f5024]
mov eax, 0x200
mov ecx, 0x400
cmovae eax, ecx
mov ecx, edi
mov dword [ecx + 0x24], eax
xor ecx, ecx
sub eax, dword [edi + 0xc]
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x204], 0
mov dword [ebp - 0x200], ecx
test eax, eax
jle 0x10082578
cmp eax, 8
mov esi, eax
mov edx, 8
cmovl esi, edx
test esi, esi
jle 0x10082578
lea eax, [esi + esi*2]
shl eax, 2
push eax
call fcn.1012189d
mov ecx, eax
mov dword [ebp - 0x204], esi
mov eax, dword [ebp - 0x168]
add esp, 4
mov dword [ebp - 0x200], ecx
mov edx, dword [edi + 0x24]
sub edx, dword [edi + 0xc]
push eax
push ecx
mov ecx, 0x8000
mov dword [ebp - 0x208], eax
sub ecx, dword [edi + 0xc]
push ecx
lea ecx, [ebp - 0x15c]
call fcn.10081460
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x164], eax
mov esi, dword [ebp - 0x170]
mov edi, dword [esi + 0x48]
mov dword [ebp - 0x18c], edi
test edi, edi
jle 0x100825de
cmp edi, 8
mov ecx, edi
mov edx, 8
cmovl ecx, edx
test ecx, ecx
jle 0x100825de
lea eax, [ecx + ecx*2]
shl eax, 3
push eax
call fcn.1012189d
add esp, 4
mov dword [ebp - 0x164], eax
lea ecx, [edi + edi*2]
shl ecx, 3
push ecx
push 0
push eax
call fcn.1010cde0
add esp, 0xc
cmp dword [esi + 0x48], 0
jle 0x1008262b
mov edx, dword [ebp - 0x164]
xor ecx, ecx
add edx, 8
xor edi, edi
mov eax, dword [esi + 0x50]
lea ecx, [ecx + 0x1c]
inc edi
lea edx, [edx + 0x18]
movzx eax, word [ecx + eax - 0x1c]
mov dword [edx - 0x1c], eax
mov eax, dword [esi + 0x50]
movzx eax, word [ecx + eax - 0x1a]
mov dword [edx - 0x18], eax
cmp edi, dword [esi + 0x48]
jl 0x10082603
mov edi, dword [ebp - 0x18c]
mov edx, dword [ebp - 0x164]
lea ecx, [ebp - 0x15c]
push edi
call fcn.1004d230
add esp, 4
test edi, edi
jle 0x10082698
mov edx, dword [ebp - 0x164]
xor edi, edi
mov eax, dword [ebp - 0x18c]
add edx, 0x10
cmp dword [edx + 4], 0
je 0x10082687
mov eax, dword [esi + 0x50]
movzx ecx, word [edx - 4]
mov word [edi + eax + 4], cx
mov eax, dword [esi + 0x50]
movzx ecx, word [edx]
mov word [edi + eax + 6], cx
mov ecx, dword [edx - 8]
add ecx, dword [edx]
cmp dword [esi + 0x28], ecx
mov eax, dword [ebp - 0x18c]
cmovge ecx, dword [esi + 0x28]
mov dword [esi + 0x28], ecx
add edi, 0x1c
add edx, 0x18
sub eax, 1
mov dword [ebp - 0x18c], eax
jne 0x10082655
mov eax, dword [ebp - 0x164]
test eax, eax
je 0x100826ab
push eax
call fcn.1011b2ad
add esp, 4
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x1a8]
test eax, eax
jle 0x1008272c
mov esi, dword [ebp - 0x188]
add esi, 0x40
mov dword [ebp - 0x1ac], eax
mov eax, dword [esi]
test eax, eax
je 0x1008271a
mov edx, dword [esi - 0x10]
lea ecx, [ebp - 0x15c]
push eax
call fcn.100815f0
xor edi, edi
add esp, 4
cmp dword [esi], edi
jle 0x1008271a
xor edx, edx
nop dword [eax + eax]
mov eax, dword [esi - 0x10]
cmp dword [eax + edx + 0x14], 0
je 0x10082712
mov ecx, dword [eax + edx + 0x10]
add ecx, dword [eax + edx + 8]
mov eax, dword [ebp - 0x170]
cmp dword [eax + 0x28], ecx
cmovge ecx, dword [eax + 0x28]
mov dword [eax + 0x28], ecx
inc edi
add edx, 0x18
cmp edi, dword [esi]
jl 0x100826f0
add esi, 0x5c
sub dword [ebp - 0x1ac], 1
jne 0x100826c8
mov esi, dword [ebp - 0x170]
test byte [esi], 1
mov eax, dword [esi + 0x28]
jne 0x10082759
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 [0x101f4f54]
lea edi, [eax + 1]
mov eax, dword [esi + 0x24]
movaps xmm1, xmm2
mov dword [esi + 0x28], edi
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movd xmm0, edi
cvtdq2ps xmm0, xmm0
imul edi, eax
cmp byte [ebp - 0x15d], 0
divss xmm2, xmm0
movss dword [esi + 0x2c], xmm1
movss dword [esi + 0x30], xmm2
je 0x100827c3
lea esi, [edi*4]
push esi
call fcn.1012189d
mov ecx, dword [ebp - 0x170]
add esp, 4
push esi
push 0
push eax
mov dword [ecx + 0x20], eax
call fcn.1010cde0
mov esi, dword [ebp - 0x170]
jmp 0x100827d8
push edi
call fcn.1012189d
add esp, 4
mov dword [esi + 0x1c], eax
push edi
push 0
push eax
call fcn.1010cde0
mov ecx, dword [ebp - 0x1a8]
xor al, al
add esp, 0xc
mov byte [ebp - 0x169], al
test ecx, ecx
jle 0x10082c44
mov eax, dword [ebp - 0x188]
xor edx, edx
add eax, 4
mov dword [ebp - 0x1b4], edx
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x168], ecx
nop
cmp dword [eax + 0x3c], 0
je 0x10082c1d
mov ecx, dword [esi + 0x5c]
movss xmm0, dword [eax]
add ecx, edx
movss dword [ebp - 0x1b0], xmm0
movss xmm0, dword [eax + 4]
mov dword [ebp - 0x1ac], ecx
cmp byte [ecx + 0x3c], 0
mov edx, dword [ecx + 0x78]
mov dword [ebp - 0x1b8], edx
movss dword [ebp - 0x194], xmm0
lea edi, [edx + 0x50]
jne 0x10082885
mov ecx, edx
call fcn.10051bb0
mov ecx, dword [ebp - 0x1ac]
mov edx, dword [ebp - 0x1b8]
movss xmm0, dword [ebp - 0x1b0]
mov eax, dword [ecx + 0x10]
movss dword [edi], xmm0
movss xmm0, dword [ebp - 0x194]
mov dword [edx + 0x10], eax
mov dword [edx + 0x30], esi
movss dword [edx + 0x54], xmm0
movss xmm0, dword [edi]
addss xmm0, dword [0x101f4f0c]
movss xmm3, dword [ecx + 0x28]
movss dword [ebp - 0x190], xmm3
mov dword [ebp - 0x1b0], 0
cvttss2si eax, xmm0
movd xmm2, eax
mov eax, dword [esi + 0xc]
cvtdq2ps xmm2, xmm2
mov dword [ebp - 0x1f8], eax
mov eax, dword [ebp - 0x174]
cmp dword [eax + 0x3c], 0
addss xmm2, dword [ecx + 0x2c]
movss dword [ebp - 0x18c], xmm2
jle 0x10082c0a
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x1a4], ecx
mov dword [ebp - 0x180], edx
nop dword [eax]
mov edi, dword [eax + 0x54]
mov eax, dword [eax + 0x2c]
add edi, edx
add eax, ecx
cmp dword [eax + 4], 0
jne 0x1008290a
cmp dword [eax + 8], 0
je 0x10082bd4
mov edx, dword [eax + 0xc]
sub esp, 0x20
mov eax, dword [eax + 0x10]
add eax, dword [ebp - 0x1f8]
mov ecx, dword [edi + 4]
movd xmm0, dword [edi + 0xc]
movd xmm1, dword [edi + 8]
add edx, dword [ebp - 0x1f8]
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp - 0x174]
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x1a0], edx
movss xmm6, dword [eax + 0x28]
mov eax, dword [edi]
mulss xmm0, xmm6
movd xmm5, ecx
cvtdq2ps xmm5, xmm5
addss xmm0, xmm2
movd xmm7, eax
cvtdq2ps xmm1, xmm1
add eax, edx
mulss xmm5, xmm6
movss dword [ebp - 0x194], xmm0
mulss xmm1, xmm6
addss xmm5, xmm0
movd xmm2, eax
movd xmm0, dword [esi + 0x24]
mov eax, dword [ebp - 0x17c]
addss xmm1, xmm3
movd xmm3, dword [ebp - 0x17c]
add eax, ecx
cvtdq2ps xmm7, xmm7
mov ecx, dword [ebp - 0x1b8]
cvtdq2ps xmm0, xmm0
movd xmm4, edx
cvtdq2ps xmm4, xmm4
cvtdq2ps xmm2, xmm2
mulss xmm7, xmm6
divss xmm4, xmm0
divss xmm2, xmm0
movss dword [ebp - 0x164], xmm1
addss xmm7, xmm1
movd xmm1, dword [esi + 0x28]
movd xmm0, eax
cvtdq2ps xmm1, xmm1
movzx eax, word [edi + 0x18]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm3, xmm3
mulss xmm6, dword [edi + 0x10]
divss xmm0, xmm1
divss xmm3, xmm1
movss dword [esp + 0x1c], xmm6
movss dword [esp + 0x18], xmm0
movss xmm0, dword [ebp - 0x194]
movss dword [esp + 0x14], xmm2
movss dword [esp + 0x10], xmm3
movss xmm3, dword [ebp - 0x164]
movss dword [esp + 0xc], xmm4
movss dword [esp + 8], xmm5
movss dword [esp + 4], xmm7
movss dword [esp], xmm0
push eax
push dword [ebp - 0x1ac]
call fcn.10052220
cmp byte [edi + 0x14], 0
mov ecx, dword [ebp - 0x1b8]
mov eax, dword [ecx + 0x20]
mov ecx, dword [ecx + 0x28]
lea eax, [eax + eax*4]
je 0x10082a4e
or dword [ecx + eax*8 - 0x28], 1
mov byte [ebp - 0x169], 1
mov eax, dword [esi + 0x24]
mov ecx, eax
mov esi, dword [edi + 0x1c]
imul ecx, dword [ebp - 0x17c]
mov edx, dword [edi]
mov dword [ebp - 0x164], esi
mov esi, dword [ebp - 0x170]
mov dword [ebp - 0x194], eax
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x10082b11
add eax, dword [ebp - 0x1a0]
mov esi, dword [ebp - 0x164]
add eax, ecx
cmp dword [edi + 4], 0
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x1a0], 0
jle 0x10082bbe
lea ecx, [edx*4]
mov dword [ebp - 0x1dc], ecx
xor ecx, ecx
test edx, edx
jle 0x10082ae2
add esi, 3
nop word [eax + eax]
mov edx, dword [ebp - 0x17c]
lea esi, [esi + 4]
mov al, byte [esi - 4]
mov byte [ecx + edx], al
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jl 0x10082ac0
mov eax, dword [ebp - 0x17c]
mov esi, dword [ebp - 0x164]
mov ecx, dword [ebp - 0x1a0]
add eax, dword [ebp - 0x194]
inc ecx
add esi, dword [ebp - 0x1dc]
mov dword [ebp - 0x1a0], ecx
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x164], esi
cmp ecx, dword [edi + 4]
jl 0x10082ab1
jmp 0x10082bbe
add ecx, dword [ebp - 0x1a0]
cmp dword [edi + 4], 0
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x1a0], 0
lea ecx, [eax + ecx*4]
mov dword [ebp - 0x17c], ecx
jle 0x10082bc4
mov eax, dword [ebp - 0x194]
shl eax, 2
mov dword [ebp - 0x194], eax
lea eax, [edx*4]
mov dword [ebp - 0x1fc], eax
mov eax, dword [ebp - 0x164]
nop dword [eax]
xor esi, esi
test edx, edx
jle 0x10082b94
sub eax, dword [ebp - 0x17c]
mov dword [ebp - 0x1dc], eax
mov eax, dword [ecx + eax]
lea ecx, [ecx + 4]
mov dword [ecx - 4], eax
inc esi
mov edx, dword [edi]
mov eax, dword [ebp - 0x1dc]
cmp esi, edx
jl 0x10082b72
mov eax, dword [ebp - 0x164]
mov ecx, dword [ebp - 0x17c]
mov esi, dword [ebp - 0x1a0]
add ecx, dword [ebp - 0x194]
inc esi
add eax, dword [ebp - 0x1fc]
mov dword [ebp - 0x1a0], esi
mov dword [ebp - 0x17c], ecx
mov dword [ebp - 0x164], eax
cmp esi, dword [edi + 4]
jl 0x10082b60
mov esi, dword [ebp - 0x170]
movss xmm3, dword [ebp - 0x190]
movss xmm2, dword [ebp - 0x18c]
mov ecx, dword [ebp - 0x1b0]
mov eax, dword [ebp - 0x174]
inc ecx
add dword [ebp - 0x180], 0x20
add dword [ebp - 0x1a4], 0x18
mov edx, dword [ebp - 0x180]
cmp ecx, dword [eax + 0x3c]
mov dword [ebp - 0x1b0], ecx
mov ecx, dword [ebp - 0x1a4]
jl 0x100828f0
mov edx, dword [ebp - 0x1b4]
mov ecx, dword [ebp - 0x168]
mov dword [eax + 0x2c], 0
add eax, 0x5c
add edx, 0x7c
sub ecx, 1
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x1b4], edx
mov dword [ebp - 0x168], ecx
jne 0x10082810
mov al, byte [ebp - 0x169]
mov ecx, dword [ebp - 0x178]
xor edi, edi
mov byte [esi + 0x19], al
test ecx, ecx
jle 0x10082c72
mov esi, ecx
mov eax, dword [ebp - 0x184]
mov eax, dword [eax + edi*4]
push eax
call fcn.1011b2ad
inc edi
add esp, 4
cmp edi, esi
jl 0x10082c55
mov esi, dword [ebp - 0x170]
mov edi, dword [ebp - 0x1a8]
test edi, edi
jle 0x10082ccc
mov esi, dword [ebp - 0x188]
add esi, 0x18
mov eax, dword [esi + 0x40]
test eax, eax
je 0x10082c95
push eax
call fcn.1011b2ad
add esp, 4
mov eax, dword [esi + 0x34]
test eax, eax
je 0x10082ca5
push eax
call fcn.1011b2ad
add esp, 4
mov byte [ebp - 4], 8
mov eax, dword [esi]
test eax, eax
je 0x10082cbe
push eax
call fcn.10088670
add esp, 4
mov dword [esi], 0
add esi, 0x5c
sub edi, 1
jne 0x10082c85
mov esi, dword [ebp - 0x170]
mov edi, dword [ebp - 0x188]
test edi, edi
je 0x10082d01
push edi
mov dword [ebp - 0x1f0], 0
mov dword [ebp - 0x1f4], 0
call fcn.1011b2ad
add esp, 4
xor edi, edi
mov dword [ebp - 0x188], edi
mov dword [ebp - 0x1ec], edi
mov ecx, esi
call fcn.10051850
mov byte [ebp - 0x15d], 1
mov eax, dword [ebp - 0x200]
test eax, eax
je 0x10082d22
push eax
call fcn.1011b2ad
add esp, 4
mov eax, dword [ebp - 0x184]
test eax, eax
je 0x10082d35
push eax
call fcn.1011b2ad
add esp, 4
mov eax, dword [ebp - 0x198]
test eax, eax
je 0x10082d48
push eax
call fcn.1011b2ad
add esp, 4
mov esi, dword [ebp - 0x19c]
test esi, esi
je 0x10082d5b
push esi
call fcn.1011b2ad
add esp, 4
mov eax, dword [ebp - 0x188]
test eax, eax
je 0x10082d6e
push eax
call fcn.1011b2ad
add esp, 4
mov al, byte [ebp - 0x15d]
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.10109e3a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret