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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x100c2070]
xor eax, esp
mov dword [esp + 0x84], eax
movups xmm0, xmmword [ebp + 8]
push esi
push edi
sub esp, 0x10
mov edi, ecx
mov eax, esp
mov dword [esp + 0x38], edi
movups xmmword [eax], xmm0
call fcn.10028bd0
movups xmm0, xmmword [edi + 0x158]
mov eax, dword [edi + 0x64c]
movups xmmword [ebp + 8], xmm0
movd dword [ebp + 8], xmm0
add dword [ebp + 8], eax
mov eax, dword [edi + 0x650]
add dword [ebp + 0xc], eax
mov eax, dword [edi + 0x654]
sub dword [ebp + 0x10], eax
mov eax, dword [edi + 0x658]
sub dword [ebp + 0x14], eax
cmp dword [edi + 0x644], 0
jne 0x10051967
push 0
jmp 0x10051b0e
mov ecx, dword [edi + 0x668]
test ecx, ecx
je 0x1005198f
mov eax, dword [ecx]
mov eax, dword [eax + 0xe0]
call eax
test al, al
je 0x1005198f
mov ecx, dword [edi + 0x668]
mov eax, dword [ecx]
mov eax, dword [eax + 0x60]
call eax
sub dword [ebp + 0x10], eax
mov ecx, dword [edi + 0x66c]
test ecx, ecx
je 0x100519b7
mov eax, dword [ecx]
mov eax, dword [eax + 0xe0]
call eax
test al, al
je 0x100519b7
mov ecx, dword [edi + 0x66c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x68]
call eax
sub dword [ebp + 0x14], eax
mov ecx, dword [edi + 0x670]
test ecx, ecx
jle 0x100519d0
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 8]
cdq
idiv ecx
mov dword [edi + 0x678], eax
cmp dword [edi + 0x678], 0
lea ecx, [edi + 0x678]
mov dword [esp + 0x24], ecx
jne 0x100519e9
mov dword [ecx], 1
mov eax, dword [ebp + 0x10]
xor esi, esi
sub eax, dword [ebp + 8]
cdq
idiv dword [ecx]
mov ecx, dword [edi + 0x66c]
mov dword [esp + 8], esi
mov dword [esp + 0x48], eax
test ecx, ecx
je 0x10051a31
mov edx, dword [ecx]
mov edx, dword [edx + 0xe0]
call edx
test al, al
je 0x10051a31
mov eax, dword [edi + 0x66c]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax + 0x640]
sub eax, dword [ebp + 8]
add eax, dword [ebp + 0x10]
cdq
idiv dword [ecx]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 8]
mov ecx, dword [edi + 0x668]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x30], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x2c], eax
test ecx, ecx
je 0x10051a73
mov eax, dword [ecx]
mov eax, dword [eax + 0xe0]
call eax
test al, al
je 0x10051a73
mov eax, dword [edi + 0x668]
mov ecx, dword [esp + 0x2c]
sub ecx, dword [eax + 0x644]
mov dword [esp + 0x2c], ecx
mov ecx, dword [edi + 0x66c]
mov eax, dword [ebp + 8]
mov dword [esp + 0x40], eax
test ecx, ecx
je 0x10051aaa
mov eax, dword [ecx]
mov eax, dword [eax + 0xe0]
call eax
test al, al
je 0x10051aaa
mov eax, dword [edi + 0x66c]
mov edx, dword [esp + 0x40]
sub edx, dword [eax + 0x644]
mov dword [esp + 0x40], edx
mov dword [esp + 0xc], edx
xor eax, eax
mov dword [esp + 0x34], eax
cmp dword [edi + 0x644], eax
jle 0x10051b0d
nop dword [eax + eax]
mov esi, dword [edi + 0x640]
mov esi, dword [esi + eax*4]
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax + 0xe0]
call eax
test al, al
je 0x10051af8
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x10c]
call eax
test al, al
je 0x10051b3c
mov eax, dword [edi]
mov ecx, edi
mov edx, dword [esp + 0x34]
push edx
call dword [eax + 0x1d0]
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x34]
inc eax
mov dword [esp + 0x34], eax
cmp eax, dword [edi + 0x644]
jl 0x10051ac0
push esi
movups xmm0, xmmword [ebp + 8]
mov edx, dword [edi]
mov ecx, edi
push 0
sub esp, 0x10
mov eax, esp
movups xmmword [eax], xmm0
call dword [edx + 0x1d4]
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
xor ecx, esp
call fcn.1006c6c9
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esp + 0xc]
add eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
cdq
idiv dword [ecx]
test edx, edx
jne 0x10051d17
mov edx, dword [esp + 0x34]
mov ecx, edx
mov eax, dword [esp + 0x14]
mov dword [esp + 8], eax
mov dword [esp + 0x18], ecx
cmp edx, dword [edi + 0x644]
jge 0x10051d17
nop dword [eax]
mov eax, dword [edi + 0x640]
mov edi, dword [eax + ecx*4]
mov ecx, edi
mov dword [esp + 0x44], edi
mov eax, dword [edi]
mov eax, dword [eax + 0xe0]
call eax
test al, al
je 0x10051cf8
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x10c]
call eax
test al, al
jne 0x10051cf8
mov eax, dword [edi]
lea ecx, [esp + 0x6c]
push ecx
mov ecx, edi
call dword [eax + 0x50]
mov edi, dword [esp + 0x10]
sub edi, dword [esp + 0x74]
sub edi, dword [esp + 0x6c]
sub edi, dword [esp + 0xc]
mov eax, dword [esp + 8]
cmp eax, dword [esp + 0x14]
je 0x10051bf3
mov ecx, dword [esp + 0x24]
inc eax
cdq
idiv dword [ecx]
test edx, edx
je 0x10051bf3
mov eax, dword [esp + 0x28]
sub edi, dword [eax + 0x65c]
jmp 0x10051c06
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x65c]
cdq
sub eax, edx
sar eax, 1
neg eax
add edi, eax
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x74]
call eax
cmp edi, eax
jge 0x10051c1e
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x74]
call eax
mov edi, eax
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx + 0x7c]
call edx
cmp edi, eax
jle 0x10051c36
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x7c]
call eax
mov edi, eax
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x38]
push 0x270f
push edi
push edx
mov eax, dword [ecx]
call dword [eax + 0x12c]
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x74]
call eax
cmp dword [esp + 0x38], eax
jge 0x10051c69
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x74]
call eax
mov dword [esp + 0x38], eax
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x7c]
call eax
cmp dword [esp + 0x38], eax
jle 0x10051c85
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x7c]
call eax
mov dword [esp + 0x38], eax
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x84]
call eax
cmp dword [esp + 0x3c], eax
jge 0x10051ca7
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x84]
call eax
mov dword [esp + 0x3c], eax
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x8c]
call eax
mov edi, dword [esp + 0x3c]
cmp edi, eax
jle 0x10051ccd
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x8c]
call eax
mov edi, eax
mov dword [esp + 0x3c], edi
mov eax, dword [esp + 0x78]
add eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x30]
add eax, edi
cmp ecx, eax
cmovle ecx, eax
mov eax, dword [esp + 8]
inc eax
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 8], eax
cdq
idiv dword [ecx]
test edx, edx
je 0x10051d13
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x28]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, dword [edi + 0x644]
jl 0x10051b80
jmp 0x10051d17
mov edi, dword [esp + 0x28]
mov eax, dword [esi]
lea ecx, [esp + 0x7c]
push ecx
mov ecx, esi
call dword [eax + 0x50]
mov ecx, dword [edi + 0x65c]
test ecx, ecx
jns 0x10051d30
add ecx, 1
sar ecx, 1
mov eax, dword [esp + 0x84]
add eax, ecx
mov edi, dword [esp + 0x7c]
sub dword [esp + 0x10], eax
add edi, ecx
mov eax, dword [esp + 0x24]
add edi, dword [esp + 0xc]
mov dword [esp + 0xc], edi
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
cdq
idiv dword [esp + 0x18]
test edx, edx
jne 0x10051d6a
sub edi, ecx
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cdq
idiv dword [esp + 0x18]
test edx, edx
jne 0x10051d80
add dword [esp + 0x10], ecx
mov eax, dword [esp + 0x30]
add eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x80]
mov ecx, eax
add edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x10]
sub ecx, edx
sub edi, dword [esp + 0xc]
push ecx
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [esi]
push edi
push ecx
mov ecx, esi
mov dword [esp + 0x24], edx
call dword [eax + 0x12c]
mov eax, dword [esp + 0x1c]
mov ecx, esi
test eax, eax
cmove eax, edi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
test eax, eax
cmove eax, dword [esp + 0x44]
mov dword [esp + 0x20], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
call eax
cmp dword [esp + 0x1c], eax
jge 0x10051df4
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x74]
call eax
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x7c]
call eax
cmp dword [esp + 0x1c], eax
jle 0x10051e10
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x7c]
call eax
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x84]
call eax
cmp dword [esp + 0x20], eax
jge 0x10051e32
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x84]
call eax
mov dword [esp + 0x20], eax
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x8c]
call eax
cmp dword [esp + 0x20], eax
jle 0x10051e54
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx + 0x8c]
call edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
sub esp, 0x10
sub eax, dword [esp + 0x2c]
add eax, dword [esp + 0x1c]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x30]
add eax, dword [esp + 0x28]
cdq
sub eax, edx
sar ecx, 1
mov edx, dword [esi]
sar eax, 1
mov dword [esp + 0x64], eax
add eax, dword [esp + 0x30]
mov dword [esp + 0x60], ecx
add ecx, dword [esp + 0x2c]
mov dword [esp + 0x6c], eax
mov eax, esp
mov dword [esp + 0x68], ecx
mov ecx, esi
movups xmm0, xmmword [esp + 0x60]
movups xmmword [eax], xmm0
call dword [edx + 0x38]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
cdq
mov edi, dword [esp + 0x28]
idiv dword [ecx]
test edx, edx
jne 0x10051ed3
mov eax, dword [esp + 0x40]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x65c]
add eax, dword [esp + 0x30]
add dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
jmp 0x10051edb
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xc], eax
mov esi, dword [esp + 8]
sub esi, dword [ebp + 0xc]
mov ecx, dword [edi + 0x668]
mov dword [esp + 8], esi
test ecx, ecx
je 0x10051afc
mov eax, dword [ecx]
mov eax, dword [eax + 0xe0]
call eax
test al, al
je 0x10051afc
mov eax, dword [edi + 0x668]
add esi, dword [eax + 0x644]
mov dword [esp + 8], esi
jmp 0x10051afc