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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x4d77ac]
xor eax, esp
mov dword [esp + 0x84], eax
movdqu xmm0, xmmword [ebp + 8]
push esi
push edi
sub esp, 0x10
mov edi, ecx
mov eax, esp
mov dword [esp + 0x34], edi
movdqu xmmword [eax], xmm0
call fcn.00467230
movdqu xmm0, xmmword [edi + 0x27c]
mov eax, dword [edi + 0x660]
movdqu xmmword [ebp + 8], xmm0
movd dword [ebp + 8], xmm0
add dword [ebp + 8], eax
mov eax, dword [edi + 0x664]
add dword [ebp + 0xc], eax
mov eax, dword [edi + 0x668]
sub dword [ebp + 0x10], eax
mov eax, dword [edi + 0x66c]
sub dword [ebp + 0x14], eax
cmp dword [edi + 0x658], 0
jne 0x480fbb
push 0
jmp 0x48115e
mov ecx, dword [edi + 0x678]
test ecx, ecx
je 0x480fe3
mov eax, dword [ecx]
mov eax, dword [eax + 0xc0]
call eax
test al, al
je 0x480fe3
mov ecx, dword [edi + 0x678]
mov eax, dword [ecx]
mov eax, dword [eax + 0x58]
call eax
sub dword [ebp + 0x10], eax
mov ecx, dword [edi + 0x67c]
test ecx, ecx
je 0x48100b
mov eax, dword [ecx]
mov eax, dword [eax + 0xc0]
call eax
test al, al
je 0x48100b
mov ecx, dword [edi + 0x67c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x60]
call eax
sub dword [ebp + 0x14], eax
mov ecx, dword [edi + 0x680]
test ecx, ecx
jle 0x481024
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 8]
cdq
idiv ecx
mov dword [edi + 0x688], eax
cmp dword [edi + 0x688], 0
lea ecx, [edi + 0x688]
mov dword [esp + 0x20], ecx
jne 0x48103d
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 + 0x67c]
mov dword [esp + 8], esi
mov dword [esp + 0x48], eax
test ecx, ecx
je 0x481085
mov edx, dword [ecx]
mov edx, dword [edx + 0xc0]
call edx
test al, al
je 0x481085
mov eax, dword [edi + 0x67c]
mov ecx, dword [esp + 0x20]
mov eax, dword [eax + 0x654]
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 + 0x678]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], eax
test ecx, ecx
je 0x4810c7
mov eax, dword [ecx]
mov eax, dword [eax + 0xc0]
call eax
test al, al
je 0x4810c7
mov eax, dword [edi + 0x678]
mov ecx, dword [esp + 0x28]
sub ecx, dword [eax + 0x658]
mov dword [esp + 0x28], ecx
mov ecx, dword [edi + 0x67c]
mov eax, dword [ebp + 8]
mov dword [esp + 0x44], eax
test ecx, ecx
je 0x4810fe
mov eax, dword [ecx]
mov eax, dword [eax + 0xc0]
call eax
test al, al
je 0x4810fe
mov eax, dword [edi + 0x67c]
mov edx, dword [esp + 0x44]
sub edx, dword [eax + 0x658]
mov dword [esp + 0x44], edx
mov dword [esp + 0xc], edx
xor eax, eax
mov dword [esp + 0x38], eax
cmp dword [edi + 0x658], eax
jle 0x48115d
lea esp, [esp]
mov esi, dword [edi + 0x654]
mov esi, dword [esi + eax*4]
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax + 0xc0]
call eax
test al, al
je 0x481148
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xf4]
call eax
test al, al
je 0x48118e
mov eax, dword [edi]
mov ecx, edi
mov edx, dword [esp + 0x38]
push edx
call dword [eax + 0x224]
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x38]
inc eax
mov dword [esp + 0x38], eax
cmp eax, dword [edi + 0x658]
jl 0x481110
push esi
movdqu xmm0, xmmword [ebp + 8]
mov edx, dword [edi]
mov ecx, edi
push 0
sub esp, 0x10
mov eax, esp
movdqu xmmword [eax], xmm0
call dword [edx + 0x228]
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
xor ecx, esp
call fcn.00493864
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esp + 0xc]
add eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
cdq
idiv dword [ecx]
test edx, edx
jne 0x481361
mov edx, dword [esp + 0x38]
mov ecx, edx
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 0x34], ecx
cmp edx, dword [edi + 0x658]
jge 0x481361
nop
mov eax, dword [edi + 0x654]
mov edi, dword [eax + ecx*4]
mov ecx, edi
mov dword [esp + 0x30], edi
mov eax, dword [edi]
mov eax, dword [eax + 0xc0]
call eax
test al, al
je 0x481342
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0xf4]
call eax
test al, al
jne 0x481342
mov eax, dword [edi]
lea ecx, [esp + 0x6c]
push ecx
mov ecx, edi
call dword [eax + 0x48]
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 + 0x1c]
je 0x481243
mov ecx, dword [esp + 0x20]
inc eax
cdq
idiv dword [ecx]
test edx, edx
je 0x481243
mov eax, dword [esp + 0x24]
sub edi, dword [eax + 0x670]
jmp 0x481256
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x670]
cdq
sub eax, edx
sar eax, 1
neg eax
add edi, eax
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x68]
call eax
cmp edi, eax
jge 0x48126e
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x68]
call eax
mov edi, eax
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx + 0x70]
call edx
cmp edi, eax
jle 0x481286
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x70]
call eax
mov edi, eax
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x3c]
push 0x270f
push edi
push edx
mov eax, dword [ecx]
call dword [eax + 0x134]
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x68]
call eax
cmp dword [esp + 0x3c], eax
jge 0x4812b9
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x68]
call eax
mov dword [esp + 0x3c], eax
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x70]
call eax
cmp dword [esp + 0x3c], eax
jle 0x4812d5
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x70]
call eax
mov dword [esp + 0x3c], eax
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x78]
call eax
cmp dword [esp + 0x40], eax
jge 0x4812f1
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x78]
call eax
mov dword [esp + 0x40], eax
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x80]
call eax
mov edi, dword [esp + 0x40]
cmp edi, eax
jle 0x481317
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x80]
call eax
mov edi, eax
mov dword [esp + 0x40], edi
mov eax, dword [esp + 0x78]
add eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x2c]
add eax, edi
cmp ecx, eax
cmovle ecx, eax
mov eax, dword [esp + 8]
inc eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 8], eax
cdq
idiv dword [ecx]
test edx, edx
je 0x48135d
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x24]
inc ecx
mov dword [esp + 0x34], ecx
cmp ecx, dword [edi + 0x658]
jl 0x4811d0
jmp 0x481361
mov edi, dword [esp + 0x24]
mov eax, dword [esi]
lea ecx, [esp + 0x7c]
push ecx
mov ecx, esi
call dword [eax + 0x48]
mov eax, dword [edi + 0x670]
mov ecx, dword [esp + 0x84]
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0x7c]
sar edi, 1
add eax, edi
add ecx, edi
add dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
sub dword [esp + 0x10], ecx
mov ecx, dword [eax]
mov eax, dword [esp + 0x1c]
cdq
idiv ecx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0xc]
test edx, edx
jne 0x4813b0
sub ecx, edi
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cdq
idiv dword [esp + 0x30]
test edx, edx
jne 0x4813c6
add dword [esp + 0x10], edi
mov eax, dword [esp + 0x2c]
add eax, dword [esp + 0x28]
mov edx, dword [esp + 0x80]
mov edi, dword [esp + 0x10]
add edx, dword [esp + 0x28]
sub edi, ecx
mov ecx, eax
mov dword [esp + 8], eax
mov eax, dword [esi]
sub ecx, edx
push ecx
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x18]
push edi
push ecx
mov ecx, esi
mov dword [esp + 0x40], edx
call dword [eax + 0x134]
mov eax, dword [esp + 0x14]
mov ecx, esi
test eax, eax
cmove eax, edi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
test eax, eax
cmove eax, dword [esp + 0x30]
mov dword [esp + 0x18], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x68]
call eax
cmp dword [esp + 0x14], eax
jge 0x481438
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x68]
call eax
mov dword [esp + 0x14], eax
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x70]
call eax
cmp dword [esp + 0x14], eax
jle 0x481454
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x70]
call eax
mov dword [esp + 0x14], eax
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x78]
call eax
cmp dword [esp + 0x18], eax
jge 0x481470
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x78]
call eax
mov dword [esp + 0x18], eax
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x80]
call eax
cmp dword [esp + 0x18], eax
jle 0x481492
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx + 0x80]
call edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
sub esp, 0x10
sub eax, dword [esp + 0x24]
add eax, dword [esp + 0x1c]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x28]
add eax, dword [esp + 0x44]
cdq
sub eax, edx
sar ecx, 1
mov edx, dword [esi]
sar eax, 1
mov dword [esp + 0x64], eax
add eax, dword [esp + 0x28]
mov dword [esp + 0x60], ecx
add ecx, dword [esp + 0x24]
mov dword [esp + 0x6c], eax
mov eax, esp
mov dword [esp + 0x68], ecx
mov ecx, esi
movdqu xmm0, xmmword [esp + 0x60]
movdqu xmmword [eax], xmm0
call dword [edx + 0x34]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
cdq
mov edi, dword [esp + 0x24]
idiv dword [ecx]
test edx, edx
jne 0x481513
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x670]
add eax, dword [esp + 0x2c]
add dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
jmp 0x48151b
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xc], eax
mov esi, dword [esp + 8]
sub esi, dword [ebp + 0xc]
mov ecx, dword [edi + 0x678]
mov dword [esp + 8], esi
test ecx, ecx
je 0x48114c
mov eax, dword [ecx]
mov eax, dword [eax + 0xc0]
call eax
test al, al
je 0x48114c
mov eax, dword [edi + 0x678]
add esi, dword [eax + 0x658]
mov dword [esp + 8], esi
jmp 0x48114c