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

Disassembly:
sub esp, 0xa14
push ebx
push ebp
mov ebp, dword [esp + 0xa20]
push esi
push edi
mov edx, dword [ebp]
test dl, 2
mov dword [esp + 0x1c], edx
je 0x646862
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x64658b
push ebx
call fcn.00644a20
add esp, 4
test eax, eax
jne 0x646532
push ebx
call fcn.00644dd0
mov ecx, 0x10
mov esi, eax
lea edi, [esp + 0xa8]
add esp, 4
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x1c]
mov esi, edx
and esi, 0x2000
mov dword [esp + 0x28], esi
je 0x6464f1
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + 0xa0]
test byte [eax + 3], 3
jne 0x6464f1
mov edx, dword [0x7870c8]
mov ecx, dword [edx + 0xbc]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 0x14]
mov edx, dword [0x7870c8]
mov ecx, dword [eax + 0xa0]
add edx, 0xbc
mov dword [ecx + 0xc], edx
mov edx, dword [ebp + 0x14]
mov ecx, dword [0x7870c8]
mov eax, dword [edx + 0xa0]
mov edx, dword [ecx + 0xbc]
add eax, 8
mov dword [edx + 4], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [0x7870c8]
mov ecx, dword [eax + 0xa0]
add ecx, 8
mov dword [edx + 0xbc], ecx
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xa0]
or byte [eax + 3], 2
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x24], 0
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x38]
mov dword [esp + 0x44], ecx
lea ebx, [eax + 0x48]
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x264]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 0x10]
test eax, eax
mov dword [esp + 0x4c], edx
jle 0x646d90
add ecx, 8
mov dword [esp + 0x18], ecx
jmp 0x64662f
lea esi, [ebx + 0x10]
mov ecx, 0x10
lea edi, [esp + 0xa4]
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [ebx + 4]
test ebx, ebx
je 0x646469
mov ecx, 0x10
lea esi, [esp + 0xa4]
lea edi, [esp + 0x1a4]
lea edx, [esp + 0x1a4]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x10]
lea eax, [esp + 0xa4]
push ecx
push edx
push eax
call fcn.00643810
mov ebx, dword [ebx + 4]
add esp, 0xc
test ebx, ebx
jne 0x64654e
jmp 0x646469
mov eax, dword [esp + 0xb0]
mov dword [esp + 0xcc], 0x3f800000
or eax, 0x20003
mov dword [esp + 0xb8], 0x3f800000
mov dword [esp + 0xa4], 0x3f800000
mov dword [esp + 0xb4], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xdc], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xd4], 0
mov dword [esp + 0xb0], eax
jmp 0x64646d
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x4c]
cmp edx, 0x66a8f0
jne 0x64675c
fld dword [ebx + 8]
fld dword [ebx + 0xc]
fld st(1)
fmul st(2)
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], eax
fstp dword [esp + 0x38]
fld st(0)
fmul st(1)
fstp dword [esp + 0x3c]
fld dword [esp + 0x10]
fmul dword [esp + 0x10]
fstp dword [esp + 0x40]
fld dword [esp + 0x10]
fmul st(1)
fstp dword [esp + 0x2c]
fld dword [esp + 0x10]
fmul st(2)
fstp dword [esp + 0x30]
fld st(0)
fmul st(2)
fstp dword [esp + 0x34]
fld dword [esp + 0x20]
fmul st(2)
fstp dword [esp + 0x98]
fld dword [esp + 0x20]
fmul st(1)
fstp st(2)
fstp st(0)
fld dword [esp + 0x20]
fmul dword [esp + 0x10]
fld dword [esp + 0x40]
fadd dword [esp + 0x3c]
fadd st(0), st(0)
fsubr dword [0x67e184]
fstp dword [esp + 0x54]
fld dword [esp + 0x34]
fadd st(1)
fadd st(0), st(0)
fstp dword [esp + 0x58]
fld dword [esp + 0x30]
fsub st(2)
fadd st(0), st(0)
fstp dword [esp + 0x5c]
fld dword [esp + 0x34]
fsub st(1)
fadd st(0), st(0)
fstp dword [esp + 0x64]
fstp st(0)
fld dword [esp + 0x40]
fadd dword [esp + 0x38]
fadd st(0), st(0)
fsubr dword [0x67e184]
fstp dword [esp + 0x68]
fld dword [esp + 0x98]
fadd dword [esp + 0x2c]
fadd st(0), st(0)
fstp dword [esp + 0x6c]
fadd dword [esp + 0x30]
fadd st(0), st(0)
fstp dword [esp + 0x74]
fld dword [esp + 0x2c]
fsub dword [esp + 0x98]
fadd st(0), st(0)
fstp dword [esp + 0x78]
fld dword [esp + 0x3c]
fadd dword [esp + 0x38]
fadd st(0), st(0)
fsubr dword [0x67e184]
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x60], 3
fstp dword [esp + 0x7c]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], eax
jmp 0x646767
lea ecx, [esp + 0x54]
push ebx
push ecx
call edx
add esp, 8
lea edx, [esp + 0xa4]
lea eax, [esp + 0x54]
push edx
lea ecx, [esp + 0x168]
push eax
push ecx
call fcn.00643810
mov edx, dword [esp + 0x24]
add esp, 0xc
mov eax, dword [edx + 4]
test eax, eax
je 0x6467da
mov ecx, dword [esp + 0x1c]
test ch, 0x10
je 0x6467b9
lea edi, [eax + 0x10]
mov ecx, 0x10
lea esi, [esp + 0x54]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x28]
test ecx, ecx
jne 0x6467bd
push eax
call fcn.00644d50
add esp, 4
jmp 0x6467da
test esi, esi
je 0x6467da
lea edi, [eax + 0x50]
mov ecx, 0x10
lea esi, [esp + 0x164]
rep movsd dword es:[edi], dword [esi]
mov cl, byte [eax + 3]
and cl, 0xfb
or cl, 8
mov byte [eax + 3], cl
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
and eax, 3
sub eax, 0
je 0x64680b
dec eax
je 0x646855
dec eax
jne 0x646820
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x14]
mov ecx, 0x10
lea esi, [esp + 0xa4]
add eax, 0x40
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x14], eax
lea esi, [esp + 0x164]
lea edi, [esp + 0xa4]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 4]
add ebx, edi
add esi, 0x10
inc eax
mov dword [esp + 0x18], esi
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x646627
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xa14
ret
mov esi, dword [esp + 0x14]
sub esi, 0x40
mov dword [esp + 0x14], esi
jmp 0x646812
test dl, 1
mov esi, 0x20003
je 0x64689b
mov eax, dword [ebp + 0x1c]
cmp eax, 0xffffffff
je 0x64689b
mov ecx, dword [ebp + 0x18]
shl eax, 6
add eax, dword [ecx + 8]
test dh, 0x20
mov dword [esp + 0x10], eax
je 0x646999
test dh, 0x40
je 0x646999
mov ecx, dword [ecx + 0x14]
jmp 0x646958
test dh, 0x40
je 0x64694a
mov ecx, dword [esp + 0x130]
lea eax, [esp + 0x124]
or ecx, esi
mov dword [esp + 0x14c], 0x3f800000
test dh, 0x20
mov dword [esp + 0x138], 0x3f800000
mov dword [esp + 0x124], 0x3f800000
mov dword [esp + 0x134], 0
mov dword [esp + 0x12c], 0
mov dword [esp + 0x128], 0
mov dword [esp + 0x148], 0
mov dword [esp + 0x144], 0
mov dword [esp + 0x13c], 0
mov dword [esp + 0x15c], 0
mov dword [esp + 0x158], 0
mov dword [esp + 0x154], 0
mov dword [esp + 0x130], ecx
mov dword [esp + 0x10], eax
je 0x646999
jmp 0x646955
lea eax, [esp + 0xe4]
mov dword [esp + 0x10], eax
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x646ac3
mov ebx, dword [ecx + 4]
test ebx, ebx
je 0x646ac3
push ebx
call fcn.00644a20
add esp, 4
test eax, eax
jne 0x646a6a
push ebx
call fcn.00644dd0
mov ecx, 0x10
mov esi, eax
lea edi, [esp + 0xe8]
add esp, 4
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x1c]
and edx, 0x2000
mov dword [esp + 0x44], edx
je 0x646a1b
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + 0xa0]
test byte [eax + 3], 3
jne 0x646a1b
mov edx, dword [0x7870c8]
mov ecx, dword [edx + 0xbc]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 0x14]
mov edx, dword [0x7870c8]
mov ecx, dword [eax + 0xa0]
add edx, 0xbc
mov dword [ecx + 0xc], edx
mov edx, dword [ebp + 0x14]
mov ecx, dword [0x7870c8]
mov eax, dword [edx + 0xa0]
mov edx, dword [ecx + 0xbc]
add eax, 8
mov dword [edx + 4], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [0x7870c8]
mov ecx, dword [eax + 0xa0]
add ecx, 8
mov dword [edx + 0xbc], ecx
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xa0]
or byte [eax + 3], 2
mov eax, dword [ebp + 0x20]
mov esi, dword [ebp + 8]
mov dword [esp + 0x24], esi
mov dword [esp + 0x4c], 0
mov edx, dword [eax + 0x24]
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x94], edx
lea edi, [eax + 0x48]
mov eax, dword [ebp + 4]
lea edx, [esp + 0x1a8]
mov dword [esp + 0x18], edx
mov edx, dword [ebp + 0x10]
test eax, eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x48], edi
jle 0x646d90
add edx, 8
mov dword [esp + 0x20], edx
jmp 0x646b60
lea esi, [ebx + 0x10]
mov ecx, 0x10
lea edi, [esp + 0xe4]
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [ebx + 4]
test ebx, ebx
je 0x646995
mov ecx, 0x10
lea esi, [esp + 0xe4]
lea edi, [esp + 0x1a4]
lea edx, [esp + 0x1a4]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x10]
lea eax, [esp + 0xe4]
push ecx
push edx
push eax
call fcn.00643810
mov ebx, dword [ebx + 4]
add esp, 0xc
test ebx, ebx
jne 0x646a86
jmp 0x646995
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x10c], 0x3f800000
or eax, esi
mov dword [esp + 0xf8], 0x3f800000
mov dword [esp + 0xe4], 0x3f800000
mov dword [esp + 0xf4], 0
mov dword [esp + 0xec], 0
mov dword [esp + 0xe8], 0
mov dword [esp + 0x108], 0
mov dword [esp + 0x104], 0
mov dword [esp + 0xfc], 0
mov dword [esp + 0x11c], 0
mov dword [esp + 0x118], 0
mov dword [esp + 0x114], 0
mov dword [esp + 0xf0], eax
jmp 0x646999
mov ecx, dword [esp + 0x50]
cmp ecx, 0x66a8f0
jne 0x646c8d
fld dword [edi + 8]
fld dword [edi + 0xc]
fld st(1)
fmul st(2)
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], ecx
fstp dword [esp + 0x2c]
fld st(0)
fmul st(1)
fstp dword [esp + 0x30]
fld dword [esp + 0x14]
fmul dword [esp + 0x14]
fstp dword [esp + 0x34]
fld dword [esp + 0x14]
fmul st(1)
fstp dword [esp + 0x38]
fld dword [esp + 0x14]
fmul st(2)
fstp dword [esp + 0x3c]
fld st(0)
fmul st(2)
fstp dword [esp + 0x40]
fld dword [esp + 0x28]
fmul st(2)
fstp dword [esp + 0x98]
fld dword [esp + 0x28]
fmul st(1)
fstp st(2)
fstp st(0)
fld dword [esp + 0x28]
fmul dword [esp + 0x14]
fld dword [esp + 0x34]
fadd dword [esp + 0x30]
fadd st(0), st(0)
fsubr dword [0x67e184]
fstp dword [esp + 0x54]
fld dword [esp + 0x40]
fadd st(1)
fadd st(0), st(0)
fstp dword [esp + 0x58]
fld dword [esp + 0x3c]
fsub st(2)
fadd st(0), st(0)
fstp dword [esp + 0x5c]
fld dword [esp + 0x40]
fsub st(1)
fadd st(0), st(0)
fstp dword [esp + 0x64]
fstp st(0)
fld dword [esp + 0x34]
fadd dword [esp + 0x2c]
fadd st(0), st(0)
fsubr dword [0x67e184]
fstp dword [esp + 0x68]
fld dword [esp + 0x98]
fadd dword [esp + 0x38]
fadd st(0), st(0)
fstp dword [esp + 0x6c]
fadd dword [esp + 0x3c]
fadd st(0), st(0)
fstp dword [esp + 0x74]
fld dword [esp + 0x38]
fsub dword [esp + 0x98]
fadd st(0), st(0)
fstp dword [esp + 0x78]
fld dword [esp + 0x30]
fadd dword [esp + 0x2c]
fadd st(0), st(0)
fsubr dword [0x67e184]
mov edx, dword [edi + 0x18]
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x60], 3
fstp dword [esp + 0x7c]
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ecx
jmp 0x646c98
lea edx, [esp + 0x54]
push edi
push edx
call ecx
add esp, 8
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x54]
push eax
push ecx
push esi
call fcn.00643810
mov edx, dword [esp + 0x2c]
add esp, 0xc
mov ebx, dword [edx + 4]
test ebx, ebx
je 0x646d34
mov eax, dword [esp + 0x1c]
test ah, 0x10
je 0x646ce8
lea edi, [ebx + 0x10]
mov ecx, 0x10
lea esi, [esp + 0x54]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x44]
test ecx, ecx
jne 0x646cf2
push ebx
call fcn.00644d50
mov edi, dword [esp + 0x4c]
mov esi, dword [esp + 0x28]
add esp, 4
jmp 0x646d34
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x646d34
jmp 0x646cfa
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x24]
test ah, 0x40
je 0x646d16
lea eax, [esp + 0xe4]
lea ecx, [ebx + 0x50]
push eax
push esi
push ecx
call fcn.00643810
add esp, 0xc
jmp 0x646d28
lea edi, [ebx + 0x50]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x24]
mov dl, byte [ebx + 3]
and dl, 0xfb
or dl, 8
mov byte [ebx + 3], dl
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
and eax, 3
sub eax, 0
je 0x646d59
dec eax
je 0x646da0
dec eax
jne 0x646d5d
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
add eax, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x94]
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x4c]
add edi, ecx
mov ecx, dword [ebp + 4]
add esi, 0x40
add ebx, 0x10
inc eax
cmp eax, ecx
mov dword [esp + 0x48], edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x4c], eax
jl 0x646b5c
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xa14
ret
mov eax, dword [esp + 0x18]
sub eax, 4
mov dword [esp + 0x18], eax
mov edx, dword [eax]
mov dword [esp + 0x10], edx
jmp 0x646d5d