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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
mov eax, dword [0x52c0cc]
xor eax, esp
mov dword [esp + 0x94], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x58], eax
mov eax, dword [ecx + 0x20]
mov dword [esp + 0x30], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], esi
push edi
mov edi, dword [ebp + 0x18]
test eax, eax
jle 0x460e28
mov eax, edi
sub eax, esi
cdq
idiv dword [esp + 0x10]
mov dword [ecx + 0x1c], eax
cmp dword [ecx + 0x1c], 0
lea eax, [ecx + 0x1c]
mov dword [esp + 0x30], eax
jne 0x460e3b
mov dword [eax], 1
mov ecx, dword [eax]
mov eax, edi
sub eax, esi
mov dword [esp + 0xc], 0
cdq
idiv ecx
mov dword [esp + 0x20], 0
imul ecx, eax
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0xc]
sub edi, ecx
mov dword [esp + 0x1c], 0
sub edi, esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], edi
mov dword [esp + 0x40], edi
mov edi, dword [eax]
mov dword [esp + 0x10], edi
cmp edi, dword [eax + 4]
je 0x4611dd
nop dword [eax]
mov esi, dword [edi]
mov ecx, esi
mov dword [esp + 0x18], esi
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
call eax
test al, al
je 0x4611c7
cmp byte [esi + 0x58], 0
je 0x460ecf
movups xmm0, xmmword [ebp + 0x10]
sub esp, 0x10
lea ecx, [esp + 0x84]
mov eax, esp
mov edx, esi
movups xmmword [eax], xmm0
call fcn.004411e0
add esp, 0x10
jmp 0x4611c7
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x38], eax
test ecx, ecx
jle 0x460eed
inc eax
dec ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
cdq
idiv dword [ecx]
test edx, edx
jne 0x461042
mov eax, dword [esp + 0x1c]
mov esi, edi
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
cmp edi, dword [eax + 4]
je 0x46103e
mov edi, dword [esp + 0x18]
nop word [eax + eax]
mov ecx, dword [esi]
mov dword [esp + 0x24], ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
test al, al
je 0x46102b
mov ecx, dword [esp + 0x24]
cmp byte [ecx + 0x58], 0
jne 0x46102b
mov eax, dword [ecx]
lea edx, [esp + 0x7c]
push edx
call dword [eax + 0xc0]
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x84]
sub ecx, dword [esp + 0x7c]
sub ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x1c]
je 0x460f86
mov edi, dword [esp + 0x30]
inc eax
cdq
idiv dword [edi]
mov edi, dword [esp + 0x18]
test edx, edx
je 0x460f86
mov eax, dword [esp + 0x34]
sub ecx, dword [eax + 0x14]
jmp 0x460f96
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x14]
cdq
sub eax, edx
sar eax, 1
neg eax
add ecx, eax
cmp ecx, dword [edi + 0x30]
mov eax, dword [edi + 0x38]
cmovl ecx, dword [edi + 0x30]
test eax, eax
js 0x460fa9
cmp ecx, eax
cmovg ecx, eax
sub esp, 8
lea edx, [esp + 0x4c]
mov eax, esp
push edx
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], 0x270f
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [esp + 0x44]
cmp ecx, dword [edi + 0x30]
mov eax, dword [edi + 0x38]
cmovl ecx, dword [edi + 0x30]
mov dword [esp + 0x44], ecx
test eax, eax
js 0x460fe4
cmp ecx, eax
cmovg ecx, eax
mov dword [esp + 0x44], ecx
mov edx, dword [esp + 0x48]
cmp edx, dword [edi + 0x34]
mov eax, dword [esp + 0x88]
cmovl edx, dword [edi + 0x34]
cmp edx, dword [edi + 0x3c]
mov ecx, dword [esp + 0x20]
cmovg edx, dword [edi + 0x3c]
add eax, dword [esp + 0x80]
add eax, edx
mov dword [esp + 0x48], edx
cmp ecx, eax
cmovle ecx, eax
mov eax, dword [esp + 0xc]
inc eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xc], eax
cdq
idiv dword [ecx]
test edx, edx
je 0x46103a
mov eax, dword [ebp + 0xc]
add esi, 4
cmp esi, dword [eax + 4]
jne 0x460f20
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov eax, dword [esi]
lea ecx, [esp + 0x8c]
push ecx
mov ecx, esi
call dword [eax + 0xc0]
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jns 0x461062
add ecx, 1
sar ecx, 1
mov eax, dword [esp + 0x8c]
sub esp, 8
mov edx, dword [esp + 0x40]
add eax, ecx
add eax, dword [esp + 0x1c]
sub edx, ecx
sub edx, dword [esp + 0x9c]
mov dword [esp + 0x2c], eax
mov esi, edx
mov eax, dword [esp + 0x98]
add eax, dword [esp + 0x44]
sub esi, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x44]
mov ecx, eax
mov dword [esp + 0x14], eax
sub ecx, dword [esp + 0x1c]
mov eax, esp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x58], edx
lea edx, [esp + 0x30]
push edx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax], esi
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edx, dword [esp + 0x28]
cmp edx, 0xffffffff
mov ecx, dword [esp + 0x18]
cmove edx, esi
mov esi, dword [esp + 0x2c]
cmp esi, 0xffffffff
mov dword [esp + 0x28], edx
cmove esi, dword [esp + 0x10]
mov dword [esp + 0x2c], esi
cmp edx, dword [ecx + 0x30]
cmovl edx, dword [ecx + 0x30]
mov dword [esp + 0x28], edx
mov eax, dword [ecx + 0x38]
mov dword [esp + 0x10], edx
test eax, eax
js 0x46110e
cmp edx, eax
cmovg edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x28], edx
cmp esi, dword [ecx + 0x34]
mov eax, dword [esp + 0x50]
cmovl esi, dword [ecx + 0x34]
mov dword [esp + 0x2c], esi
mov ecx, dword [ecx + 0x3c]
cmp esi, ecx
cmovg esi, ecx
sub eax, edx
add eax, dword [esp + 0x24]
sub esp, 0x10
cdq
sub eax, edx
mov dword [esp + 0x3c], esi
mov esi, eax
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x3c]
add eax, dword [esp + 0x24]
cdq
sub eax, edx
sar esi, 1
mov ecx, eax
mov dword [esp + 0x70], esi
mov eax, dword [esp + 0x20]
add eax, esi
sar ecx, 1
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x3c]
add eax, ecx
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x7c], eax
mov eax, esp
movups xmm0, xmmword [esp + 0x70]
mov edx, dword [ecx]
movups xmmword [eax], xmm0
call dword [edx + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
inc eax
mov dword [esp + 0x1c], eax
cdq
idiv dword [ecx]
test edx, edx
jne 0x4611b4
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
mov eax, dword [eax + 0x14]
add eax, dword [esp + 0x20]
add dword [esp + 0x3c], eax
mov dword [esp + 0x20], edx
jmp 0x4611bc
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
sub eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
add edi, 4
mov dword [esp + 0x10], edi
cmp edi, dword [eax + 4]
jne 0x460e90
mov esi, dword [ebp + 0x10]
mov edx, dword [esp + 0x5c]
mov ecx, dword [ebp + 0x18]
mov eax, dword [esp + 0xc]
sub ecx, esi
pop edi
mov dword [edx], ecx
mov ecx, dword [esp + 0x98]
pop esi
mov dword [edx + 4], eax
xor ecx, esp
mov eax, edx
call fcn.004abe1b
mov esp, ebp
pop ebp
ret 0x18