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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x848bf8
push eax
mov eax, dword [0xc6a8a4]
mov dword fs:[0], esp
sub esp, 0xb4
push ebp
xor ebp, ebp
cmp eax, ebp
je 0x712e02
push ebx
mov bl, byte [esp + 0xa]
push esi
xor esi, esi
push edi
mov dword [0xc4b954], ebp
mov dword [0xc4b950], ebp
mov dword [esp + 0x38], esi
mov edi, 0xc6a8b8
lea esp, [esp]
mov al, byte [edi + 0x37]
test al, al
je 0x712d88
mov dword [esp + 0x94], ebp
mov dword [esp + 0x98], ebp
mov eax, dword [edi]
mov ecx, dword [edi - 4]
mov edx, dword [edi - 8]
push eax
push ecx
push edx
lea ecx, [esp + 0x60]
mov dword [esp + 0xd8], ebp
call fcn.0059af40
mov al, byte [edi + 0x30]
cmp al, 1
je 0x71289f
cmp al, 2
jne 0x7128ef
mov eax, dword [0xb7cb84]
mov ecx, dword [edi + 0x24]
add eax, esi
xor edx, edx
div ecx
test edx, edx
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
jge 0x7128bf
fadd dword [0x858c54]
test ecx, ecx
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
jge 0x7128d1
fadd dword [0x858c54]
fdivr dword [0x872828]
fmulp st(1)
fsin
fmul dword [0x858b1c]
fadd dword [esp + 0x8c]
fstp dword [esp + 0x8c]
push 1
push ebp
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0xa8]
push edx
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x98]
push ecx
call fcn.0070ce30
add esp, 0x18
test al, al
je 0x712d74
mov edx, dword [edi + 0x1c]
mov dword [esp + 0x3c], edx
fld dword [esp + 0x3c]
mov eax, dword [edi + 0x28]
fcos
mov dword [esp + 0x7c], eax
mov al, byte [edi + 0x30]
cmp al, 1
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x6c], 0
fmul dword [edi + 0x28]
fst dword [esp + 0x54]
fld dword [esp + 0x3c]
fsin
fld st(0)
fmul dword [edi + 0x28]
fchs
fstp dword [esp + 0x58]
fmul dword [edi + 0x28]
fstp dword [esp + 0x64]
fstp dword [esp + 0x68]
je 0x712985
cmp al, 2
jne 0x712d74
mov ecx, dword [0xc4b954]
mov ebp, dword [0xc4b950]
mov edx, 0x8d52f8
lea ecx, [ecx*2 + 0xc4b994]
lea ecx, [ecx]
xor eax, eax
mov ax, word [edx]
add ax, bp
mov word [ecx - 0x3c], ax
add edx, 4
add ecx, 2
add eax, 8
cmp edx, 0x8d5370
mov word [ecx - 2], ax
jl 0x7129a0
mov ecx, dword [edi + 0x24]
fild dword [edi + 0x24]
test ecx, ecx
jge 0x7129d1
fadd dword [0x858c54]
mov ebp, dword [0xb7cb84]
fdivr dword [0x872828]
mov eax, 0xaaaaaaab
mul ecx
mov eax, edx
shr eax, 2
add eax, esi
add eax, ebp
xor edx, edx
div ecx
test edx, edx
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
jge 0x712a03
fadd dword [0x858c54]
fmul st(1)
xor edx, edx
lea eax, [esi + ebp]
div ecx
fsin
test edx, edx
mov dword [esp + 0x18], edx
fchs
fstp dword [esp + 0x14]
fild dword [esp + 0x18]
jge 0x712a26
fadd dword [0x858c54]
fmulp st(1)
fsin
fchs
fld dword [0x858624]
fcomp dword [edi + 0x28]
fnstsw ax
test ah, 0x41
jne 0x712a44
fld dword [0x858624]
jmp 0x712a47
fld dword [edi + 0x28]
fld dword [esp + 0x14]
fdiv st(1)
fstp dword [esp + 0x14]
fstp st(0)
fld dword [0x858624]
fcomp dword [edi + 0x28]
fnstsw ax
test ah, 0x41
jne 0x712a6b
fld dword [0x858624]
jmp 0x712a6e
fld dword [edi + 0x28]
fdivp st(1)
mov eax, dword [0xb6f03c]
test eax, eax
fld dword [esp + 0x14]
fcos
fmul dword [0x858b8c]
fstp dword [esp + 0x34]
fld dword [esp + 0x14]
fsin
fmul dword [0x858b8c]
fstp dword [esp + 0x14]
fld st(0)
fcos
fmul dword [0x858b8c]
fstp dword [esp + 0x44]
fsin
fmul dword [0x858b8c]
fstp dword [esp + 0x48]
je 0x712ab8
add eax, 0x30
jmp 0x712abd
mov eax, 0xb6f02c
fld dword [edi]
mov ebp, 0xff
fsub dword [eax + 8]
fld dword [edi - 4]
fsub dword [eax + 4]
fld dword [edi - 8]
fsub dword [eax]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fstp st(3)
fstp st(0)
fstp st(0)
fsqrt
fld dword [edi + 0x2c]
fmul dword [0x858cb0]
fld st(1)
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x712b3d
fxch st(1)
fsub st(1)
fld dword [edi + 0x2c]
fmul dword [0x858c24]
fdivp st(1)
fsubr dword [0x858624]
fxch st(1)
fstp st(0)
fld dword [0x858b50]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x712b2e
fstp st(0)
fld dword [0x858b50]
fmul dword [0x859aac]
call fcn.00821b40
mov ebp, eax
jmp 0x712b41
fstp st(0)
fstp st(0)
xor esi, esi
shl ebp, 8
cmp esi, 7
ja case.default.0x712b4f
jmp dword [esi*4 + 0x712e18]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
jmp 0x712b93
mov bl, byte [edi + 0x31]
mov al, byte [edi + 0x32]
mov cl, byte [edi + 0x33]
mov dword [esp + 0x1c], 0x3dcccccd
mov dword [esp + 0x24], 0
jmp 0x712bc7
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], eax
mov cl, byte [edi + 0x32]
mov dl, byte [edi + 0x33]
mov bl, byte [edi + 0x31]
mov byte [esp + 0x13], cl
mov byte [esp + 0x12], dl
jmp case.default.0x712b4f
fld dword [esp + 0x44]
mov bl, byte [edi + 0x34]
fadd dword [esp + 0x34]
mov al, byte [edi + 0x35]
mov cl, byte [edi + 0x36]
fstp dword [esp + 0x1c]
fld dword [esp + 0x48]
fadd dword [esp + 0x14]
fstp dword [esp + 0x24]
mov byte [esp + 0x13], al
mov byte [esp + 0x12], cl
fld dword [esi*4 + 0x8d52d8]
lea edx, [esp + 0x1c]
push edx
fstp dword [esp + 0x24]
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0xc0]
push ecx
call fcn.0059c890
fld dword [esp + 0x28]
mov ecx, dword [eax + 4]
fchs
mov edx, dword [eax]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], edx
mov edx, dword [eax + 8]
fstp dword [esp + 0x28]
mov eax, dword [0xc4b950]
movzx ecx, bl
movzx ebx, byte [esp + 0x1e]
mov dword [esp + 0x58], ecx
or ecx, ebp
mov dword [esp + 0x3c], edx
movzx edx, byte [esp + 0x1f]
shl ecx, 8
or ecx, edx
add eax, esi
shl ecx, 8
or ecx, ebx
lea eax, [eax + eax*8]
shl eax, 2
mov dword [eax + 0xc4d970], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 0xc4d958], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x38]
mov dword [eax + 0xc4d95c], edx
mov edx, dword [esi*4 + 0x8d52b8]
mov dword [eax + 0xc4d960], ecx
mov ecx, dword [esi*4 + 0x8d5298]
mov dword [eax + 0xc4d974], edx
mov dword [eax + 0xc4d978], ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0xc0]
push ecx
mov dword [esp + 0x30], ebx
call fcn.0059c890
mov edx, dword [eax]
fild dword [esp + 0x64]
mov ecx, dword [eax + 4]
mov dword [esp + 0x40], edx
mov edx, dword [eax + 8]
fmul dword [0x858c98]
add esp, 0x18
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
call fcn.00821b40
fild dword [esp + 0x40]
mov bl, al
fmul dword [0x858c98]
call fcn.00821b40
fild dword [esp + 0x18]
mov byte [esp + 0x13], al
fmul dword [0x858c98]
call fcn.00821b40
movzx edx, byte [esp + 0x13]
mov byte [esp + 0x12], al
mov eax, dword [0xc4b950]
movzx ecx, bl
or ecx, ebp
add eax, esi
shl ecx, 8
lea eax, [eax + eax*8]
or ecx, edx
movzx edx, byte [esp + 0x12]
shl eax, 2
shl ecx, 8
or ecx, edx
mov edx, dword [esp + 0x2c]
mov dword [eax + 0xc4da90], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 0xc4da78], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 0xc4da7c], edx
mov edx, dword [esi*4 + 0x8d52b8]
mov dword [eax + 0xc4da80], ecx
mov ecx, dword [esi*4 + 0x8d5298]
inc esi
cmp esi, 8
mov dword [eax + 0xc4da94], edx
mov dword [eax + 0xc4da98], ecx
jl 0x712b46
mov ecx, dword [0xc4b954]
mov eax, dword [0xc4b950]
mov esi, dword [esp + 0x38]
add ecx, 0x3c
add eax, 0x10
mov dword [0xc4b954], ecx
mov dword [0xc4b950], eax
xor ebp, ebp
lea ecx, [esp + 0x54]
mov dword [esp + 0xcc], 0xffffffff
call fcn.0059acd0
add edi, 0x44
add esi, 0x64
cmp edi, 0xc6aa50
mov dword [esp + 0x38], esi
jl 0x712860
cmp dword [0xc4b954], ebp
pop edi
pop esi
pop ebx
je 0x712e02
mov edx, dword [0xc97b24]
push 5
push 0xa
call dword [edx + 0x20]
mov eax, dword [0xc97b24]
push 6
push 0xb
call dword [eax + 0x20]
mov ecx, dword [0xc97b24]
push 3
push 2
call dword [ecx + 0x20]
mov edx, dword [0xc97b24]
push ebp
push 0xe
call dword [edx + 0x20]
mov eax, dword [0xc97b24]
push 1
push 0xc
call dword [eax + 0x20]
mov ecx, dword [0xc6aa7c]
mov edx, dword [ecx]
mov eax, dword [0xc97b24]
push edx
push 1
call dword [eax + 0x20]
add esp, 0x30
call fcn.00722150
mov ecx, dword [esp + 0xb8]
pop ebp
mov dword fs:[0], ecx
add esp, 0xc0
ret