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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1dc
mov eax, dword [0x774458]
xor eax, esp
mov dword [esp + 0x1d8], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
push edi
mov dword [esp + 0x78], ebx
mov dword [esp + 0x58], eax
mov dword [esp + 0x64], ecx
call fcn.00642300
fstp dword [esp + 0x20]
fld dword [edi + 0x54]
add esp, 4
fstp dword [esp + 0x30]
fld dword [edi + 0x5c]
fstp dword [esp + 0x18]
fld dword [edi + 0x68]
fstp dword [esp + 0x38]
fld dword [edi + 0x58]
fstp dword [esp + 0x3c]
fld dword [edi + 0x60]
fstp dword [esp + 0x34]
fld dword [esi]
fld dword [esp + 0x3c]
fld st(0)
fmulp st(2)
fld dword [esi + 4]
fld dword [esp + 0x34]
fld st(0)
fmulp st(2)
fxch st(3)
faddp st(1)
fld dword [esi + 8]
fld dword [esp + 0x1c]
fld st(0)
fmulp st(2)
fxch st(2)
faddp st(1)
fsub dword [esi + 0x24]
fmul dword [esi + 0x2c]
call fcn.006519c0
fld dword [esi + 0x10]
fmulp st(3)
mov dword [esp + 0x10], eax
fld dword [esi + 0xc]
fmulp st(2)
fxch st(2)
faddp st(1)
fld dword [esi + 0x14]
fmulp st(2)
faddp st(1)
fsub dword [esi + 0x28]
fmul dword [esi + 0x2c]
call fcn.006519c0
fld dword [esi + 4]
fld dword [esp + 0x18]
mov dword [esp + 0x14], eax
fld st(0)
fmulp st(2)
fld dword [esi]
fld dword [esp + 0x30]
fld st(0)
fmulp st(2)
fxch st(3)
faddp st(1)
fld dword [esi + 8]
fld dword [esp + 0x38]
fld st(0)
fmulp st(2)
fxch st(2)
faddp st(1)
fsub dword [esi + 0x24]
fmul dword [esi + 0x2c]
call fcn.006519c0
fld dword [esi + 0xc]
fmulp st(3)
mov dword [esp + 0x28], eax
fld dword [esi + 0x10]
fmulp st(2)
fxch st(2)
faddp st(1)
fld dword [esi + 0x14]
fmulp st(2)
faddp st(1)
fsub dword [esi + 0x28]
fmul dword [esi + 0x2c]
call fcn.006519c0
cmp dword [esp + 0x28], 0x280
jge 0x643c09
cmp eax, 0x1e0
jge 0x643c09
xor eax, eax
cmp dword [esp + 0x10], eax
jl 0x643c09
cmp dword [esp + 0x14], eax
jl 0x643c09
mov ecx, dword [ebp + 0x18]
and ecx, 0x20
mov dword [esp + 0x34], ecx
je 0x643836
lea edx, [esp + 0x10]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
push edx
lea eax, [edi + 8]
push eax
mov ecx, esi
call fcn.0040aed9
lea ecx, [esp + 0x10]
push ebx
push ecx
call fcn.0063aae0
mov edx, dword [edi + 4]
push edx
lea eax, [esp + 0xec]
push 0x6e287c
push eax
call fcn.00651689
mov edx, dword [ebx]
mov edx, dword [edx + 0x14]
add esp, 0x14
push 1
push 1
push 1
push 1
push 0xc618
lea eax, [esp + 0xf4]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebx
call edx
xor eax, eax
cmp dword [edi + 0x14], eax
mov ecx, dword [0x772b40]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x3c], eax
jle 0x643c09
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov edx, dword [edi + 0x18]
mov ecx, dword [edx + eax + 4]
add edx, eax
cmp dword [edx + 0x18], 0
mov eax, dword [edx]
fld dword [eax]
fstp dword [esp + 0x64]
fld dword [eax + 4]
fstp dword [esp + 0x38]
fld dword [ecx]
fstp dword [esp + 0x30]
fld dword [ecx + 4]
fstp dword [esp + 0x18]
fld dword [edi + 0x20]
fmul dword [eax]
fld dword [edi + 0x24]
fmul dword [eax + 4]
faddp st(1)
fadd dword [edi + 0x28]
fstp dword [esp + 0x48]
fld dword [esp + 0x48]
fst dword [esp + 0x24]
fld dword [edi + 0x24]
fmul dword [ecx + 4]
fld dword [edi + 0x20]
fmul dword [ecx]
faddp st(1)
fadd dword [edi + 0x28]
fstp dword [esp + 0x44]
fld dword [esp + 0x44]
fstp dword [esp + 0x40]
je 0x6438ef
mov ebx, dword [esp + 0x20]
mov edx, dword [edi + 0x18]
mov edx, dword [edx + ebx + 0x18]
fld dword [edx + 0x24]
mov ebx, dword [esp + 0x74]
fmul dword [eax + 4]
fld dword [edx + 0x20]
fmul dword [eax]
faddp st(1)
fadd dword [edx + 0x28]
fstp dword [esp + 0x24]
fld dword [edx + 0x20]
fmul dword [ecx]
fld dword [edx + 0x24]
fmul dword [ecx + 4]
faddp st(1)
fadd dword [edx + 0x28]
fstp dword [esp + 0x40]
fld dword [esp + 0x64]
xor eax, eax
fstp dword [esp + 0xac]
mov dword [esp + 0x50], eax
fld dword [esp + 0x38]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x5c], eax
fstp dword [esp + 0xb0]
mov dword [esp + 0x58], eax
mov dword [esp + 0x2c], eax
fstp dword [esp + 0xb4]
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0xb0]
push ecx
mov ecx, esi
call fcn.0040aed9
fld dword [esp + 0x64]
fstp dword [esp + 0x88]
lea edx, [esp + 0x58]
fld dword [esp + 0x38]
push edx
fstp dword [esp + 0x90]
lea eax, [esp + 0x8c]
fld dword [esp + 0x28]
push eax
mov ecx, esi
fstp dword [esp + 0x98]
call fcn.0040aed9
fld dword [esp + 0x30]
fstp dword [esp + 0x94]
lea ecx, [esp + 0x28]
fld dword [esp + 0x18]
push ecx
fstp dword [esp + 0x9c]
lea edx, [esp + 0x98]
fld dword [esp + 0x48]
push edx
mov ecx, esi
fstp dword [esp + 0xa4]
call fcn.0040aed9
fld dword [esp + 0x30]
fstp dword [esp + 0xa0]
lea eax, [esp + 0x10]
fld dword [esp + 0x18]
push eax
fstp dword [esp + 0xa8]
lea ecx, [esp + 0xa4]
fld dword [esp + 0x44]
push ecx
mov ecx, esi
fstp dword [esp + 0xb0]
call fcn.0040aed9
cmp dword [esp + 0x1c], 0xffffffff
je 0x643add
mov eax, dword [esp + 0x2c]
fld dword [esp + 0x24]
fsub dword [esp + 0x48]
mov edx, dword [esp + 0x28]
fldz
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0xbc], eax
fucom st(1)
mov eax, dword [esp + 0x50]
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xd4], eax
fnstsw ax
mov dword [esp + 0xb8], edx
fstp st(1)
test ah, 0x44
mov dword [esp + 0xc0], ecx
jp 0x643a6c
fld dword [esp + 0x40]
fsub dword [esp + 0x44]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x643ad2
jmp 0x643a6e
fstp st(0)
add dword [0x7d2b38], 1
sub ecx, edx
test ecx, ecx
jle 0x643ad2
mov ecx, dword [esp + 0x1c]
push 0
push ecx
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0xc0]
push edx
movzx edx, word [ecx]
sub esp, 8
mov eax, esp
mov word [eax], dx
movzx edx, word [ecx + 2]
mov word [eax + 2], dx
mov cx, word [ecx + 4]
lea edx, [esp + 0xee]
push edx
mov word [eax + 4], cx
call fcn.006433b0
add esp, 0x10
push eax
push 4
lea eax, [esp + 0xc8]
push eax
mov ecx, ebx
call fcn.0040bb5e
add dword [0x7d2b3c], 1
cmp dword [esp + 0x34], 0
je 0x643bf0
mov edx, dword [ebx]
mov edx, dword [edx + 4]
mov eax, 0xff
mov word [esp + 0x6a], ax
mov word [esp + 0x6c], ax
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x5c]
push ecx
lea eax, [esp + 0x54]
push eax
mov ecx, ebx
mov word [esp + 0x74], 0
call edx
lea ecx, [esp + 0x6e]
push ecx
mov eax, 0xff
lea edx, [esp + 0x14]
push edx
mov word [esp + 0x78], ax
mov word [esp + 0x7a], ax
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x30]
push ecx
mov ecx, ebx
mov word [esp + 0x7a], 0
call edx
fld dword [esp + 0x48]
fld dword [esp + 0x24]
fcom st(1)
fnstsw ax
test ah, 5
mov eax, dword [esp + 0x54]
jnp 0x643b52
mov eax, dword [esp + 0x60]
mov ecx, dword [eax]
fcompp
mov dx, word [eax + 4]
mov dword [esp + 0x80], ecx
mov word [esp + 0x84], dx
fnstsw ax
test ah, 5
mov eax, dword [esp + 0x60]
jnp 0x643b78
mov eax, dword [esp + 0x54]
mov ecx, dword [eax]
mov dx, word [eax + 4]
mov eax, dword [ebx]
mov dword [esp + 0x78], ecx
mov word [esp + 0x7c], dx
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x2c]
push edx
mov edx, dword [eax + 4]
lea ecx, [esp + 0x54]
push ecx
mov ecx, ebx
call edx
mov eax, dword [ebx]
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x14]
push edx
mov edx, dword [eax + 4]
lea ecx, [esp + 0x60]
push ecx
mov ecx, ebx
call edx
cmp dword [esp + 0x34], 0
je 0x643bf0
lea eax, [esp + 0x4c]
push ebx
push eax
call fcn.0063aae0
lea ecx, [esp + 0x60]
push ebx
push ecx
call fcn.0063aae0
lea edx, [esp + 0x38]
push ebx
push edx
call fcn.0063aae0
lea eax, [esp + 0x28]
push ebx
push eax
call fcn.0063aae0
add esp, 0x20
mov eax, dword [esp + 0x3c]
add dword [esp + 0x20], 0x20
add eax, 1
cmp eax, dword [edi + 0x14]
mov dword [esp + 0x3c], eax
jl 0x643851
mov ecx, dword [esp + 0x1e4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00651675
mov esp, ebp
pop ebp
ret