Function at 0x470af0
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 0x470b2a
mov eax, ecx
sub eax, edi
cdq
idiv esi
mov esi, eax
mov eax, dword [esp + 0x44]
mov dword [eax + 0x1c], esi
jmp 0x470b2d
mov esi, dword [eax + 0x1c]
test esi, esi
jne 0x470b3d
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 0x470ba7
mov edx, dword [edx + 0x1f0]
jmp 0x470bb6
cmp dword [0x541488], 0
je 0x470bc8
mov edx, dword [0x537348]
cmp edx, 0x64
je 0x470bc8
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 0x4714c4
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 0x4714ae
cmp dword [esi + 0x2b8], 0
je 0x470c22
movups xmm0, xmmword [ebp + 0x10]
sub esp, 0x10
lea ecx, [esp + 0xb8]
mov eax, esp
mov edx, esi
movups xmmword [eax], xmm0
call fcn.00458550
add esp, 0x10
jmp 0x4714ae
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 0x4710bb
mov eax, dword [esp + 0x30]
mov esi, edi
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
cmp edi, dword [eax + 4]
je 0x4710b7
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 0x4710a8
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x2b8], 0
jne 0x4710a8
lea ecx, [esp + 0x70]
push ecx
mov ecx, eax
call fcn.0045fe00
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 0x470cea
mov edi, dword [esp + 0x48]
inc eax
cdq
idiv dword [edi]
mov edi, dword [esp + 0x10]
test edx, edx
je 0x470cea
sub ecx, dword [esp + 0x28]
jmp 0x470cf5
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 0x470d40
cmp edx, 0x7fffffff
jge 0x470d40
mov eax, dword [edi + 0x2b0]
test eax, eax
je 0x470d1d
mov eax, dword [eax + 0x1f0]
jmp 0x470d2b
cmp dword [0x541488], 0
je 0x470d40
mov eax, dword [0x537348]
cmp eax, 0x64
je 0x470d40
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 0x470d89
mov ecx, dword [edi + 0x2c4]
mov dword [esp + 0x14], ecx
cmp ecx, 0x7ffffffe
ja 0x470d89
mov eax, dword [edi + 0x2b0]
test eax, eax
je 0x470d68
mov eax, dword [eax + 0x1f0]
jmp 0x470d76
cmp dword [0x541488], 0
je 0x470d89
mov eax, dword [0x537348]
cmp eax, 0x64
je 0x470d89
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 0x470e24
cmp ecx, 0x7fffffff
jge 0x470dd0
mov eax, dword [edi + 0x2b0]
test eax, eax
je 0x470db1
mov eax, dword [eax + 0x1f0]
jmp 0x470dbf
cmp dword [0x541488], 0
je 0x470dd0
mov eax, dword [0x537348]
cmp eax, 0x64
je 0x470dd0
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, eax
test ecx, ecx
js 0x470e24
mov ecx, dword [edi + 0x2cc]
cmp ecx, 0x7ffffffe
ja 0x470e13
mov eax, dword [edi + 0x2b0]
test eax, eax
je 0x470df4
mov eax, dword [eax + 0x1f0]
jmp 0x470e02
cmp dword [0x541488], 0
je 0x470e13
mov eax, dword [0x537348]
cmp eax, 0x64
je 0x470e13
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 0x470e28
mov ecx, edi
call fcn.0045e5c0
jmp 0x470e28
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 0x470e83
mov eax, dword [edi + 0x2b0]
test eax, eax
je 0x470e64
mov eax, dword [eax + 0x1f0]
jmp 0x470e72
cmp dword [0x541488], 0
je 0x470e83
mov eax, dword [0x537348]
cmp eax, 0x64
je 0x470e83
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, eax
cmp dword [esp + 0x3c], ecx
jge 0x470ecc
mov ecx, dword [edi + 0x2c4]
cmp ecx, 0x7ffffffe
ja 0x470ec8
mov eax, dword [edi + 0x2b0]
test eax, eax
je 0x470ea9
mov eax, dword [eax + 0x1f0]
jmp 0x470eb7
cmp dword [0x541488], 0
je 0x470ec8
mov eax, dword [0x537348]
cmp eax, 0x64
je 0x470ec8
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 0x470f67
cmp ecx, 0x7fffffff
jge 0x470f13
mov eax, dword [edi + 0x2b0]
test eax, eax
je 0x470ef4
mov eax, dword [eax + 0x1f0]
jmp 0x470f02
cmp dword [0x541488], 0
je 0x470f13
mov eax, dword [0x537348]
cmp eax, 0x64
je 0x470f13
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, eax
test ecx, ecx
js 0x470f67
mov ecx, dword [edi + 0x2cc]
cmp ecx, 0x7ffffffe
ja 0x470f56
mov eax, dword [edi + 0x2b0]
test eax, eax
je 0x470f37
mov eax, dword [eax + 0x1f0]
jmp 0x470f45
cmp dword [0x541488], 0
je 0x470f56
mov eax, dword [0x537348]
cmp eax, 0x64
je 0x470f56
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, eax
cmp dword [esp + 0x3c], ecx
jle 0x470f67
mov ecx, edi
call fcn.0045e5c0
mov dword [esp + 0x3c], eax
mov ecx, dword [edi + 0x2c8]
cmp ecx, 0x7ffffffe
ja 0x470fa6
mov eax, dword [edi + 0x2b0]
test eax, eax
je 0x470f87
mov eax, dword [eax + 0x1f0]
jmp 0x470f95
cmp dword [0x541488], 0
je 0x470fa6
mov eax, dword [0x537348]
cmp eax, 0x64
je 0x470fa6
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 0x470ff1
mov edx, dword [edi + 0x2c8]
cmp edx, 0x7ffffffe
ja 0x470fed
mov eax, dword [edi + 0x2b0]
test eax, eax
je 0x470fce
mov eax, dword [eax + 0x1f0]
jmp 0x470fdc
cmp dword [0x541488], 0
je 0x470fed
mov eax, dword [0x537348]
cmp eax, 0x64
je 0x470fed
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 0x471034
mov eax, dword [edi + 0x2b0]
test eax, eax
je 0x471011
mov eax, dword [eax + 0x1f0]
jmp 0x47101f
cmp dword [0x541488], 0
je 0x471034
mov eax, dword [0x537348]
cmp eax, 0x64
je 0x471034
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 0x47107b
mov edx, dword [edi + 0x2d0]
cmp edx, 0x7ffffffe
ja 0x471077
mov eax, dword [edi + 0x2b0]
test eax, eax
je 0x471058
mov eax, dword [eax + 0x1f0]
jmp 0x471066
cmp dword [0x541488], 0
je 0x471077
mov eax, dword [0x537348]
cmp eax, 0x64
je 0x471077
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 0x4710b7
mov eax, dword [ebp + 0xc]
add esi, 4
cmp esi, dword [eax + 4]
jne 0x470c80
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.0045fe00
mov eax, dword [esp + 0x28]
mov edx, eax
test edx, edx
jns 0x4710df
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 0x4711ae
mov ecx, dword [eax + 0x2b0]
test ecx, ecx
je 0x47119d
mov ecx, dword [ecx + 0x1f0]
mov esi, dword [sym.imp.KERNEL32.dll_MulDiv]
cmp ecx, 0x64
je 0x4711b4
push 0x64
push ecx
push edx
call esi
mov edx, eax
mov eax, dword [esp + 0x10]
jmp 0x4711b4
cmp dword [0x541488], 0
je 0x4711ae
mov ecx, dword [0x537348]
jmp 0x471184
mov esi, dword [sym.imp.KERNEL32.dll_MulDiv]
cmp dword [esp + 0x20], edx
jge 0x4711fe
mov edx, dword [eax + 0x2c4]
cmp edx, 0x7ffffffe
ja 0x4711fa
mov ecx, dword [eax + 0x2b0]
test ecx, ecx
je 0x4711da
mov ecx, dword [ecx + 0x1f0]
jmp 0x4711e9
cmp dword [0x541488], 0
je 0x4711fa
mov ecx, dword [0x537348]
cmp ecx, 0x64
je 0x4711fa
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 0x4712d8
cmp edx, 0x7fffffff
jge 0x471246
mov ecx, dword [eax + 0x2b0]
test ecx, ecx
je 0x471226
mov ecx, dword [ecx + 0x1f0]
jmp 0x471235
cmp dword [0x541488], 0
je 0x471246
mov ecx, dword [0x537348]
cmp ecx, 0x64
je 0x471246
push 0x64
push ecx
push edx
call esi
mov edx, eax
mov eax, dword [esp + 0x10]
test edx, edx
js 0x4712d8
mov edx, dword [eax + 0x2cc]
cmp edx, 0x7ffffffe
ja 0x47128e
mov ecx, dword [eax + 0x2b0]
test ecx, ecx
je 0x47126e
mov ecx, dword [ecx + 0x1f0]
jmp 0x47127d
cmp dword [0x541488], 0
je 0x47128e
mov ecx, dword [0x537348]
cmp ecx, 0x64
je 0x47128e
push 0x64
push ecx
push edx
call esi
mov edx, eax
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x20], edx
jle 0x4712d8
mov edx, dword [eax + 0x2cc]
cmp edx, 0x7ffffffe
ja 0x4712d4
mov ecx, dword [eax + 0x2b0]
test ecx, ecx
je 0x4712b4
mov ecx, dword [ecx + 0x1f0]
jmp 0x4712c3
cmp dword [0x541488], 0
je 0x4712d4
mov ecx, dword [0x537348]
cmp ecx, 0x64
je 0x4712d4
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 0x471318
mov ecx, dword [eax + 0x2b0]
test ecx, ecx
je 0x4712f8
mov ecx, dword [ecx + 0x1f0]
jmp 0x471307
cmp dword [0x541488], 0
je 0x471318
mov ecx, dword [0x537348]
cmp ecx, 0x64
je 0x471318
push 0x64
push ecx
push edx
call esi
mov edx, eax
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x24], edx
jge 0x471362
mov edx, dword [eax + 0x2c8]
cmp edx, 0x7ffffffe
ja 0x47135e
mov ecx, dword [eax + 0x2b0]
test ecx, ecx
je 0x47133e
mov ecx, dword [ecx + 0x1f0]
jmp 0x47134d
cmp dword [0x541488], 0
je 0x47135e
mov ecx, dword [0x537348]
cmp ecx, 0x64
je 0x47135e
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 0x4713a2
mov ecx, dword [eax + 0x2b0]
test ecx, ecx
je 0x471382
mov ecx, dword [ecx + 0x1f0]
jmp 0x471391
cmp dword [0x541488], 0
je 0x4713a2
mov ecx, dword [0x537348]
cmp ecx, 0x64
je 0x4713a2
push 0x64
push ecx
push edx
call esi
mov edx, eax
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x24], edx
jle 0x4713f0
mov edx, dword [eax + 0x2d0]
cmp edx, 0x7ffffffe
ja 0x4713ec
mov eax, dword [eax + 0x2b0]
test eax, eax
je 0x4713d0
mov eax, dword [eax + 0x1f0]
cmp eax, 0x64
je 0x4713ec
push 0x64
push eax
jmp 0x4713e7
cmp dword [0x541488], 0
je 0x4713ec
mov ecx, dword [0x537348]
cmp ecx, 0x64
je 0x4713ec
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 0x47147a
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 0x470be0
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