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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
mov eax, ecx
mov ecx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [eax + 0x20]
mov dword [esp + 0x6c], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x44], eax
test esi, esi
jle 0x47170a
mov eax, ecx
sub eax, edi
cdq
idiv esi
mov esi, eax
mov eax, dword [esp + 0x44]
mov dword [eax + 0x1c], esi
jmp 0x47170d
mov esi, dword [eax + 0x1c]
test esi, esi
jne 0x47171d
mov dword [eax + 0x1c], 1
mov esi, 1
mov eax, ecx
mov dword [esp + 0x18], 0
sub eax, edi
mov dword [esp + 0x14], 0
cdq
idiv esi
mov dword [esp + 0x30], 0
imul esi, eax
mov dword [esp + 0x54], eax
mov eax, ecx
sub eax, esi
sub eax, edi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x1c], eax
mov eax, edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x44]
mov esi, dword [eax + 0x18]
mov eax, dword [eax + 4]
mov dword [esp + 0x28], esi
mov edx, dword [eax + 0x2b0]
mov eax, dword [sym.imp.KERNEL32.dll_MulDiv]
test edx, edx
je 0x471787
mov edx, dword [edx + 0x1f0]
jmp 0x471796
cmp dword [0x544f8c], 0
je 0x4717a8
mov edx, dword [0x53bc18]
cmp edx, 0x64
je 0x4717a8
push 0x64
push edx
push esi
call eax
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
mov dword [esp + 0x50], edi
cmp edi, dword [eax + 4]
je 0x4720a4
nop word [eax + eax]
mov esi, dword [edi]
mov ecx, esi
mov dword [esp + 0x10], esi
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x47208e
cmp dword [esi + 0x2b8], 0
je 0x471802
movups xmm0, xmmword [ebp + 0x10]
sub esp, 0x10
lea ecx, [esp + 0xb8]
mov eax, esp
mov edx, esi
movups xmmword [eax], xmm0
call fcn.00459140
add esp, 0x10
jmp 0x47208e
mov eax, dword [esp + 0x2c]
add eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
lea edx, [eax + 1]
cmovle edx, eax
lea eax, [ecx - 1]
cmovle eax, ecx
mov dword [esp + 0x4c], edx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x60], eax
add ecx, 0x1c
mov eax, dword [esp + 0x30]
cdq
mov dword [esp + 0x48], ecx
idiv dword [ecx]
test edx, edx
jne 0x471c9b
mov eax, dword [esp + 0x30]
mov esi, edi
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
cmp edi, dword [eax + 4]
je 0x471c97
mov edi, dword [esp + 0x10]
nop dword [eax + eax]
mov ecx, dword [esi]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x471c88
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x2b8], 0
jne 0x471c88
lea ecx, [esp + 0x70]
push ecx
mov ecx, eax
call fcn.004609f0
mov ecx, dword [esp + 0x4c]
sub ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x78]
sub ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x30]
je 0x4718ca
mov edi, dword [esp + 0x48]
inc eax
cdq
idiv dword [edi]
mov edi, dword [esp + 0x10]
test edx, edx
je 0x4718ca
sub ecx, dword [esp + 0x28]
jmp 0x4718d5
mov eax, dword [esp + 0x28]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov edx, dword [edi + 0x2c4]
mov dword [esp + 0x14], ecx
test edx, edx
js 0x471920
cmp edx, 0x7fffffff
jge 0x471920
mov eax, dword [edi + 0x2b0]
test eax, eax
je 0x4718fd
mov eax, dword [eax + 0x1f0]
jmp 0x47190b
cmp dword [0x544f8c], 0
je 0x471920
mov eax, dword [0x53bc18]
cmp eax, 0x64
je 0x471920
push 0x64
push eax
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esp + 0x14]
mov edx, eax
cmp ecx, edx
jge 0x471969
mov ecx, dword [edi + 0x2c4]
mov dword [esp + 0x14], ecx
cmp ecx, 0x7ffffffe
ja 0x471969
mov eax, dword [edi + 0x2b0]
test eax, eax
je 0x471948
mov eax, dword [eax + 0x1f0]
jmp 0x471956
cmp dword [0x544f8c], 0
je 0x471969
mov eax, dword [0x53bc18]
cmp eax, 0x64
je 0x471969
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x14], eax
mov ecx, dword [edi + 0x2cc]
test ecx, ecx
js 0x471a04
cmp ecx, 0x7fffffff
jge 0x4719b0
mov eax, dword [edi + 0x2b0]
test eax, eax
je 0x471991
mov eax, dword [eax + 0x1f0]
jmp 0x47199f
cmp dword [0x544f8c], 0
je 0x4719b0
mov eax, dword [0x53bc18]
cmp eax, 0x64
je 0x4719b0
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, eax
test ecx, ecx
js 0x471a04
mov ecx, dword [edi + 0x2cc]
cmp ecx, 0x7ffffffe
ja 0x4719f3
mov eax, dword [edi + 0x2b0]
test eax, eax
je 0x4719d4
mov eax, dword [eax + 0x1f0]
jmp 0x4719e2
cmp dword [0x544f8c], 0
je 0x4719f3
mov eax, dword [0x53bc18]
cmp eax, 0x64
je 0x4719f3
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, eax
mov eax, dword [esp + 0x14]
cmp eax, ecx
jle 0x471a08
mov ecx, edi
call fcn.0045f1b0
jmp 0x471a08
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
sub esp, 8
mov edx, esp
mov dword [edx], eax
mov dword [edx + 4], 0x270f
lea edx, [esp + 0x44]
mov eax, dword [ecx]
push edx
call dword [eax + 0x68]
mov ecx, dword [edi + 0x2c4]
cmp ecx, 0x7ffffffe
ja 0x471a63
mov eax, dword [edi + 0x2b0]
test eax, eax
je 0x471a44
mov eax, dword [eax + 0x1f0]
jmp 0x471a52
cmp dword [0x544f8c], 0
je 0x471a63
mov eax, dword [0x53bc18]
cmp eax, 0x64
je 0x471a63
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, eax
cmp dword [esp + 0x3c], ecx
jge 0x471aac
mov ecx, dword [edi + 0x2c4]
cmp ecx, 0x7ffffffe
ja 0x471aa8
mov eax, dword [edi + 0x2b0]
test eax, eax
je 0x471a89
mov eax, dword [eax + 0x1f0]
jmp 0x471a97
cmp dword [0x544f8c], 0
je 0x471aa8
mov eax, dword [0x53bc18]
cmp eax, 0x64
je 0x471aa8
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, eax
mov dword [esp + 0x3c], ecx
mov ecx, dword [edi + 0x2cc]
test ecx, ecx
js 0x471b47
cmp ecx, 0x7fffffff
jge 0x471af3
mov eax, dword [edi + 0x2b0]
test eax, eax
je 0x471ad4
mov eax, dword [eax + 0x1f0]
jmp 0x471ae2
cmp dword [0x544f8c], 0
je 0x471af3
mov eax, dword [0x53bc18]
cmp eax, 0x64
je 0x471af3
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, eax
test ecx, ecx
js 0x471b47
mov ecx, dword [edi + 0x2cc]
cmp ecx, 0x7ffffffe
ja 0x471b36
mov eax, dword [edi + 0x2b0]
test eax, eax
je 0x471b17
mov eax, dword [eax + 0x1f0]
jmp 0x471b25
cmp dword [0x544f8c], 0
je 0x471b36
mov eax, dword [0x53bc18]
cmp eax, 0x64
je 0x471b36
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, eax
cmp dword [esp + 0x3c], ecx
jle 0x471b47
mov ecx, edi
call fcn.0045f1b0
mov dword [esp + 0x3c], eax
mov ecx, dword [edi + 0x2c8]
cmp ecx, 0x7ffffffe
ja 0x471b86
mov eax, dword [edi + 0x2b0]
test eax, eax
je 0x471b67
mov eax, dword [eax + 0x1f0]
jmp 0x471b75
cmp dword [0x544f8c], 0
je 0x471b86
mov eax, dword [0x53bc18]
cmp eax, 0x64
je 0x471b86
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, eax
mov edx, dword [esp + 0x40]
cmp edx, ecx
jge 0x471bd1
mov edx, dword [edi + 0x2c8]
cmp edx, 0x7ffffffe
ja 0x471bcd
mov eax, dword [edi + 0x2b0]
test eax, eax
je 0x471bae
mov eax, dword [eax + 0x1f0]
jmp 0x471bbc
cmp dword [0x544f8c], 0
je 0x471bcd
mov eax, dword [0x53bc18]
cmp eax, 0x64
je 0x471bcd
push 0x64
push eax
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edx, eax
mov dword [esp + 0x40], edx
mov ecx, dword [edi + 0x2d0]
cmp ecx, 0x7ffffffe
ja 0x471c14
mov eax, dword [edi + 0x2b0]
test eax, eax
je 0x471bf1
mov eax, dword [eax + 0x1f0]
jmp 0x471bff
cmp dword [0x544f8c], 0
je 0x471c14
mov eax, dword [0x53bc18]
cmp eax, 0x64
je 0x471c14
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edx, dword [esp + 0x40]
mov ecx, eax
cmp edx, ecx
jle 0x471c5b
mov edx, dword [edi + 0x2d0]
cmp edx, 0x7ffffffe
ja 0x471c57
mov eax, dword [edi + 0x2b0]
test eax, eax
je 0x471c38
mov eax, dword [eax + 0x1f0]
jmp 0x471c46
cmp dword [0x544f8c], 0
je 0x471c57
mov eax, dword [0x53bc18]
cmp eax, 0x64
je 0x471c57
push 0x64
push eax
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edx, eax
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x7c]
add eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x18]
add eax, edx
inc ecx
cmp dword [esp + 0x34], eax
mov dword [esp + 0x18], ecx
cmovg eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
mov eax, ecx
mov ecx, dword [esp + 0x48]
cdq
idiv dword [ecx]
test edx, edx
je 0x471c97
mov eax, dword [ebp + 0xc]
add esi, 4
cmp esi, dword [eax + 4]
jne 0x471860
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, esi
mov dword [esp + 0x64], eax
lea eax, [esp + 0x98]
push eax
call fcn.004609f0
mov eax, dword [esp + 0x28]
mov edx, eax
test edx, edx
jns 0x471cbf
add edx, 1
sar edx, 1
mov ecx, dword [esp + 0x2c]
sub esp, 8
mov esi, dword [esp + 0x54]
add ecx, edx
add ecx, dword [esp + 0xa0]
sub esi, edx
sub esi, dword [esp + 0xa8]
mov eax, dword [esp + 0x1c]
add eax, dword [esp + 0x40]
mov edx, dword [esp + 0x40]
add edx, dword [esp + 0xa4]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x34], esi
sub esi, ecx
mov ecx, eax
mov dword [esp + 0x20], eax
mov eax, esp
mov dword [esp + 0x60], edx
sub ecx, edx
lea edx, [esp + 0x28]
mov dword [esp + 0x3c], ecx
push edx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax], esi
mov eax, dword [ecx]
call dword [eax + 0x68]
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
mov edi, dword [esp + 0x50]
cmove eax, esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
cmove eax, dword [esp + 0x34]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x2c4]
cmp edx, 0x7ffffffe
ja 0x471d8e
mov ecx, dword [eax + 0x2b0]
test ecx, ecx
je 0x471d7d
mov ecx, dword [ecx + 0x1f0]
mov esi, dword [sym.imp.KERNEL32.dll_MulDiv]
cmp ecx, 0x64
je 0x471d94
push 0x64
push ecx
push edx
call esi
mov edx, eax
mov eax, dword [esp + 0x10]
jmp 0x471d94
cmp dword [0x544f8c], 0
je 0x471d8e
mov ecx, dword [0x53bc18]
jmp 0x471d64
mov esi, dword [sym.imp.KERNEL32.dll_MulDiv]
cmp dword [esp + 0x20], edx
jge 0x471dde
mov edx, dword [eax + 0x2c4]
cmp edx, 0x7ffffffe
ja 0x471dda
mov ecx, dword [eax + 0x2b0]
test ecx, ecx
je 0x471dba
mov ecx, dword [ecx + 0x1f0]
jmp 0x471dc9
cmp dword [0x544f8c], 0
je 0x471dda
mov ecx, dword [0x53bc18]
cmp ecx, 0x64
je 0x471dda
push 0x64
push ecx
push edx
call esi
mov edx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 0x2cc]
test edx, edx
js 0x471eb8
cmp edx, 0x7fffffff
jge 0x471e26
mov ecx, dword [eax + 0x2b0]
test ecx, ecx
je 0x471e06
mov ecx, dword [ecx + 0x1f0]
jmp 0x471e15
cmp dword [0x544f8c], 0
je 0x471e26
mov ecx, dword [0x53bc18]
cmp ecx, 0x64
je 0x471e26
push 0x64
push ecx
push edx
call esi
mov edx, eax
mov eax, dword [esp + 0x10]
test edx, edx
js 0x471eb8
mov edx, dword [eax + 0x2cc]
cmp edx, 0x7ffffffe
ja 0x471e6e
mov ecx, dword [eax + 0x2b0]
test ecx, ecx
je 0x471e4e
mov ecx, dword [ecx + 0x1f0]
jmp 0x471e5d
cmp dword [0x544f8c], 0
je 0x471e6e
mov ecx, dword [0x53bc18]
cmp ecx, 0x64
je 0x471e6e
push 0x64
push ecx
push edx
call esi
mov edx, eax
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x20], edx
jle 0x471eb8
mov edx, dword [eax + 0x2cc]
cmp edx, 0x7ffffffe
ja 0x471eb4
mov ecx, dword [eax + 0x2b0]
test ecx, ecx
je 0x471e94
mov ecx, dword [ecx + 0x1f0]
jmp 0x471ea3
cmp dword [0x544f8c], 0
je 0x471eb4
mov ecx, dword [0x53bc18]
cmp ecx, 0x64
je 0x471eb4
push 0x64
push ecx
push edx
call esi
mov edx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 0x2c8]
cmp edx, 0x7ffffffe
ja 0x471ef8
mov ecx, dword [eax + 0x2b0]
test ecx, ecx
je 0x471ed8
mov ecx, dword [ecx + 0x1f0]
jmp 0x471ee7
cmp dword [0x544f8c], 0
je 0x471ef8
mov ecx, dword [0x53bc18]
cmp ecx, 0x64
je 0x471ef8
push 0x64
push ecx
push edx
call esi
mov edx, eax
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x24], edx
jge 0x471f42
mov edx, dword [eax + 0x2c8]
cmp edx, 0x7ffffffe
ja 0x471f3e
mov ecx, dword [eax + 0x2b0]
test ecx, ecx
je 0x471f1e
mov ecx, dword [ecx + 0x1f0]
jmp 0x471f2d
cmp dword [0x544f8c], 0
je 0x471f3e
mov ecx, dword [0x53bc18]
cmp ecx, 0x64
je 0x471f3e
push 0x64
push ecx
push edx
call esi
mov edx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], edx
mov edx, dword [eax + 0x2d0]
cmp edx, 0x7ffffffe
ja 0x471f82
mov ecx, dword [eax + 0x2b0]
test ecx, ecx
je 0x471f62
mov ecx, dword [ecx + 0x1f0]
jmp 0x471f71
cmp dword [0x544f8c], 0
je 0x471f82
mov ecx, dword [0x53bc18]
cmp ecx, 0x64
je 0x471f82
push 0x64
push ecx
push edx
call esi
mov edx, eax
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x24], edx
jle 0x471fd0
mov edx, dword [eax + 0x2d0]
cmp edx, 0x7ffffffe
ja 0x471fcc
mov eax, dword [eax + 0x2b0]
test eax, eax
je 0x471fb0
mov eax, dword [eax + 0x1f0]
cmp eax, 0x64
je 0x471fcc
push 0x64
push eax
jmp 0x471fc7
cmp dword [0x544f8c], 0
je 0x471fcc
mov ecx, dword [0x53bc18]
cmp ecx, 0x64
je 0x471fcc
push 0x64
push ecx
push edx
call esi
mov edx, eax
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x1c]
sub esp, 0x10
sub eax, dword [esp + 0x30]
add eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x34]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x90], eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x68]
sub eax, esi
add eax, dword [esp + 0x28]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x44]
add eax, dword [esp + 0x30]
sar ecx, 1
mov dword [esp + 0x98], eax
mov dword [esp + 0x94], ecx
lea eax, [ecx + esi]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x9c], eax
mov eax, esp
movups xmm0, xmmword [esp + 0x90]
mov edx, dword [ecx]
movups xmmword [eax], xmm0
call dword [edx + 0x64]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x48]
inc eax
mov dword [esp + 0x30], eax
cdq
idiv dword [ecx]
test edx, edx
jne 0x47205a
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x28]
add dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
sub eax, dword [ebp + 0x14]
test edx, edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x5c]
cmovne eax, dword [esp + 0x60]
mov dword [esp + 0x1c], eax
xor eax, eax
test edx, edx
cmovne eax, dword [esp + 0x64]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x68]
cmovne eax, dword [esp + 0x4c]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0xc]
add edi, 4
mov dword [esp + 0x50], edi
cmp edi, dword [eax + 4]
jne 0x4717c0
mov ecx, dword [ebp + 0x18]
mov eax, dword [esp + 0x6c]
sub ecx, dword [ebp + 0x10]
pop edi
pop esi
mov dword [eax], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 4], ecx
mov esp, ebp
pop ebp
ret 0x18