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

Disassembly:
mov ecx, dword [esp + 0x18]
sub esp, 0x10
push edi
mov edi, dword [esp + 0x18]
movzx eax, byte [edi]
cmp ecx, eax
je 0x47798c
push edi
push eax
push ecx
push 0x4a10c8
push 0
call fcn.00474aa0
add esp, 0x14
xor eax, eax
pop edi
add esp, 0x10
ret
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0x24]
shl ecx, 1
xor edx, edx
div ecx
mov ecx, dword [esp + 0x34]
shr ecx, 5
cmp eax, ecx
mov dword [esp + 4], eax
jb 0x4779ae
mov eax, ecx
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x1c]
add ecx, 0x1f
shr ecx, 5
cmp eax, ecx
jb 0x4779c2
mov eax, ecx
mov dword [esp + 4], eax
movsx edx, word [edi + 8]
movsx ecx, word [edi + 0xa]
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
mov dword [esp + 0x18], ecx
xor ecx, ecx
cmp eax, ecx
fmul dword [0x4a10c4]
mov dword [esp + 0xc], ecx
fstp dword [esp + 0x2c]
fild dword [esp + 0x18]
fmul dword [0x4a10c4]
fstp dword [esp + 0x18]
jbe 0x477f4c
push esi
mov esi, dword [esp + 0x24]
push ebx
mov dword [esp + 0x10], ecx
push ebp
mov cl, byte [edi]
xor ebp, ebp
test cl, cl
jbe 0x477f24
lea ebx, [edi + 0x30]
xor eax, eax
mov ah, byte [esi]
test ah, ah
mov al, byte [esi + 1]
js 0x477f45
xor ecx, ecx
mov cx, word [edi + 2]
add esi, 2
mov edx, ecx
xor edx, eax
and edx, 0x1fff
inc edx
movsx eax, dx
xor edx, edx
mov dx, word [edi + 4]
imul dx, cx
add dx, word [edi + 6]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x3c]
fild dword [esp + 0x1c]
fmul dword [0x49f134]
and edx, 0x7fff
mov word [edi + 2], dx
fld dword [ebx - 4]
mov ecx, dword [eax + ebp*4]
fld st(1)
add ecx, dword [esp + 0x14]
mov edx, dword [esi]
mov eax, edx
shr eax, 4
and eax, 0xf
fmul dword [eax*4 + 0x4a1080]
mov eax, edx
fld st(1)
and eax, 0xf
fmul dword [esp + 0x38]
faddp st(1)
fld dword [esp + 0x24]
fmul dword [ebx]
faddp st(1)
fst dword [ecx]
fld st(2)
fmul dword [eax*4 + 0x4a1080]
mov eax, edx
fxch st(1)
shr eax, 0xc
fmul dword [esp + 0x38]
and eax, 0xf
faddp st(1)
fxch st(1)
fmul dword [esp + 0x24]
faddp st(1)
fst dword [ecx + 4]
fld st(1)
fmul dword [eax*4 + 0x4a1080]
mov eax, edx
fld dword [esp + 0x24]
shr eax, 8
fmul dword [ecx]
and eax, 0xf
faddp st(1)
fxch st(1)
fmul dword [esp + 0x38]
faddp st(1)
fst dword [ecx + 8]
fld st(1)
fmul dword [eax*4 + 0x4a1080]
mov eax, edx
fxch st(1)
shr eax, 0x14
fmul dword [esp + 0x38]
and eax, 0xf
faddp st(1)
fld dword [esp + 0x24]
fmul dword [ecx + 4]
faddp st(1)
fst dword [ecx + 0xc]
fld st(1)
fmul dword [eax*4 + 0x4a1080]
fld dword [esp + 0x24]
fmul dword [ecx + 8]
faddp st(1)
fxch st(1)
fmul dword [esp + 0x38]
faddp st(1)
mov eax, edx
shr eax, 0x10
and eax, 0xf
fst dword [ecx + 0x10]
fld st(1)
fmul dword [eax*4 + 0x4a1080]
mov eax, edx
fxch st(1)
shr eax, 0x1c
fmul dword [esp + 0x38]
shr edx, 0x18
and edx, 0xf
faddp st(1)
fld dword [esp + 0x24]
fmul dword [ecx + 0xc]
faddp st(1)
fst dword [ecx + 0x14]
fld st(1)
fmul dword [eax*4 + 0x4a1080]
fld dword [esp + 0x24]
fmul dword [ecx + 0x10]
faddp st(1)
fxch st(1)
fmul dword [esp + 0x38]
faddp st(1)
fst dword [ecx + 0x18]
fld st(1)
fmul dword [edx*4 + 0x4a1080]
fxch st(1)
fmul dword [esp + 0x38]
faddp st(1)
fld dword [esp + 0x24]
fmul dword [ecx + 0x14]
faddp st(1)
fstp dword [ecx + 0x1c]
mov edx, dword [esi + 4]
mov eax, edx
fld st(0)
shr eax, 4
and eax, 0xf
fmul dword [eax*4 + 0x4a1080]
mov eax, edx
fld dword [esp + 0x24]
and eax, 0xf
fmul dword [ecx + 0x18]
faddp st(1)
fld dword [esp + 0x38]
fmul dword [ecx + 0x1c]
faddp st(1)
fst dword [ecx + 0x20]
fld st(1)
fmul dword [eax*4 + 0x4a1080]
mov eax, edx
fxch st(1)
shr eax, 0xc
fmul dword [esp + 0x38]
and eax, 0xf
faddp st(1)
fld dword [esp + 0x24]
fmul dword [ecx + 0x1c]
faddp st(1)
fst dword [ecx + 0x24]
fld st(1)
fmul dword [eax*4 + 0x4a1080]
mov eax, edx
fld dword [esp + 0x24]
shr eax, 8
fmul dword [ecx + 0x20]
and eax, 0xf
faddp st(1)
fxch st(1)
fmul dword [esp + 0x38]
faddp st(1)
fst dword [ecx + 0x28]
fld st(1)
fmul dword [eax*4 + 0x4a1080]
fxch st(1)
fmul dword [esp + 0x38]
faddp st(1)
fld dword [esp + 0x24]
fmul dword [ecx + 0x24]
mov eax, edx
shr eax, 0x14
and eax, 0xf
faddp st(1)
fst dword [ecx + 0x2c]
fld st(1)
fmul dword [eax*4 + 0x4a1080]
mov eax, edx
fxch st(1)
shr eax, 0x10
fmul dword [esp + 0x38]
and eax, 0xf
faddp st(1)
fld dword [esp + 0x24]
fmul dword [ecx + 0x28]
faddp st(1)
fst dword [ecx + 0x30]
fld st(1)
fmul dword [eax*4 + 0x4a1080]
mov eax, edx
fld dword [esp + 0x24]
shr eax, 0x1c
fmul dword [ecx + 0x2c]
shr edx, 0x18
and edx, 0xf
faddp st(1)
fxch st(1)
fmul dword [esp + 0x38]
faddp st(1)
fst dword [ecx + 0x34]
fld st(1)
fmul dword [eax*4 + 0x4a1080]
fld dword [esp + 0x24]
fmul dword [ecx + 0x30]
faddp st(1)
fxch st(1)
fmul dword [esp + 0x38]
faddp st(1)
fst dword [ecx + 0x38]
fld st(1)
fmul dword [edx*4 + 0x4a1080]
fxch st(1)
fmul dword [esp + 0x38]
faddp st(1)
fld dword [esp + 0x24]
fmul dword [ecx + 0x34]
faddp st(1)
fstp dword [ecx + 0x3c]
mov edx, dword [esi + 8]
mov eax, edx
fld st(0)
shr eax, 4
and eax, 0xf
fmul dword [eax*4 + 0x4a1080]
mov eax, edx
fld dword [esp + 0x38]
and eax, 0xf
fmul dword [ecx + 0x3c]
faddp st(1)
fld dword [esp + 0x24]
fmul dword [ecx + 0x38]
faddp st(1)
fst dword [ecx + 0x40]
fld st(1)
fmul dword [eax*4 + 0x4a1080]
mov eax, edx
fld dword [esp + 0x24]
shr eax, 0xc
fmul dword [ecx + 0x3c]
and eax, 0xf
faddp st(1)
fxch st(1)
fmul dword [esp + 0x38]
faddp st(1)
fst dword [ecx + 0x44]
fld st(1)
fmul dword [eax*4 + 0x4a1080]
fxch st(1)
fmul dword [esp + 0x38]
faddp st(1)
fld dword [esp + 0x24]
mov eax, edx
fmul dword [ecx + 0x40]
shr eax, 8
and eax, 0xf
faddp st(1)
fst dword [ecx + 0x48]
fld st(1)
fmul dword [eax*4 + 0x4a1080]
mov eax, edx
fxch st(1)
shr eax, 0x14
fmul dword [esp + 0x38]
and eax, 0xf
faddp st(1)
fld dword [esp + 0x24]
fmul dword [ecx + 0x44]
faddp st(1)
fst dword [ecx + 0x4c]
fld st(1)
fmul dword [eax*4 + 0x4a1080]
mov eax, edx
fld dword [esp + 0x24]
shr eax, 0x10
fmul dword [ecx + 0x48]
and eax, 0xf
faddp st(1)
fxch st(1)
fmul dword [esp + 0x38]
faddp st(1)
fst dword [ecx + 0x50]
fld st(1)
fmul dword [eax*4 + 0x4a1080]
mov eax, edx
fld dword [esp + 0x24]
shr eax, 0x1c
fmul dword [ecx + 0x4c]
shr edx, 0x18
and edx, 0xf
faddp st(1)
fxch st(1)
fmul dword [esp + 0x38]
faddp st(1)
fst dword [ecx + 0x54]
fld st(1)
fmul dword [eax*4 + 0x4a1080]
fxch st(1)
fmul dword [esp + 0x38]
faddp st(1)
fld dword [esp + 0x24]
fmul dword [ecx + 0x50]
faddp st(1)
fst dword [ecx + 0x58]
fld st(1)
fmul dword [edx*4 + 0x4a1080]
fxch st(1)
fmul dword [esp + 0x38]
faddp st(1)
fld dword [esp + 0x24]
fmul dword [ecx + 0x54]
faddp st(1)
fstp dword [ecx + 0x5c]
mov edx, dword [esi + 0xc]
mov eax, edx
fld st(0)
shr eax, 4
and eax, 0xf
fmul dword [eax*4 + 0x4a1080]
mov eax, edx
fld dword [esp + 0x24]
and eax, 0xf
fmul dword [ecx + 0x58]
faddp st(1)
fld dword [esp + 0x38]
fmul dword [ecx + 0x5c]
faddp st(1)
fst dword [ecx + 0x60]
fld st(1)
fmul dword [eax*4 + 0x4a1080]
fld dword [esp + 0x24]
fmul dword [ecx + 0x5c]
faddp st(1)
mov eax, edx
fxch st(1)
shr eax, 0xc
fmul dword [esp + 0x38]
and eax, 0xf
faddp st(1)
fst dword [ecx + 0x64]
fld st(1)
fmul dword [eax*4 + 0x4a1080]
mov eax, edx
fxch st(1)
shr eax, 8
fmul dword [esp + 0x38]
and eax, 0xf
faddp st(1)
fld dword [esp + 0x24]
fmul dword [ecx + 0x60]
faddp st(1)
fst dword [ecx + 0x68]
fld st(1)
fmul dword [eax*4 + 0x4a1080]
mov eax, edx
fld dword [esp + 0x24]
shr eax, 0x14
fmul dword [ecx + 0x64]
and eax, 0xf
faddp st(1)
fxch st(1)
fmul dword [esp + 0x38]
faddp st(1)
fst dword [ecx + 0x6c]
fld st(1)
fmul dword [eax*4 + 0x4a1080]
mov eax, edx
fld dword [esp + 0x24]
shr eax, 0x10
fmul dword [ecx + 0x68]
and eax, 0xf
faddp st(1)
fxch st(1)
fmul dword [esp + 0x38]
faddp st(1)
fst dword [ecx + 0x70]
fld st(1)
fmul dword [eax*4 + 0x4a1080]
mov eax, edx
fxch st(1)
shr eax, 0x1c
fmul dword [esp + 0x38]
shr edx, 0x18
and edx, 0xf
add esi, 0x10
faddp st(1)
fld dword [esp + 0x24]
fmul dword [ecx + 0x6c]
faddp st(1)
fst dword [ecx + 0x74]
fld st(1)
fmul dword [eax*4 + 0x4a1080]
fxch st(1)
fmul dword [esp + 0x38]
faddp st(1)
fld dword [esp + 0x24]
fmul dword [ecx + 0x70]
faddp st(1)
fst dword [ecx + 0x78]
fxch st(1)
fmul dword [edx*4 + 0x4a1080]
fld dword [esp + 0x24]
fmul dword [ecx + 0x74]
faddp st(1)
fxch st(1)
fmul dword [esp + 0x38]
faddp st(1)
fst dword [ecx + 0x7c]
fadd dword [0x4a10c0]
fstp dword [ebx - 4]
fld dword [ecx + 0x78]
fadd dword [0x4a10c0]
fstp dword [ebx]
movzx ecx, byte [edi]
inc ebp
add ebx, 8
cmp ebp, ecx
jb 0x477a16
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
inc ecx
add ebx, 0x80
cmp ecx, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ebx
jb 0x477a07
jmp 0x477f49
mov ecx, dword [esp + 0x18]
pop ebp
pop ebx
pop esi
movzx eax, byte [edi]
imul eax, ecx
lea edx, [eax + eax*8]
mov eax, dword [esp + 0x28]
shl edx, 1
mov dword [eax], edx
mov eax, ecx
shl eax, 5
pop edi
add esp, 0x10
ret