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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48ac5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
push edi
jne 0x40fc36
xor al, al
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
fld qword [0x4917f8]
call fcn.0046b650
fmul dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
fmul dword [0x4917f4]
mov dword [esp + 0x58], eax
dec eax
sub esp, 8
fld st(0)
mov dword [esp + 0x24], ecx
fcos
mov dword [esp + 0x28], eax
fstp qword [esp + 0x58]
fsin
fstp qword [esp + 0x50]
fild dword [esp + 0x60]
fstp qword [esp + 0x30]
fld qword [esp + 0x50]
fmul qword [0x4917f8]
fstp qword [esp + 0x38]
fld qword [esp + 0x30]
fmul qword [esp + 0x58]
fsub qword [esp + 0x38]
fstp qword [esp]
call fcn.0046b3a0
call fcn.0046b518
fld qword [esp + 0x58]
fmul qword [0x4917f8]
mov edi, eax
fstp qword [esp + 0x48]
fld qword [esp + 0x30]
fmul qword [esp + 0x50]
fadd qword [esp + 0x48]
fstp qword [esp]
call fcn.0046b3a0
call fcn.0046b518
fild dword [esp + 0x24]
mov dword [esp + 0x64], eax
fst qword [esp + 0x30]
fmul qword [esp + 0x50]
fstp qword [esp + 0x68]
fld qword [esp + 0x48]
fsub qword [esp + 0x68]
fstp qword [esp]
call fcn.0046b3a0
call fcn.0046b518
fld qword [esp + 0x30]
fmul qword [esp + 0x58]
mov ebx, eax
fst qword [esp + 0x48]
fadd qword [esp + 0x38]
fstp qword [esp]
call fcn.0046b3a0
call fcn.0046b518
fild dword [esp + 0x28]
mov dword [esp + 0x3c], eax
fst qword [esp + 0x30]
fmul qword [esp + 0x58]
fsub qword [esp + 0x68]
fstp qword [esp]
call fcn.0046b3a0
call fcn.0046b518
fld qword [esp + 0x30]
fmul qword [esp + 0x50]
mov dword [esp + 0x40], eax
fadd qword [esp + 0x48]
fstp qword [esp]
call fcn.0046b3a0
add esp, 8
call fcn.0046b518
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x3c], eax
xor eax, eax
test edi, edi
setg al
dec eax
and eax, edi
cmp ebx, ecx
mov edx, ebx
jl 0x40fd69
mov edx, ecx
cmp eax, edx
jge 0x40fd7d
xor edx, edx
test edi, edi
setg dl
dec edx
and edx, edi
mov dword [esp + 0x20], edx
jmp 0x40fd89
cmp ebx, ecx
mov dword [esp + 0x20], ebx
jl 0x40fd89
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x3c]
xor eax, eax
test ecx, ecx
setg al
dec eax
and eax, ecx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x34]
cmp eax, edx
jl 0x40fda9
mov eax, edx
cmp dword [esp + 0x58], eax
jge 0x40fdbb
xor edx, edx
test ecx, ecx
setg dl
dec edx
and edx, ecx
jmp 0x40fdcb
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
cmp eax, edx
mov dword [esp + 0x24], eax
jl 0x40fdcf
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x38]
xor edx, edx
test edi, edi
setl dl
dec edx
and edx, edi
cmp ebx, eax
jle 0x40fde3
mov eax, ebx
cmp edx, eax
jle 0x40fdf3
xor edx, edx
test edi, edi
setl dl
dec edx
and edx, edi
jmp 0x40fdfd
mov edx, dword [esp + 0x38]
cmp ebx, edx
jle 0x40fdfd
mov edx, ebx
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x3c]
xor ebx, ebx
test ecx, ecx
setl bl
dec ebx
and ebx, ecx
cmp eax, edi
jle 0x40fe15
mov edi, eax
cmp ebx, edi
jle 0x40fe25
xor eax, eax
test ecx, ecx
setl al
dec eax
and eax, ecx
jmp 0x40fe2f
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jg 0x40fe2f
mov eax, ecx
lea ebx, [eax + 2]
mov eax, dword [esp + 0x20]
lea edi, [edx + 2]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x34], ebx
sub ebx, edx
mov dword [esp + 0x60], edi
push 0
lea ecx, [esp + 0x74]
sub edi, eax
mov dword [esp + 0x5c], ebx
call fcn.0040f200
push esi
lea ecx, [esp + 0x74]
mov dword [esp + 0x228], 0
call fcn.0040ece0
mov eax, dword [esi + 0x40]
mov cx, word [esi + 0x16]
push eax
movzx eax, cx
push eax
push ebx
push edi
lea ecx, [esp + 0x80]
call fcn.0040f220
push 0x100
mov ecx, esi
call fcn.00424f40
push eax
lea ecx, [esp + 0x78]
call fcn.00425410
mov eax, dword [esi + 0x1a0]
xor edi, edi
cmp eax, edi
je 0x40febb
lea ecx, [esp + 0x70]
call fcn.00425790
lea ecx, [esp + 0x70]
call fcn.00425540
mov eax, dword [esi + 0x28]
mov ecx, dword [esp + 0x34]
cmp eax, edi
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], eax
jne 0x40ffec
cmp eax, ecx
jg 0x4100ea
xor eax, eax
mov dword [esp + 0x1c], eax
cdq
idiv ebx
mov dword [esi + 0x144], eax
mov eax, dword [esi + 0x148]
test eax, eax
jne 0x4100ea
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x60]
xor edi, edi
cmp eax, ecx
mov dword [esp + 0x14], eax
jg 0x40ffbe
fild dword [esp + 0x18]
fld qword [esp + 0x48]
fmul st(1)
fstp qword [esp + 0x40]
fmul qword [esp + 0x50]
fstp qword [esp + 0x28]
jmp 0x40ff30
fild dword [esp + 0x14]
fld qword [esp + 0x50]
fmul st(1)
fadd qword [esp + 0x40]
fsub qword [0x4917a0]
call fcn.0046b518
fmul qword [esp + 0x48]
mov ebx, eax
fsubr qword [esp + 0x28]
fsub qword [0x4917a0]
call fcn.0046b518
push eax
push ebx
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
mov dword [esp + 0x78], eax
call fcn.004250e0
mov edx, dword [eax]
mov eax, dword [esp + 0x10]
push 0
push edx
push eax
push edi
lea ecx, [esp + 0x80]
call fcn.004254b0
mov ecx, dword [esp + 0x6c]
push ecx
push ebx
mov ecx, esi
call fcn.004255e0
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x70]
push eax
push edx
push edi
call fcn.004255a0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x60]
inc eax
inc edi
cmp eax, ecx
mov dword [esp + 0x14], eax
jle 0x40ff30
mov ebx, dword [esp + 0x58]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x34]
inc ecx
inc eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
add eax, 0x64
cmp ecx, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jle 0x40fee4
jmp 0x4100ea
cmp eax, ecx
jg 0x4100ea
xor eax, eax
mov dword [esp + 0x1c], eax
lea ebx, [ebx]
cdq
idiv ebx
mov dword [esi + 0x144], eax
mov eax, dword [esi + 0x148]
test eax, eax
jne 0x4100ea
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x60]
xor edi, edi
cmp eax, ecx
mov dword [esp + 0x14], eax
jg 0x4100c1
fild dword [esp + 0x18]
fld qword [esp + 0x48]
fmul st(1)
fstp qword [esp + 0x40]
fmul qword [esp + 0x50]
fstp qword [esp + 0x28]
fild dword [esp + 0x14]
fld qword [esp + 0x50]
fmul st(1)
fadd qword [esp + 0x40]
fsub qword [0x4917a0]
call fcn.0046b518
fmul qword [esp + 0x48]
mov ebx, eax
fsubr qword [esp + 0x28]
fsub qword [0x4917a0]
call fcn.0046b518
push eax
push ebx
mov ecx, esi
mov dword [esp + 0x74], eax
call fcn.00424fd0
lea ecx, [esp + 0x70]
push eax
mov eax, dword [esp + 0x14]
push eax
push edi
call fcn.004251f0
mov ecx, dword [esp + 0x6c]
push ecx
push ebx
mov ecx, esi
call fcn.004255e0
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x70]
push eax
push edx
push edi
call fcn.004255a0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x60]
inc eax
inc edi
cmp eax, ecx
mov dword [esp + 0x14], eax
jle 0x410043
mov ebx, dword [esp + 0x58]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x34]
inc ecx
inc eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
add eax, 0x64
cmp ecx, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jle 0x410000
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4100f8
lea eax, [esp + 0x70]
push eax
jmp 0x4100ff
lea ecx, [esp + 0x70]
push ecx
mov ecx, esi
call fcn.0040edb0
lea ecx, [esp + 0x70]
mov dword [esp + 0x224], 0xffffffff
mov dword [esp + 0x70], 0x491680
call fcn.0040ec30
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8