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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
test edx, edx
je 0x4b1ae2
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4b1ae2
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4b1ae2
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x4b1ae2
cmp word [ecx + 0xe], 0x18
jne 0x4b1ae2
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
lea eax, [eax + eax*2]
mov ecx, 0x3e8
lea ebx, [eax*8 + 0x1f]
xor eax, eax
mov ax, word [edx + 0xe]
imul eax, dword [edx + 4]
add eax, 0x1f
xor edx, edx
sar eax, 3
and al, 0xfc
sar ebx, 3
mov dword [esp + 0x9c], eax
mov eax, dword [ebp + 0x18]
and ebx, 0xfffffffc
cmp eax, edx
mov dword [esp + 0x84], ebx
jge 0x4b14d7
mov dword [ebp + 0x18], edx
jmp 0x4b14de
cmp eax, ecx
jle 0x4b14de
mov dword [ebp + 0x18], ecx
mov eax, dword [ebp + 0x1c]
cmp eax, edx
jge 0x4b14ea
mov dword [ebp + 0x1c], edx
jmp 0x4b14f1
cmp eax, ecx
jle 0x4b14f1
mov dword [ebp + 0x1c], ecx
mov eax, dword [ebp + 0x20]
cmp eax, edx
jge 0x4b14fd
mov dword [ebp + 0x20], edx
jmp 0x4b1504
cmp eax, ecx
jle 0x4b1504
mov dword [ebp + 0x20], ecx
mov eax, dword [ebp + 0x24]
cmp eax, 0xffffff9c
jge 0x4b1515
mov dword [ebp + 0x24], 0xffffff9c
jmp 0x4b1521
cmp eax, 0x64
jle 0x4b1521
mov dword [ebp + 0x24], 0x64
fild dword [ebp + 0x18]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], 0
mov ecx, eax
fmul qword [0x539b80]
imul ecx, eax
fimul dword [esp + 0x1c]
fstp qword [esp + 0xb8]
fild dword [ebp + 0x1c]
mov eax, dword [esp + 0x1c]
mov edx, eax
fmul qword [0x539b80]
imul edx, eax
fimul dword [esp + 0x18]
fstp qword [esp + 0xb0]
add ecx, edx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x18]
fild dword [esp + 0x30]
fsqrt
test ecx, ecx
fild dword [ebp + 0x20]
fmul qword [0x539b80]
fmulp st(1)
fstp qword [esp + 0x88]
fild dword [ebp + 0x24]
fmul qword [0x539b08]
fabs
fst qword [esp + 0xa0]
fmul qword [esp + 0x88]
fadd qword [0x534388]
fldln2
fxch st(1)
fyl2x
fdivr qword [esp + 0x88]
fstp qword [esp + 0xa8]
jle 0x4b1ad6
lea ecx, [esi + 1]
mov dword [esp + 0x30], edi
mov dword [esp + 0x74], ecx
jmp 0x4b15d1
mov eax, dword [esp + 0x1c]
mov esi, edi
mov dword [esp + 0x60], 0
test eax, eax
mov dword [esp + 0x70], esi
jle 0x4b1a8f
fild dword [esp + 0x34]
mov dword [esp + 0x64], ecx
fst qword [esp + 0x78]
fsub qword [esp + 0xb0]
fst qword [esp + 0x90]
fmul qword [esp + 0x90]
fstp qword [esp + 0xc8]
fild dword [esp + 0x60]
fst qword [esp + 0x10]
fsub qword [esp + 0xb8]
fst qword [esp + 0x28]
fmul qword [esp + 0x28]
fadd qword [esp + 0xc8]
fsqrt
fst qword [esp + 0x68]
fcomp qword [esp + 0x88]
fnstsw ax
test ah, 1
je 0x4b1a58
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x4b1a58
fld qword [esp + 0x90]
fld qword [esp + 0x28]
fpatan
xor edi, edi
test eax, eax
fstp qword [esp + 0xc0]
jge 0x4b168a
fld qword [esp + 0x68]
fmul qword [esp + 0xa0]
fadd qword [0x534388]
fldln2
fxch st(1)
fyl2x
fmul qword [esp + 0xa8]
jmp 0x4b16ad
fld qword [0x539b98]
fld qword [esp + 0x68]
fdiv qword [esp + 0xa8]
call sub.MSVCRT.dll__CIpow
fsub qword [0x534388]
fdiv qword [esp + 0xa0]
mov eax, dword [ebp + 0x28]
fstp qword [esp + 0x68]
test eax, eax
je 0x4b1754
fld qword [esp + 0xc0]
fcos
fmul qword [esp + 0x68]
fadd qword [esp + 0xb8]
fstp qword [esp + 0x20]
fild dword [esp + 0x1c]
fld qword [esp + 0x20]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x4b16f6
fld qword [esp + 0x20]
fcomp qword [0x534398]
fnstsw ax
test ah, 1
je 0x4b1714
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x4b170f
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
jmp 0x4b1714
mov edi, 1
fld qword [esp + 0x20]
fcomp st(1)
fnstsw ax
test ah, 1
fstp st(0)
je 0x4b1734
fld qword [esp + 0x20]
fcomp qword [0x534398]
fnstsw ax
test ah, 1
je 0x4b1764
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x4b174d
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
jmp 0x4b1764
mov edi, 1
jmp 0x4b1764
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0xd0]
push eax
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_modf]
mov eax, dword [ebp + 0x2c]
add esp, 0xc
fstp qword [esp + 0x28]
test eax, eax
je 0x4b17e2
fld qword [esp + 0xc0]
fsin
fmul qword [esp + 0x68]
fadd qword [esp + 0xb0]
fstp qword [esp + 0x38]
fild dword [esp + 0x18]
fcomp qword [esp + 0x38]
fnstsw ax
test ah, 0x41
jne 0x4b17c2
fld qword [esp + 0x38]
fcomp qword [0x534398]
fnstsw ax
test ah, 1
je 0x4b17f2
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x4b17db
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
jmp 0x4b17f2
mov edi, 1
jmp 0x4b17f2
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0xd0]
push ecx
push edx
push eax
call dword [sym.imp.MSVCRT.dll_modf]
add esp, 0xc
test edi, edi
jne 0x4b1a3e
fld qword [esp + 0x38]
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x20]
mov edi, eax
mov esi, edi
imul esi, ebx
call sub.MSVCRT.dll__ftol
mov ebx, dword [ebp + 0x14]
lea edx, [eax + eax*2]
lea ecx, [edx + esi]
add ecx, ebx
mov bl, byte [ecx + 2]
mov byte [esp + 0x52], bl
mov bl, byte [ecx + 1]
mov cl, byte [ecx]
mov byte [esp + 0x51], bl
mov byte [esp + 0x50], cl
lea ecx, [eax + 1]
test ecx, ecx
jl 0x4b185a
cmp ecx, dword [esp + 0x1c]
jl 0x4b185c
mov ecx, eax
lea esi, [esi + ecx*2]
add ecx, esi
mov esi, dword [ebp + 0x14]
add ecx, esi
lea esi, [edi + 1]
mov bl, byte [ecx + 2]
mov byte [esp + 0x42], bl
mov bl, byte [ecx + 1]
mov cl, byte [ecx]
mov byte [esp + 0x41], bl
mov byte [esp + 0x40], cl
mov ecx, esi
test ecx, ecx
jl 0x4b1889
cmp ecx, dword [esp + 0x18]
jl 0x4b188b
mov ecx, edi
mov ebx, dword [esp + 0x84]
imul ecx, ebx
add ecx, edx
mov edx, dword [ebp + 0x14]
add ecx, edx
mov dl, byte [ecx + 2]
mov byte [esp + 0x5a], dl
mov dl, byte [ecx + 1]
mov cl, byte [ecx]
mov byte [esp + 0x59], dl
mov byte [esp + 0x58], cl
mov ecx, esi
test ecx, ecx
lea edx, [eax + 1]
jl 0x4b18bf
cmp ecx, dword [esp + 0x18]
jl 0x4b18c1
mov ecx, edi
test edx, edx
jl 0x4b18cb
cmp edx, dword [esp + 0x1c]
jl 0x4b18cd
mov edx, eax
imul ecx, ebx
fld qword [0x534388]
fsub qword [esp + 0x28]
fld qword [0x534388]
fsub st(2)
lea eax, [edx + edx*2]
mov edx, dword [ebp + 0x14]
add edx, ecx
mov cl, byte [eax + edx + 2]
add eax, edx
mov byte [esp + 0x4a], cl
mov ecx, dword [esp + 0x5a]
mov dl, byte [eax + 1]
and ecx, 0xff
mov byte [esp + 0x49], dl
mov edx, dword [esp + 0x4a]
mov dword [esp + 0x10], ecx
and edx, 0xff
fild dword [esp + 0x10]
mov dword [esp + 0x10], edx
mov al, byte [eax]
mov ecx, dword [esp + 0x42]
mov byte [esp + 0x48], al
fmul st(2)
fild dword [esp + 0x10]
mov eax, dword [esp + 0x52]
and ecx, 0xff
fmul qword [esp + 0x28]
and eax, 0xff
mov dword [esp + 0x10], eax
faddp st(1)
fmul st(3)
fild dword [esp + 0x10]
mov dword [esp + 0x10], ecx
fmul st(3)
fild dword [esp + 0x10]
fmul qword [esp + 0x28]
faddp st(1)
fmul st(2)
faddp st(1)
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x59]
mov esi, dword [esp + 0x70]
and edx, 0xff
mov ecx, dword [esp + 0x51]
mov byte [esi + 2], al
mov eax, dword [esp + 0x49]
mov dword [esp + 0x10], edx
and eax, 0xff
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x41]
and ecx, 0xff
and edx, 0xff
fmul st(2)
fild dword [esp + 0x10]
mov dword [esp + 0x10], ecx
fmul qword [esp + 0x28]
faddp st(1)
fmul st(3)
fild dword [esp + 0x10]
mov dword [esp + 0x10], edx
fmul st(3)
fild dword [esp + 0x10]
fmul qword [esp + 0x28]
faddp st(1)
fmul st(2)
faddp st(1)
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x48]
mov byte [esi + 1], al
mov eax, dword [esp + 0x58]
and ecx, 0xff
and eax, 0xff
mov edx, dword [esp + 0x50]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
fild dword [esp + 0x10]
mov dword [esp + 0x10], ecx
and edx, 0xff
and eax, 0xff
fmul st(2)
fild dword [esp + 0x10]
mov dword [esp + 0x10], edx
fmul qword [esp + 0x28]
faddp st(1)
fmul st(3)
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
fmul st(3)
fild dword [esp + 0x10]
fmul qword [esp + 0x28]
faddp st(1)
fmul st(2)
faddp st(1)
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x64]
mov byte [esi], al
fstp st(0)
fstp st(0)
fstp st(0)
jmp 0x4b1a68
mov eax, dword [ebp + 0x34]
xor ecx, ecx
mov byte [esi + 2], al
mov cl, ah
shr eax, 0x10
mov byte [esi + 1], cl
mov ecx, dword [esp + 0x64]
fstp st(0)
mov byte [esi], al
jmp 0x4b1a68
mov dl, byte [ecx + 1]
mov byte [esi + 2], dl
mov al, byte [ecx]
mov byte [esi + 1], al
mov dl, byte [ecx - 1]
mov byte [esi], dl
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x1c]
add esi, 3
inc eax
add ecx, 3
cmp eax, edx
mov dword [esp + 0x70], esi
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
jl 0x4b160f
mov edi, dword [esp + 0x30]
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x4b1aaa
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
push ecx
mov ecx, dword [ebp + 0x3c]
push edx
push ecx
call eax
test eax, eax
je 0x4b1ae2
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x74]
mov esi, dword [esp + 0x9c]
mov edx, dword [esp + 0x18]
inc eax
add ecx, ebx
add edi, esi
cmp eax, edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x30], edi
jl 0x4b15cd
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret