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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe4
fld qword [ebp + 0x10]
fmul qword [0x4efad0]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
fld st(0)
fcos
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esp + 0xc], eax
dec eax
fstp qword [esp + 0x80]
fsin
fld qword [0x4dd198]
fsub qword [esp + 0x80]
fild dword [esp + 0xc]
mov dword [esp + 0xc], ecx
dec ecx
fild dword [esp + 0xc]
mov dword [esp + 0xc], eax
fld st(0)
fmul st(4)
fld st(2)
fmul st(4)
faddp st(1)
fmul qword [0x4dd030]
fstp qword [esp + 0x28]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
fmul st(2)
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], esi
fmul qword [0x4dd030]
fxch st(1)
fmul st(3)
fmul qword [0x4dd030]
fsubp st(1)
fstp qword [esp + 0x20]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
fstp st(0)
fild dword [esp + 0xc]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], esi
fld st(0)
fmul qword [esp + 0x80]
fst qword [esp + 0x98]
fadd qword [esp + 0x28]
fstp qword [esp + 0x50]
fmul st(1)
fst qword [esp + 0xa0]
fadd qword [esp + 0x20]
fstp qword [esp + 0x58]
fild dword [esp + 0xc]
fst qword [esp + 0xb0]
fmulp st(1)
fld qword [esp + 0x98]
fsub st(1)
fadd qword [esp + 0x28]
fstp qword [esp + 0x60]
fld qword [esp + 0xb0]
fmul qword [esp + 0x80]
fst qword [esp + 0x98]
fadd qword [esp + 0xa0]
fadd qword [esp + 0x20]
fstp qword [esp + 0x68]
fld qword [esp + 0x28]
fsub st(1)
fstp qword [esp + 0x70]
fstp st(0)
fld qword [esp + 0x98]
fadd qword [esp + 0x20]
fstp qword [esp + 0x78]
fld qword [esp + 0x60]
fcomp qword [esp + 0x70]
fnstsw ax
test ah, 1
je 0x4a6871
fld qword [esp + 0x60]
jmp 0x4a6875
fld qword [esp + 0x70]
fld qword [esp + 0x50]
fcomp st(1)
fnstsw ax
test ah, 1
fstp st(0)
je 0x4a688a
fld qword [esp + 0x50]
jmp 0x4a68a3
fld qword [esp + 0x60]
fcomp qword [esp + 0x70]
fnstsw ax
test ah, 1
je 0x4a689f
fld qword [esp + 0x60]
jmp 0x4a68a3
fld qword [esp + 0x70]
fld qword [esp + 0x28]
fcomp st(1)
fnstsw ax
test ah, 1
fstp st(0)
je 0x4a68bc
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
jmp 0x4a692b
fld qword [esp + 0x60]
fcomp qword [esp + 0x70]
fnstsw ax
test ah, 1
je 0x4a68d1
fld qword [esp + 0x60]
jmp 0x4a68d5
fld qword [esp + 0x70]
fld qword [esp + 0x50]
fcomp st(1)
fnstsw ax
test ah, 1
fstp st(0)
je 0x4a68fc
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], eax
jmp 0x4a6939
fld qword [esp + 0x60]
fcomp qword [esp + 0x70]
fnstsw ax
test ah, 1
je 0x4a6923
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edx
jmp 0x4a6939
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ecx
fld qword [esp + 0x68]
fcomp qword [esp + 0x78]
fnstsw ax
test ah, 1
je 0x4a694e
fld qword [esp + 0x68]
jmp 0x4a6952
fld qword [esp + 0x78]
fld qword [esp + 0x58]
fcomp st(1)
fnstsw ax
test ah, 1
fstp st(0)
je 0x4a6967
fld qword [esp + 0x58]
jmp 0x4a6980
fld qword [esp + 0x68]
fcomp qword [esp + 0x78]
fnstsw ax
test ah, 1
je 0x4a697c
fld qword [esp + 0x68]
jmp 0x4a6980
fld qword [esp + 0x78]
fld qword [esp + 0x20]
fcomp st(1)
fnstsw ax
test ah, 1
fstp st(0)
je 0x4a6999
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
jmp 0x4a69fc
fld qword [esp + 0x68]
fcomp qword [esp + 0x78]
fnstsw ax
test ah, 1
je 0x4a69ae
fld qword [esp + 0x68]
jmp 0x4a69b2
fld qword [esp + 0x78]
fld qword [esp + 0x58]
fcomp st(1)
fnstsw ax
test ah, 1
fstp st(0)
je 0x4a69d3
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
jmp 0x4a6a04
fld qword [esp + 0x68]
fcomp qword [esp + 0x78]
fnstsw ax
test ah, 1
je 0x4a69f4
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
jmp 0x4a6a04
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
fld qword [esp + 0x60]
fcomp qword [esp + 0x70]
fnstsw ax
test ah, 0x41
jne 0x4a6a19
fld qword [esp + 0x60]
jmp 0x4a6a1d
fld qword [esp + 0x70]
fld qword [esp + 0x50]
fcomp st(1)
fnstsw ax
test ah, 0x41
fstp st(0)
jne 0x4a6a32
fld qword [esp + 0x50]
jmp 0x4a6a4b
fld qword [esp + 0x60]
fcomp qword [esp + 0x70]
fnstsw ax
test ah, 0x41
jne 0x4a6a47
fld qword [esp + 0x60]
jmp 0x4a6a4b
fld qword [esp + 0x70]
fld qword [esp + 0x28]
fcomp st(1)
fnstsw ax
test ah, 0x41
fstp st(0)
jne 0x4a6a60
fld qword [esp + 0x28]
jmp 0x4a6aa7
fld qword [esp + 0x60]
fcomp qword [esp + 0x70]
fnstsw ax
test ah, 0x41
jne 0x4a6a75
fld qword [esp + 0x60]
jmp 0x4a6a79
fld qword [esp + 0x70]
fld qword [esp + 0x50]
fcomp st(1)
fnstsw ax
test ah, 0x41
fstp st(0)
jne 0x4a6a8e
fld qword [esp + 0x50]
jmp 0x4a6aa7
fld qword [esp + 0x60]
fcomp qword [esp + 0x70]
fnstsw ax
test ah, 0x41
jne 0x4a6aa3
fld qword [esp + 0x60]
jmp 0x4a6aa7
fld qword [esp + 0x70]
fld qword [esp + 0x68]
fcomp qword [esp + 0x78]
fnstsw ax
test ah, 0x41
jne 0x4a6abc
fld qword [esp + 0x68]
jmp 0x4a6ac0
fld qword [esp + 0x78]
fld qword [esp + 0x58]
fcomp st(1)
fnstsw ax
test ah, 0x41
fstp st(0)
jne 0x4a6ad5
fld qword [esp + 0x58]
jmp 0x4a6aee
fld qword [esp + 0x68]
fcomp qword [esp + 0x78]
fnstsw ax
test ah, 0x41
jne 0x4a6aea
fld qword [esp + 0x68]
jmp 0x4a6aee
fld qword [esp + 0x78]
fld qword [esp + 0x20]
fcomp st(1)
fnstsw ax
test ah, 0x41
fstp st(0)
jne 0x4a6b07
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
jmp 0x4a6b6a
fld qword [esp + 0x68]
fcomp qword [esp + 0x78]
fnstsw ax
test ah, 0x41
jne 0x4a6b1c
fld qword [esp + 0x68]
jmp 0x4a6b20
fld qword [esp + 0x78]
fld qword [esp + 0x58]
fcomp st(1)
fnstsw ax
test ah, 0x41
fstp st(0)
jne 0x4a6b41
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
jmp 0x4a6b72
fld qword [esp + 0x68]
fcomp qword [esp + 0x78]
fnstsw ax
test ah, 0x41
jne 0x4a6b62
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
jmp 0x4a6b72
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
fld qword [esp + 0x10]
fsub qword [esp + 0x38]
fadd qword [0x4dd030]
call fcn.004b1b34
fsub qword [esp + 0x88]
inc eax
push eax
fadd qword [0x4dd030]
call fcn.004b1b34
mov cx, word [ebx + 0xc]
inc eax
push eax
mov ax, word [ebx + 0x10]
push eax
lea edx, [esp + 0xd0]
push ecx
push edx
call fcn.00404d20
add esp, 0x14
test ax, ax
jne 0x4a6bc5
mov ax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x4a6ca6
cmp word [esp + 0xd2], 1
jne 0x4a6c14
mov ecx, dword [esp + 0xc8]
xor eax, eax
imul ecx, dword [esp + 0xcc]
mov al, byte [esi]
mov edi, dword [esp + 0xe8]
mov dl, al
mov esi, ecx
mov dh, dl
mov eax, edx
shl eax, 0x10
mov ax, dx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x4a6ca6
mov ecx, dword [esp + 0xc8]
mov eax, dword [esp + 0xe8]
test ecx, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0xc], 0
jle 0x4a6ca6
mov edi, dword [esp + 0xd2]
mov esi, dword [esp + 0xc4]
xor edx, edx
test esi, esi
jle 0x4a6c85
mov ecx, edi
and ecx, 0xffff
mov esi, dword [ebp + 0x18]
mov ebx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0xd2]
mov esi, dword [esp + 0xc4]
mov ecx, edi
and ecx, 0xffff
add eax, ecx
inc edx
cmp edx, esi
jl 0x4a6c4e
mov eax, dword [esp + 0x34]
mov ebx, dword [ebp + 8]
mov ecx, dword [esp + 0xcc]
mov edx, dword [esp + 0xc8]
add eax, ecx
mov ecx, dword [esp + 0xc]
inc ecx
mov dword [esp + 0x34], eax
cmp ecx, edx
mov dword [esp + 0xc], ecx
jl 0x4a6c40
mov ax, word [ebx + 0x12]
mov cx, word [ebx + 0x1c]
mov dx, word [ebx + 0x1e]
cmp word [ebx + 0xc], 1
mov word [esp + 0xd6], ax
mov eax, dword [ebx + 0x14]
mov word [esp + 0xe0], cx
mov ecx, dword [ebx + 0x18]
mov word [esp + 0xe2], dx
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], ecx
jne 0x4a6edb
fld qword [ebp + 0x10]
fmul qword [0x4efac8]
mov esi, dword [ebx + 0x24]
mov edi, dword [esp + 0xe8]
fld st(0)
fsin
fstp qword [esp + 0x90]
fcos
fstp qword [esp + 0x80]
fld qword [0x4dd198]
fsub qword [esp + 0x80]
fild dword [ebx]
fild dword [ebx + 4]
fld st(0)
fmul qword [esp + 0x90]
fld st(2)
fmul st(4)
faddp st(1)
fmul qword [0x4dd030]
fstp qword [esp + 0x28]
fmul st(2)
fmul qword [0x4dd030]
fxch st(1)
fmul qword [esp + 0x90]
fmul qword [0x4dd030]
fsubp st(1)
fstp qword [esp + 0x20]
fstp st(0)
fld qword [esp + 0x38]
fadd qword [0x4dd030]
fst qword [esp + 0x18]
fld qword [esp + 0x10]
fsub qword [0x4dd030]
fstp qword [esp + 0xa0]
fcomp qword [esp + 0xa0]
fnstsw ax
test ah, 0x41
je 0x4a70e5
lea edx, [esp + 0xb8]
lea eax, [esp + 0xa8]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x44]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
call fcn.004a7130
fld qword [esp + 0x2c]
fmul qword [esp + 0xa4]
mov ecx, dword [esp + 0xbc]
mov edx, dword [esp + 0xc0]
add esp, 0x14
mov dword [esp + 0x10], ecx
fsubr qword [esp + 0x28]
mov dword [esp + 0x14], edx
fstp qword [esp + 0x98]
fld qword [esp + 0x18]
fmul qword [esp + 0x80]
fadd qword [esp + 0x20]
fstp qword [esp + 0xb0]
fld qword [esp + 0xa8]
fcomp qword [esp + 0xb8]
fnstsw ax
test ah, 0x41
je 0x4a6eb6
fld qword [esp + 0x18]
fsub qword [esp + 0x38]
call fcn.004b1b34
mov dword [esp + 0xc], eax
fld qword [esp + 0x10]
fmul qword [esp + 0x80]
fadd qword [esp + 0x98]
fadd qword [0x4dd030]
call fcn.004b1b34
fld qword [esp + 0x10]
fmul qword [esp + 0x90]
push eax
fadd qword [esp + 0xb4]
fadd qword [0x4dd030]
call fcn.004b1b34
imul eax, dword [ebx + 8]
add eax, esi
push eax
call fcn.004adf20
fld qword [esp + 0x18]
fsub qword [esp + 0x90]
mov byte [esp + 0x3c], al
mov eax, dword [esp + 0x3c]
push eax
call fcn.004b1b34
mov ecx, dword [esp + 0x18]
push eax
imul ecx, dword [esp + 0xdc]
add ecx, edi
push ecx
call fcn.004adf50
fld qword [esp + 0x24]
fadd qword [0x4dd198]
add esp, 0x14
fst qword [esp + 0x10]
fcomp qword [esp + 0xb8]
fnstsw ax
test ah, 0x41
jne 0x4a6e1e
fld qword [esp + 0x18]
fadd qword [0x4dd198]
fst qword [esp + 0x18]
fcomp qword [esp + 0xa0]
fnstsw ax
test ah, 0x41
jne 0x4a6d8b
jmp 0x4a70e5
fld qword [ebp + 0x10]
fmul qword [0x4efac8]
mov eax, dword [esp + 0xe8]
mov edx, dword [ebx + 0x24]
mov dword [esp + 0x34], eax
xor edi, edi
fld st(0)
fsin
mov di, word [ebx + 0xe]
mov dword [esp + 0xec], edx
fstp qword [esp + 0x90]
fcos
fstp qword [esp + 0x80]
fld qword [0x4dd198]
fsub qword [esp + 0x80]
fild dword [ebx]
fild dword [ebx + 4]
fld st(0)
fmul qword [esp + 0x90]
fld st(2)
fmul st(4)
faddp st(1)
fmul qword [0x4dd030]
fstp qword [esp + 0x28]
fmul st(2)
fmul qword [0x4dd030]
fxch st(1)
fmul qword [esp + 0x90]
fmul qword [0x4dd030]
fsubp st(1)
fstp qword [esp + 0x20]
fstp st(0)
fld qword [esp + 0x38]
fadd qword [0x4dd030]
fst qword [esp + 0x18]
fld qword [esp + 0x10]
fsub qword [0x4dd030]
fstp qword [esp + 0xa0]
fcomp qword [esp + 0xa0]
fnstsw ax
test ah, 0x41
je 0x4a70d0
lea ecx, [esp + 0xb8]
lea edx, [esp + 0xa8]
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x44]
push edx
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
call fcn.004a7130
fld qword [esp + 0x2c]
fmul qword [esp + 0xa4]
add esp, 0x14
fsubr qword [esp + 0x28]
fstp qword [esp + 0x98]
fld qword [esp + 0x18]
fmul qword [esp + 0x80]
fadd qword [esp + 0x20]
fstp qword [esp + 0xb0]
fld qword [esp + 0xa8]
fld qword [esp + 0xa8]
fcomp qword [esp + 0xb8]
fnstsw ax
test ah, 0x41
je 0x4a70ae
fld qword [esp + 0x18]
fsub qword [esp + 0x38]
call fcn.004b1b34
mov dword [esp + 0xc], eax
fld st(0)
fmul qword [esp + 0x90]
fadd qword [esp + 0xb0]
fadd qword [0x4dd030]
call fcn.004b1b34
fld st(0)
fmul qword [esp + 0x80]
mov esi, eax
imul esi, dword [ebx + 8]
fadd qword [esp + 0x98]
fadd qword [0x4dd030]
call fcn.004b1b34
mov ecx, esi
mov esi, eax
mov eax, dword [esp + 0xec]
imul esi, edi
fld st(0)
fsub qword [esp + 0x88]
add eax, ecx
add esi, eax
call fcn.004b1b34
mov edx, eax
mov eax, dword [esp + 0xc]
imul eax, dword [esp + 0xcc]
imul edx, edi
mov ecx, dword [esp + 0x34]
add ecx, edx
add eax, ecx
test edi, edi
jle 0x4a7096
mov ecx, edi
mov dl, byte [esi]
mov byte [eax], dl
inc eax
inc esi
dec ecx
jne 0x4a708d
fadd qword [0x4dd198]
fcom qword [esp + 0xb8]
fnstsw ax
test ah, 0x41
jne 0x4a7012
fstp st(0)
fld qword [esp + 0x18]
fadd qword [0x4dd198]
fst qword [esp + 0x18]
fcomp qword [esp + 0xa0]
fnstsw ax
test ah, 0x41
jne 0x4a6f8e
mov esi, dword [ebx + 0x20]
test esi, esi
je 0x4a70e5
mov edi, dword [esp + 0xe4]
mov ecx, 0xc0
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x4a710f
push ebx
call fcn.00404e40
mov ecx, 0xa
lea esi, [esp + 0xc8]
mov edi, ebx
add esp, 4
rep movsd dword es:[edi], dword [esi]
xor ax, ax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0xa
lea esi, [esp + 0xc4]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
xor ax, ax
pop ebx
mov esp, ebp
pop ebp
ret