Function at 0x476ac0
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 0x476afa
mov eax, ecx
sub eax, edi
cdq
idiv esi
mov esi, eax
mov eax, dword [esp + 0x44]
mov dword [eax + 0x1c], esi
jmp 0x476afd
mov esi, dword [eax + 0x1c]
test esi, esi
jne 0x476b0d
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 0x476b77
mov edx, dword [edx + 0x1f0]
jmp 0x476b86
cmp dword [0x566390], 0
je 0x476b98
mov edx, dword [0x559368]
cmp edx, 0x64
je 0x476b98
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 0x477494
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 0x47747e
cmp dword [esi + 0x2b8], 0
je 0x476bf2
movups xmm0, xmmword [ebp + 0x10]
sub esp, 0x10
lea ecx, [esp + 0xb8]
mov eax, esp
mov edx, esi
movups xmmword [eax], xmm0
call fcn.00465ff0
add esp, 0x10
jmp 0x47747e
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 0x47708b
mov eax, dword [esp + 0x30]
mov esi, edi
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
cmp edi, dword [eax + 4]
je 0x477087
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 0x477078
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x2b8], 0
jne 0x477078
lea ecx, [esp + 0x70]
push ecx
mov ecx, eax
call fcn.00444f10
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 0x476cba
mov edi, dword [esp + 0x48]
inc eax
cdq
idiv dword [edi]
mov edi, dword [esp + 0x10]
test edx, edx
je 0x476cba
sub ecx, dword [esp + 0x28]
jmp 0x476cc5
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 0x476d10
cmp edx, 0x7fffffff
jge 0x476d10
mov eax, dword [edi + 0x2b0]
test eax, eax
je 0x476ced
mov eax, dword [eax + 0x1f0]
jmp 0x476cfb
cmp dword [0x566390], 0
je 0x476d10
mov eax, dword [0x559368]
cmp eax, 0x64
je 0x476d10
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 0x476d59
mov ecx, dword [edi + 0x2c4]
mov dword [esp + 0x14], ecx
cmp ecx, 0x7ffffffe
ja 0x476d59
mov eax, dword [edi + 0x2b0]
test eax, eax
je 0x476d38
mov eax, dword [eax + 0x1f0]
jmp 0x476d46
cmp dword [0x566390], 0
je 0x476d59
mov eax, dword [0x559368]
cmp eax, 0x64
je 0x476d59
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 0x476df4
cmp ecx, 0x7fffffff
jge 0x476da0
mov eax, dword [edi + 0x2b0]
test eax, eax
je 0x476d81
mov eax, dword [eax + 0x1f0]
jmp 0x476d8f
cmp dword [0x566390], 0
je 0x476da0
mov eax, dword [0x559368]
cmp eax, 0x64
je 0x476da0
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, eax
test ecx, ecx
js 0x476df4
mov ecx, dword [edi + 0x2cc]
cmp ecx, 0x7ffffffe
ja 0x476de3
mov eax, dword [edi + 0x2b0]
test eax, eax
je 0x476dc4
mov eax, dword [eax + 0x1f0]
jmp 0x476dd2
cmp dword [0x566390], 0
je 0x476de3
mov eax, dword [0x559368]
cmp eax, 0x64
je 0x476de3
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 0x476df8
mov ecx, edi
call fcn.004436d0
jmp 0x476df8
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 0x476e53
mov eax, dword [edi + 0x2b0]
test eax, eax
je 0x476e34
mov eax, dword [eax + 0x1f0]
jmp 0x476e42
cmp dword [0x566390], 0
je 0x476e53
mov eax, dword [0x559368]
cmp eax, 0x64
je 0x476e53
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, eax
cmp dword [esp + 0x3c], ecx
jge 0x476e9c
mov ecx, dword [edi + 0x2c4]
cmp ecx, 0x7ffffffe
ja 0x476e98
mov eax, dword [edi + 0x2b0]
test eax, eax
je 0x476e79
mov eax, dword [eax + 0x1f0]
jmp 0x476e87
cmp dword [0x566390], 0
je 0x476e98
mov eax, dword [0x559368]
cmp eax, 0x64
je 0x476e98
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 0x476f37
cmp ecx, 0x7fffffff
jge 0x476ee3
mov eax, dword [edi + 0x2b0]
test eax, eax
je 0x476ec4
mov eax, dword [eax + 0x1f0]
jmp 0x476ed2
cmp dword [0x566390], 0
je 0x476ee3
mov eax, dword [0x559368]
cmp eax, 0x64
je 0x476ee3
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, eax
test ecx, ecx
js 0x476f37
mov ecx, dword [edi + 0x2cc]
cmp ecx, 0x7ffffffe
ja 0x476f26
mov eax, dword [edi + 0x2b0]
test eax, eax
je 0x476f07
mov eax, dword [eax + 0x1f0]
jmp 0x476f15
cmp dword [0x566390], 0
je 0x476f26
mov eax, dword [0x559368]
cmp eax, 0x64
je 0x476f26
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, eax
cmp dword [esp + 0x3c], ecx
jle 0x476f37
mov ecx, edi
call fcn.004436d0
mov dword [esp + 0x3c], eax
mov ecx, dword [edi + 0x2c8]
cmp ecx, 0x7ffffffe
ja 0x476f76
mov eax, dword [edi + 0x2b0]
test eax, eax
je 0x476f57
mov eax, dword [eax + 0x1f0]
jmp 0x476f65
cmp dword [0x566390], 0
je 0x476f76
mov eax, dword [0x559368]
cmp eax, 0x64
je 0x476f76
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 0x476fc1
mov edx, dword [edi + 0x2c8]
cmp edx, 0x7ffffffe
ja 0x476fbd
mov eax, dword [edi + 0x2b0]
test eax, eax
je 0x476f9e
mov eax, dword [eax + 0x1f0]
jmp 0x476fac
cmp dword [0x566390], 0
je 0x476fbd
mov eax, dword [0x559368]
cmp eax, 0x64
je 0x476fbd
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 0x477004
mov eax, dword [edi + 0x2b0]
test eax, eax
je 0x476fe1
mov eax, dword [eax + 0x1f0]
jmp 0x476fef
cmp dword [0x566390], 0
je 0x477004
mov eax, dword [0x559368]
cmp eax, 0x64
je 0x477004
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 0x47704b
mov edx, dword [edi + 0x2d0]
cmp edx, 0x7ffffffe
ja 0x477047
mov eax, dword [edi + 0x2b0]
test eax, eax
je 0x477028
mov eax, dword [eax + 0x1f0]
jmp 0x477036
cmp dword [0x566390], 0
je 0x477047
mov eax, dword [0x559368]
cmp eax, 0x64
je 0x477047
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 0x477087
mov eax, dword [ebp + 0xc]
add esi, 4
cmp esi, dword [eax + 4]
jne 0x476c50
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.00444f10
mov eax, dword [esp + 0x28]
mov edx, eax
test edx, edx
jns 0x4770af
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 0x47717e
mov ecx, dword [eax + 0x2b0]
test ecx, ecx
je 0x47716d
mov ecx, dword [ecx + 0x1f0]
mov esi, dword [sym.imp.KERNEL32.dll_MulDiv]
cmp ecx, 0x64
je 0x477184
push 0x64
push ecx
push edx
call esi
mov edx, eax
mov eax, dword [esp + 0x10]
jmp 0x477184
cmp dword [0x566390], 0
je 0x47717e
mov ecx, dword [0x559368]
jmp 0x477154
mov esi, dword [sym.imp.KERNEL32.dll_MulDiv]
cmp dword [esp + 0x20], edx
jge 0x4771ce
mov edx, dword [eax + 0x2c4]
cmp edx, 0x7ffffffe
ja 0x4771ca
mov ecx, dword [eax + 0x2b0]
test ecx, ecx
je 0x4771aa
mov ecx, dword [ecx + 0x1f0]
jmp 0x4771b9
cmp dword [0x566390], 0
je 0x4771ca
mov ecx, dword [0x559368]
cmp ecx, 0x64
je 0x4771ca
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 0x4772a8
cmp edx, 0x7fffffff
jge 0x477216
mov ecx, dword [eax + 0x2b0]
test ecx, ecx
je 0x4771f6
mov ecx, dword [ecx + 0x1f0]
jmp 0x477205
cmp dword [0x566390], 0
je 0x477216
mov ecx, dword [0x559368]
cmp ecx, 0x64
je 0x477216
push 0x64
push ecx
push edx
call esi
mov edx, eax
mov eax, dword [esp + 0x10]
test edx, edx
js 0x4772a8
mov edx, dword [eax + 0x2cc]
cmp edx, 0x7ffffffe
ja 0x47725e
mov ecx, dword [eax + 0x2b0]
test ecx, ecx
je 0x47723e
mov ecx, dword [ecx + 0x1f0]
jmp 0x47724d
cmp dword [0x566390], 0
je 0x47725e
mov ecx, dword [0x559368]
cmp ecx, 0x64
je 0x47725e
push 0x64
push ecx
push edx
call esi
mov edx, eax
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x20], edx
jle 0x4772a8
mov edx, dword [eax + 0x2cc]
cmp edx, 0x7ffffffe
ja 0x4772a4
mov ecx, dword [eax + 0x2b0]
test ecx, ecx
je 0x477284
mov ecx, dword [ecx + 0x1f0]
jmp 0x477293
cmp dword [0x566390], 0
je 0x4772a4
mov ecx, dword [0x559368]
cmp ecx, 0x64
je 0x4772a4
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 0x4772e8
mov ecx, dword [eax + 0x2b0]
test ecx, ecx
je 0x4772c8
mov ecx, dword [ecx + 0x1f0]
jmp 0x4772d7
cmp dword [0x566390], 0
je 0x4772e8
mov ecx, dword [0x559368]
cmp ecx, 0x64
je 0x4772e8
push 0x64
push ecx
push edx
call esi
mov edx, eax
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x24], edx
jge 0x477332
mov edx, dword [eax + 0x2c8]
cmp edx, 0x7ffffffe
ja 0x47732e
mov ecx, dword [eax + 0x2b0]
test ecx, ecx
je 0x47730e
mov ecx, dword [ecx + 0x1f0]
jmp 0x47731d
cmp dword [0x566390], 0
je 0x47732e
mov ecx, dword [0x559368]
cmp ecx, 0x64
je 0x47732e
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 0x477372
mov ecx, dword [eax + 0x2b0]
test ecx, ecx
je 0x477352
mov ecx, dword [ecx + 0x1f0]
jmp 0x477361
cmp dword [0x566390], 0
je 0x477372
mov ecx, dword [0x559368]
cmp ecx, 0x64
je 0x477372
push 0x64
push ecx
push edx
call esi
mov edx, eax
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x24], edx
jle 0x4773c0
mov edx, dword [eax + 0x2d0]
cmp edx, 0x7ffffffe
ja 0x4773bc
mov eax, dword [eax + 0x2b0]
test eax, eax
je 0x4773a0
mov eax, dword [eax + 0x1f0]
cmp eax, 0x64
je 0x4773bc
push 0x64
push eax
jmp 0x4773b7
cmp dword [0x566390], 0
je 0x4773bc
mov ecx, dword [0x559368]
cmp ecx, 0x64
je 0x4773bc
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 0x47744a
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 0x476bb0
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