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

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x1cc]
test al, 2
lea ebx, [esi + 0x1cc]
mov ecx, 0
setne cl
mov edx, 0
push edi
inc ecx
test al, 1
setne dl
inc edx
imul ecx, edx
imul ecx, dword [esi + 0x1d0]
add ecx, 0xb90
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x214]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov edi, dword [esi + 0xc]
test edi, edi
lea ebp, [esi + 0xc]
je 0x646f06
mov eax, dword [edi + 0x2c]
test eax, eax
jne 0x646ed3
lea ebp, [edi + 0x28]
mov edi, dword [ebp]
test edi, edi
jne 0x646ec0
jmp 0x646f06
mov ecx, dword [esp + 0x10]
cmp dword [edi + 0x30], ecx
jne 0x646ee5
mov dword [edi + 0x2c], 0
jmp 0x646f14
mov ecx, dword [esi + 0x214]
mov eax, dword [ebp]
mov edx, dword [ecx]
push eax
call dword [edx + 0x24]
mov eax, dword [ebp]
mov ecx, dword [eax + 0x28]
push eax
mov dword [ebp], ecx
call fcn.007152ac
add esp, 4
mov edx, dword [esp + 0x10]
push edx
mov ecx, esi
call fcn.006466fc
mov edi, eax
mov ecx, dword [esi + 0x214]
mov eax, dword [ecx]
call dword [eax + 0x2c]
test edi, edi
je 0x647346
mov eax, dword [esi + 0x1d0]
mov ecx, dword [esi + 0x1e8]
mov ebp, dword [ecx]
lea edx, [edi + 0x40]
push eax
push edx
call dword [ebp + 4]
test eax, eax
mov dword [esp + 0x10], eax
jle 0x647348
mov eax, dword [esp + 0x34]
test eax, eax
je 0x647087
mov ecx, dword [eax + 0x50]
mov ebp, dword [eax + 0x54]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 0xd4]
mov edx, dword [ecx + 0xe0]
add eax, 0x828
mov dword [esp + 0x14], eax
mov eax, 0x64
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], eax
xor eax, eax
cmp ebp, eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
je 0x647087
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x646fb8
push eax
lea ecx, [esp + 0x20]
push ecx
mov edx, ecx
push edx
call fcn.005c14cc
add esp, 0xc
jmp 0x64703d
mov eax, dword [esp + 0x38]
movzx edx, byte [eax + 0x12]
xor ecx, ecx
mov ch, byte [eax + 0x10]
mov cl, byte [eax + 0x11]
shl ecx, 8
or ecx, edx
cmp ecx, 0xffffff
jne 0x646ffd
mov ebp, dword [eax + 4]
mov eax, dword [eax + 0x14]
sub ebp, 0x14
add eax, ebp
push eax
lea ecx, [esp + 0x20]
push ecx
mov edx, ecx
push edx
call fcn.005c14cc
mov ecx, dword [esp + 0x44]
add esp, 0xc
push ebp
call fcn.00664b7c
jmp 0x64703d
cmp ebp, dword [esp + 0x34]
je 0x64703d
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 0x78]
cmp eax, 0x62
je 0x647018
cmp eax, 6
je 0x647018
cmp eax, 0x61
jne 0x647034
mov ecx, dword [ebp + 0x20]
call fcn.005dda8c
add eax, 0x34
push eax
lea ecx, [esp + 0x20]
push ecx
mov edx, ecx
push edx
call fcn.005c14cc
add esp, 0xc
mov ebp, dword [ebp + 8]
cmp ebp, dword [esp + 0x34]
jne 0x647003
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
mov edx, ecx
push edx
call fcn.005c14cc
mov eax, dword [ebx]
mov ebp, dword [ebx + 4]
mov edx, eax
lea ecx, [esp + 0x28]
push ecx
push eax
sar edx, 2
and edx, 3
mov ecx, dword [edx*4 + 0x5fb068]
sar eax, 2
shl ebp, cl
and eax, 3
mov ecx, dword [eax*4 + 0x5fb068]
lea eax, [edi + 0x40]
sar ebp, cl
push ebp
push eax
call fcn.005c15bc
add esp, 0x1c
mov ecx, dword [esi + 0x214]
mov eax, dword [ecx]
call dword [eax + 0x28]
fild dword [esi]
lea ebp, [esi + 0x10]
mov ecx, ebp
fstp qword [esp + 0x14]
call fcn.006496ac
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
fmul qword [0x5fb2a8]
fcomp qword [esp + 0x14]
fnstsw ax
test ah, 5
jp 0x6471e6
mov ecx, ebp
mov dword [esp + 0x34], 0x80
call fcn.006496ac
mov ecx, dword [esi]
add eax, 0x4b0
cmp ecx, eax
jle 0x6470e3
mov dword [esp + 0x34], 0x10
jmp 0x647119
mov ecx, ebp
call fcn.006496ac
mov ecx, dword [esi]
add eax, 0x258
cmp ecx, eax
jle 0x6470ff
mov dword [esp + 0x34], 0x20
jmp 0x647119
mov ecx, ebp
call fcn.006496ac
mov ecx, dword [esi]
add eax, 0x12c
cmp ecx, eax
jle 0x647119
mov dword [esp + 0x34], 0x40
mov eax, dword [esi + 0x218]
test eax, eax
jne 0x64715e
test byte [ebx], 1
jne 0x64713f
push 0x20
call fcn.0071528c
add esp, 4
test eax, eax
je 0x647156
mov ecx, eax
call fcn.00653a0c
jmp 0x647158
push 4
call fcn.0071528c
add esp, 4
test eax, eax
je 0x647156
mov ecx, eax
call fcn.0065395c
jmp 0x647158
xor eax, eax
mov dword [esi + 0x218], eax
mov ecx, dword [esi + 0x218]
test ecx, ecx
mov ebp, dword [esp + 0x10]
je 0x64717e
mov eax, dword [esp + 0x34]
mov edx, dword [ecx]
push ebx
push eax
push ebp
lea eax, [edi + 0x24]
push eax
call dword [edx + 4]
mov ebp, eax
push ebx
call fcn.006465dc
xor edx, edx
mov ecx, eax
mov eax, ebp
imul eax, eax, 0x3e8
div ecx
mov ecx, dword [esi]
add esp, 4
mov edx, 0
add ecx, eax
mov dword [esi], ecx
mov ebx, dword [ebx]
test bl, 2
setne dl
mov ecx, 0
inc edx
test bl, 1
setne cl
inc ecx
imul edx, ecx
mov ecx, dword [esp + 0x38]
imul edx, ebp
mov dword [edi + 0x34], edx
movzx ebx, byte [ecx + 0xd]
xor edx, edx
mov dh, byte [ecx + 0xf]
mov dl, byte [ecx + 0xc]
movzx ecx, byte [ecx + 0xe]
shl edx, 8
or edx, ebx
shl edx, 8
or edx, ecx
add edx, eax
mov dword [edi + 0x38], edx
jmp 0x6472bb
push ebx
call fcn.006465dc
mov ecx, eax
mov eax, dword [esp + 0x14]
imul eax, eax, 0x3e8
xor edx, edx
div ecx
add esp, 4
mov edx, 0
mov ebp, eax
add dword [esi], ebp
mov eax, dword [ebx]
test al, 2
setne dl
inc edx
test al, 1
mov eax, 0
setne al
xor ecx, ecx
inc eax
imul edx, eax
imul edx, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
mov dword [edi + 0x34], edx
mov ch, byte [eax + 0xf]
movzx edx, byte [eax + 0xd]
mov cl, byte [eax + 0xc]
movzx eax, byte [eax + 0xe]
mov dword [edi + 0x3c], ebp
shl ecx, 8
or ecx, edx
shl ecx, 8
or ecx, eax
add ecx, ebp
mov dword [edi + 0x38], ecx
mov ecx, dword [esi + 0x218]
test ecx, ecx
je 0x6472be
mov ebp, dword [esp + 0x10]
mov edx, dword [ecx]
push ebx
push 0
push ebp
lea eax, [edi + 0x24]
push eax
call dword [edx + 4]
cmp eax, ebp
je 0x6472b2
test eax, eax
je 0x6472b6
mov ebp, eax
mov eax, dword [esp + 0x10]
push ebx
sub ebp, eax
call fcn.006465dc
mov ecx, eax
mov eax, ebp
imul eax, eax, 0x3e8
cdq
idiv ecx
mov edx, dword [esi]
add esp, 4
add edx, eax
mov dword [esi], edx
mov ecx, dword [edi + 0x38]
mov edx, dword [edi + 0x3c]
add ecx, eax
mov dword [edi + 0x38], ecx
add edx, eax
mov ecx, ebx
mov dword [edi + 0x3c], edx
call fcn.00586cdc
imul eax, ebp
add dword [edi + 0x34], eax
jmp 0x6472be
test eax, eax
jne 0x6472be
xor eax, eax
mov dword [edi + 0x34], eax
mov dword [edi + 0x3c], eax
mov ecx, dword [esi + 0x214]
mov edx, dword [ecx]
call dword [edx + 0x2c]
mov eax, dword [edi + 0x3c]
test eax, eax
jbe 0x6472de
mov ecx, dword [esi + 0x214]
mov eax, dword [ecx]
push edi
call dword [eax + 0x1c]
jmp 0x6472e5
mov dword [edi + 0x2c], 1
mov ecx, dword [esi + 0x214]
mov edx, dword [ecx]
call dword [edx + 0x28]
mov eax, dword [esi + 4]
test eax, eax
je 0x64732b
lea ecx, [esi + 0x10]
call fcn.006496ac
cmp dword [esi], eax
jl 0x64732b
mov ecx, dword [esi + 0x214]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x214]
mov edx, dword [ecx]
call dword [edx + 0x14]
mov ecx, dword [esi + 0x214]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov dword [esi + 4], 0
mov esi, dword [esi + 0x214]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x2c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc