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

Disassembly:
sub esp, 0xe8
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x50], edi
mov eax, dword [edi + 0x74]
inc eax
and eax, 0x8000003f
jns 0x4645d0
dec eax
or eax, 0xffffffc0
inc eax
fld dword [esp + 0x104]
fmul dword [0x588f80]
mov dword [edi + 0x74], eax
fld st(0)
fadd dword [edi]
fcom dword [0x5884d0]
fnstsw ax
test ah, 1
jne 0x4645f7
fsub dword [0x5884d0]
fmul dword [str.a_v6]
call fcn.005755f0
fld dword [esp + 0x104]
fcos
mov ecx, dword [edi + 0x28]
mov dword [esp + 0x7c], 0
cdq
mov ebx, eax
mov dword [esp + 0x84], 0
xor ebx, edx
mov dword [esp + 0x88], 0
sub ebx, edx
mov dword [esp + 0x8c], 0x3f800000
mov dword [esp + 0x54], ebx
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xb4], 0x3f800000
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0x3f800000
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
mov dword [esp + 0xdc], 0
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], 0
mov dword [esp + 0xf0], 0
mov dword [esp + 0xf4], 0x3f800000
mov dword [esp + 0xac], ecx
fld dword [esp + 0x104]
fsin
fld st(1)
fstp dword [esp + 0x78]
fst dword [esp + 0x80]
fchs
fstp dword [esp + 0x98]
fstp dword [esp + 0xa0]
fld dword [edi]
fmul dword [0x588f78]
fst dword [esp + 0x1c]
fcos
fld dword [esp + 0x1c]
fsin
fld st(1)
fstp dword [esp + 0xb8]
fst dword [esp + 0xc0]
fchs
fstp dword [esp + 0xd8]
fstp dword [esp + 0xe0]
fcom qword [0x588cc0]
fnstsw ax
test ah, 0x41
jne 0x464771
fsub qword [0x588cc0]
fcom dword [0x588700]
fnstsw ax
test ah, 1
je 0x4647ce
xor eax, eax
mov edx, dword [edi + 0x24]
mov ax, word [edi + 0x20]
xor ecx, ecx
dec eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor eax, eax
mov ax, word [edi + 0x22]
mov edx, 1
fstp st(0)
fld dword [edi + 0x2c]
lea esi, [eax - 1]
mov dword [esp + 0x44], 0x41000000
mov dword [esp + 0x10], 0x41200000
mov dword [esp + 0x34], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], ecx
jmp 0x46490b
fcom dword [0x5884cc]
fnstsw ax
test ah, 1
je 0x46483c
xor eax, eax
xor edx, edx
mov ax, word [edi + 0x22]
mov dx, word [edi + 0x20]
fstp st(0)
lea esi, [eax - 1]
xor ecx, ecx
mov dword [esp + 0x10], esi
dec edx
fild dword [esp + 0x10]
mov dword [esp + 0x44], 0xc1000000
mov dword [esp + 0x10], 0x41200000
mov dword [esp + 0x40], edx
mov dword [esp + 0x34], 1
fmul dword [0x5885ec]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x14], ecx
fadd dword [edi + 0x24]
fstp dword [esp + 0x3c]
fld dword [edi + 0x2c]
jmp 0x46490b
fcomp dword [0x588ac0]
fnstsw ax
test ah, 1
je 0x4648aa
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 0x22]
mov cx, word [edi + 0x20]
dec ecx
xor esi, esi
lea edx, [eax - 1]
or ebp, 0xffffffff
mov dword [esp + 0x10], edx
mov dword [esp + 0x44], 0xc1000000
fild dword [esp + 0x10]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x40], esi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x2c], edx
fmul dword [0x5885ec]
mov dword [esp + 0x38], esi
mov dword [esp + 0x20], ebp
fadd dword [edi + 0x24]
fstp dword [esp + 0x3c]
fild dword [esp + 0x10]
mov dword [esp + 0x10], 0xc1200000
fmul dword [0x588320]
fadd dword [edi + 0x2c]
jmp 0x464900
mov eax, dword [edi + 0x24]
mov dword [esp + 0x44], 0x41000000
mov dword [esp + 0x3c], eax
xor eax, eax
mov ax, word [edi + 0x20]
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x20], 1
lea ecx, [eax - 1]
xor eax, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x40], eax
fild dword [esp + 0x10]
mov dword [esp + 0x2c], eax
mov ax, word [edi + 0x22]
mov dword [esp + 0x10], 0xc1200000
fmul dword [0x588320]
lea edx, [eax - 1]
mov dword [esp + 0x38], edx
fadd dword [edi + 0x2c]
mov edx, eax
imul edx, ecx
mov dword [esp + 0x14], edx
neg eax
mov dword [esp + 0x24], eax
lea eax, [eax + eax*4]
shl eax, 2
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x14]
fstp dword [esp + 0xb0]
add eax, ecx
lea eax, [eax + eax*4]
shl eax, 2
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xa8], edx
mov dword [esp + 0x28], eax
lea ecx, [ecx + ecx*4]
shl ecx, 2
mov dword [esp + 0x64], ecx
mov ebp, dword [esp + 0x28]
mov edx, dword [edi + 0x70]
add ebp, edx
mov ecx, dword [esp + 0x48]
xor esi, esi
lea eax, [esp + 0x78]
mov si, word [ebp + 6]
push eax
movsx edx, word [ebp + 0xe]
shl esi, 4
add esi, edx
mov edx, dword [esp + 0x18]
add ecx, edx
mov dword [esp + 0x34], ebp
shl esi, 3
push ecx
mov ecx, edi
mov dword [esp + 0x54], esi
call fcn.004644b0
movsx eax, byte [ebp + 0x12]
cmp eax, ebx
je 0x4649ab
movsx ecx, byte [ebp + 0x13]
cmp dword [edi + 0x74], ecx
jne 0x4649ab
mov byte [ebp + 0x12], bl
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xfc]
mov edx, dword [esp + 0xb0]
mov dword [esp + 0x74], eax
mov al, byte [ecx + 0x4afc]
mov dword [esp + 0x68], edx
test al, al
je 0x464a13
mov dword [esp + 0x18], 2
mov ebx, 0x65aa88
mov al, byte [ebx + 0x44]
test al, al
je 0x4649ff
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x74]
push edx
push eax
mov ecx, ebx
call fcn.00461c10
test al, al
jne 0x464c7d
mov edx, dword [esp + 0x18]
add ebx, 0x4c
inc edx
cmp ebx, 0x65aad4
mov dword [esp + 0x18], edx
jle 0x4649df
mov ecx, dword [esp + 0xfc]
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x18], edx
mov ecx, dword [edi + 0x70]
mov edx, dword [esp + 0x28]
xor eax, eax
mov ax, word [edx + ecx + 8]
mov dword [esp + 0x60], eax
movsx eax, byte [ebp + 0x12]
mov ecx, dword [eax*4 + 0x588f10]
mov ax, word [ebp + 0xe]
test ax, ax
mov dword [esp + 0x5c], ecx
je 0x464a5b
cmp ax, 7
je 0x464a5b
cmp ax, 0xf
jne 0x464b82
fld dword [esp + 0xb8]
fadd st(0), st(0)
xor edx, edx
xor eax, eax
mov ebx, 0x880
fadd dword [esp + 0xa8]
fstp dword [esp + 0xe8]
mov dx, word [ebp + 8]
mov ax, word [ebp + 6]
lea ecx, [eax + edx*8]
fld dword [ecx*4 + 0x588d48]
fstp dword [esp + 0xec]
fld dword [esp + 0xc0]
fadd st(0), st(0)
fadd dword [esp + 0xb0]
fstp dword [esp + 0xf0]
mov ecx, 0x6615f8
call fcn.00556e80
test eax, eax
mov dword [esp + 0x70], eax
je 0x464b73
mov ebp, 0x5a5128
lea esi, [eax + 8]
mov edi, dword [ebp]
mov eax, ebx
add eax, edi
lea edx, [eax + eax*2]
mov eax, dword [0x65abd4]
mov ecx, dword [eax + edx*8]
lea edi, [eax + edx*8]
mov dword [0x6d69d8], ecx
lea ecx, [esp + 0xb8]
mov edx, dword [edi + 4]
push ecx
mov dword [0x6d69dc], edx
mov eax, dword [edi + 8]
push 0x6d69d8
push 0x6d69c8
mov dword [0x6d69e0], eax
call fcn.00557260
mov edx, dword [0x6d69c8]
add ebp, 4
mov dword [esi - 4], edx
mov eax, dword [0x6d69cc]
mov dword [esi], eax
mov ecx, dword [0x6d69d0]
mov dword [esi + 4], ecx
mov edx, dword [edi + 0x10]
mov ecx, dword [esp + 0x18]
mov dword [esi + 0xc], edx
mov eax, dword [edi + 0x14]
mov dword [esi + 0x10], eax
mov dword [esi + 8], ecx
add esi, 0x18
cmp ebp, 0x5a5140
jl 0x464ac9
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x30]
xor edx, edx
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
mov ebp, dword [esp + 0x30]
mov byte [eax], 2
mov dx, word [ecx + 0x10]
mov ecx, dword [esp + 0x10c]
mov edx, dword [ecx + edx*4]
mov dword [eax + 0x94], edx
add ebx, 4
cmp ebx, 0x888
jl 0x464aab
movsx eax, byte [ebp + 0x12]
xor ecx, ecx
mov cl, byte [eax + 0x588f54]
lea ebx, [esi + ecx*4]
mov ecx, 0x6615f8
call fcn.00556e80
test eax, eax
mov dword [esp + 0x4c], eax
je 0x464c51
mov ebp, 0x5a5128
lea esi, [eax + 8]
mov edi, dword [ebp]
mov eax, ebx
add eax, edi
lea edx, [eax + eax*2]
mov eax, dword [0x65abd4]
mov ecx, dword [eax + edx*8]
lea edi, [eax + edx*8]
mov dword [0x6d69d8], ecx
lea ecx, [esp + 0x78]
mov edx, dword [edi + 4]
push ecx
mov dword [0x6d69dc], edx
mov eax, dword [edi + 8]
push 0x6d69d8
push 0x6d69c8
mov dword [0x6d69e0], eax
call fcn.00557260
mov edx, dword [0x6d69c8]
add ebp, 4
mov dword [esi - 4], edx
mov eax, dword [0x6d69cc]
mov dword [esi], eax
mov ecx, dword [0x6d69d0]
mov dword [esi + 4], ecx
mov edx, dword [edi + 0x10]
mov ecx, dword [esp + 0x18]
mov dword [esi + 0xc], edx
mov eax, dword [edi + 0x14]
mov dword [esi + 0x10], eax
mov dword [esi + 8], ecx
add esi, 0x18
cmp ebp, 0x5a5140
jl 0x464baf
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x50]
lea edx, [edx + eax*4]
add eax, edx
mov edx, dword [esp + 0x108]
mov byte [ecx], 1
mov eax, dword [edx + eax*4]
mov dword [ecx + 0x94], eax
mov ecx, 0x64a8e0
call fcn.00466eb0
test al, al
je 0x464cc0
mov ecx, dword [edi + 0x70]
mov edx, dword [esp + 0x28]
fld dword [esp + 0xac]
cmp word [edx + ecx + 8], 2
jne 0x464c97
fadd dword [0x5883d4]
jmp 0x464c9d
mov eax, dword [esp + 0x18]
lea ecx, [eax + eax*8]
lea edx, [eax + ecx*2]
mov eax, dword [edx*4 + 0x65aa14]
mov dword [esp + 0x18], eax
jmp 0x464a21
fadd dword [0x588320]
fstp dword [esp + 0x30]
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0xa8]
push eax
push ecx
push edx
mov ecx, 0x64a8e0
call fcn.00466ed0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x38]
cmp ecx, eax
je 0x464cff
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
fld dword [esp + 0xa8]
fadd dword [esp + 0x44]
mov ebx, dword [esp + 0x54]
add eax, edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x64]
add ecx, eax
fstp dword [esp + 0xa8]
mov dword [esp + 0x28], ecx
jmp 0x46495d
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x40]
cmp ecx, eax
je 0x464d4c
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x54]
fld dword [esp + 0xb0]
fadd dword [esp + 0x10]
add eax, esi
add edx, ecx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x6c]
fstp dword [esp + 0xb0]
add eax, edx
mov dword [esp + 0x1c], eax
jmp 0x464938
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe8
ret 0x14