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

Disassembly:
sub esp, 0x6c
push ebx
push ebp
mov ebx, ecx
mov ecx, dword [0x6840f8]
mov eax, dword [ecx + 0x10]
push esi
xor esi, esi
mov dword [esp + 0x24], eax
mov dword [esp + 0xc], esi
xor ebp, ebp
mov dword [esp + 0x2c], esi
call fcn.004be550
fst dword [esp + 0x28]
mov eax, dword [ebx + 0xc]
fstp dword [ebx + 0x1c]
cmp eax, esi
mov dword [ebx + 0x14], esi
mov dword [esp + 0x30], esi
jbe 0x4f39d3
push edi
mov dword [esp + 0x20], esi
jmp 0x4f33b0
xor esi, esi
jmp 0x4f33b0
cmp dword [esp + 0x30], esi
jne 0x4f39dd
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x20]
mov eax, dword [ecx + edx + 0xb0]
lea esi, [ecx + edx]
mov ecx, eax
shr ecx, 0x1e
xor edi, edi
cmp ecx, 1
je 0x4f33db
inc dword [esp + 0x10]
test ecx, ecx
jne 0x4f3964
inc ebp
test al, 2
mov dword [esp + 0x24], ebp
je 0x4f3459
fld dword [esi + 0x7c]
fld st(0)
fmul dword [esi + 0x58]
fstp dword [esi + 0x58]
fld st(0)
fmul dword [esi + 0x5c]
fstp dword [esi + 0x5c]
fmul dword [esi + 0x60]
fstp dword [esi + 0x60]
fld dword [ebx + 0x1c]
fmul dword [0x5eef5c]
fadd dword [esi + 0x5c]
fstp dword [esi + 0x5c]
fld dword [esi + 0x60]
fld dword [esi + 0x5c]
fld dword [esi + 0x58]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fst dword [esi + 0x7c]
fdivr dword [0x5f53f4]
fld st(0)
fmul dword [esi + 0x58]
fstp dword [esi + 0x58]
fld st(0)
fmul dword [esi + 0x5c]
fstp dword [esi + 0x5c]
fmul dword [esi + 0x60]
fstp dword [esi + 0x60]
jmp 0x4f35bb
test eax, 0x40000
je 0x4f35bb
push 0x40c90fdb
call fcn.004bd510
fstp dword [esp]
call fcn.004beac0
fstp dword [esp + 0x40]
push 0x40c90fdb
call fcn.004bd510
fstp dword [esp + 4]
add esp, 4
call fcn.004beac0
fsub dword [0x5da6ec]
push 0x40c90fdb
fstp dword [esp + 0x40]
call fcn.004bd510
add esp, 4
fstp dword [esp]
call fcn.004beac0
fld dword [ebx + 0x1c]
add esp, 4
fmul dword [0x5dee2c]
fld st(0)
fmul st(2)
fstp dword [esp + 0x40]
fld dword [esp + 0x38]
fmul st(1)
fstp dword [esp + 0x44]
fmul dword [esp + 0x3c]
fstp st(1)
fld dword [esp + 0x40]
fadd dword [esi + 0x58]
fstp dword [esp + 0x40]
fld dword [esp + 0x44]
fadd dword [esi + 0x5c]
fstp dword [esp + 0x44]
fadd dword [esi + 0x60]
fld dword [0x5ded20]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x4f3503
fstp st(0)
fld dword [0x5ded20]
fld dword [0x5da2d4]
fcomp dword [esp + 0x44]
fnstsw ax
test ah, 5
jp 0x4f351e
mov dword [esp + 0x14], 0x42c80000
jmp 0x4f3526
mov eax, dword [esp + 0x44]
mov dword [esp + 0x14], eax
fld dword [0x5ded20]
fcomp dword [esp + 0x40]
fnstsw ax
test ah, 5
jp 0x4f3541
mov dword [esp + 0x18], 0x428c0000
jmp 0x4f3549
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x18], ecx
fld dword [0x5eef58]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x4f3560
fstp st(0)
fld dword [0x5eef58]
fld dword [0x5e0e18]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 0x41
jne 0x4f3579
fld dword [0x5e0e18]
jmp 0x4f357d
fld dword [esp + 0x14]
fld dword [0x5eef58]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 0x41
jne 0x4f3596
fld dword [0x5eef58]
jmp 0x4f359a
fld dword [esp + 0x18]
fstp dword [esp + 0x4c]
mov edx, dword [esp + 0x4c]
mov dword [esi + 0x58], edx
fstp dword [esp + 0x50]
mov eax, dword [esp + 0x50]
mov dword [esi + 0x5c], eax
fstp dword [esp + 0x54]
mov ecx, dword [esp + 0x54]
mov dword [esi + 0x60], ecx
mov ecx, dword [esi + 0xb0]
test cl, 0x20
je 0x4f3666
fld dword [esi + 0x7c]
lea eax, [esi + 0x40]
fld st(0)
mov ecx, eax
mov ebp, dword [ecx]
lea edx, [esi + 0x4c]
mov dword [edx], ebp
mov ebp, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [edx + 4], ebp
mov dword [edx + 8], ecx
fmul dword [esi + 0x58]
mov edx, dword [ebx + 0x1c]
fld st(1)
fmul dword [esi + 0x5c]
mov dword [esp + 0x1c], edx
fstp dword [esp + 0x5c]
fxch st(1)
fmul dword [esi + 0x60]
fstp dword [esp + 0x60]
fmul dword [esp + 0x1c]
fld dword [esp + 0x5c]
fmul dword [esp + 0x1c]
fld dword [esp + 0x60]
fmul dword [esp + 0x1c]
fstp dword [esp + 0x78]
fxch st(1)
fadd dword [eax]
fstp dword [eax]
fadd dword [eax + 4]
fstp dword [eax + 4]
fld dword [esp + 0x78]
fadd dword [eax + 8]
fstp dword [eax + 8]
mov ecx, dword [esi + 0xb0]
test ecx, 0x10000
je 0x4f3662
fld dword [esi + 0x80]
fmul dword [ebx + 0x1c]
fsubr dword [esi + 0x7c]
fst dword [esi + 0x7c]
fcomp dword [0x60477c]
fnstsw ax
test ah, 5
jp 0x4f3662
mov dword [esi + 0x7c], 0
mov ebp, dword [esp + 0x24]
test cl, 0x40
je 0x4f369f
fld dword [ebx + 0x1c]
fld st(0)
fmul dword [esi + 0x70]
fld st(1)
fmul dword [esi + 0x74]
fstp dword [esp + 0x68]
fxch st(1)
fmul dword [esi + 0x78]
fstp dword [esp + 0x6c]
fadd dword [esi + 0x64]
fstp dword [esi + 0x64]
fld dword [esp + 0x68]
fadd dword [esi + 0x68]
fstp dword [esi + 0x68]
fld dword [esp + 0x6c]
fadd dword [esi + 0x6c]
fstp dword [esi + 0x6c]
mov eax, dword [esi + 0xb0]
test al, 4
je 0x4f36da
mov edx, dword [esi + 0x9c]
mov ecx, dword [esp + 0x28]
sub ecx, edx
cmp ecx, dword [esi + 0xa0]
jae 0x4f36c5
cmp ecx, 0x3a98
jbe 0x4f36da
and eax, 0x3fffffff
or eax, 0x80000000
mov dword [esi + 0xb0], eax
mov edi, 1
mov eax, dword [ebx + 0x1c]
push eax
mov ecx, esi
call fcn.004f2d90
test eax, eax
je 0x4f3706
mov ecx, dword [esi + 0xb0]
and ecx, 0x3fffffff
or ecx, 0x80000000
mov dword [esi + 0xb0], ecx
jmp 0x4f3990
test edi, edi
jne 0x4f3990
mov ecx, dword [esi + 0xb0]
mov edx, ecx
and edx, 0x30000000
cmp edx, 0x10000000
jne 0x4f3990
test ch, 2
je 0x4f37bc
push 0x43340000
push 0xc3340000
call fcn.004bd540
fmul dword [esp + 0x34]
add esp, 8
fadd dword [esi + 4]
fst dword [esi + 4]
mov ecx, dword [esi + 0xb0]
test cl, 4
fld dword [0x5f53f4]
je 0x4f37af
mov eax, dword [esp + 0x28]
fstp st(0)
sub eax, dword [esi + 0x9c]
test eax, eax
mov dword [esp + 0x3c], eax
fild dword [esp + 0x3c]
jge 0x4f377c
fadd dword [0x5da2fc]
mov edx, dword [esi + 0xa0]
fild dword [esi + 0xa0]
test edx, edx
jge 0x4f3792
fadd dword [0x5da2fc]
fdivp st(1)
fcom dword [0x5f53f4]
fnstsw ax
test ah, 0x41
jne 0x4f37a9
fstp st(0)
fld dword [0x5f53f4]
fsubr dword [0x5f53f4]
fxch st(1)
fmul dword [ebx + 0x1c]
fmul st(1)
fadd dword [esi]
fstp dword [esi]
fstp st(0)
test cl, 8
je 0x4f380e
test ecx, 0x1000000
fld dword [0x5dee28]
je 0x4f37d7
fstp st(0)
fld dword [0x5da2e8]
fmul dword [esp + 0x2c]
mov eax, dword [esi + 0x10]
test eax, eax
fadd dword [esi + 8]
fst dword [esi + 8]
fild dword [esi + 0x10]
jge 0x4f37f1
fadd dword [0x5da2fc]
fstp dword [esp + 0x24]
fcom dword [esp + 0x24]
fnstsw ax
test ah, 1
jne 0x4f380c
test cl, 0x10
je 0x4f387c
mov dword [esi + 8], 0
fstp st(0)
mov edi, dword [esi + 0xb0]
test edi, 0x8000
je 0x4f38ea
mov ecx, dword [0x6840f8]
mov edx, dword [ecx + 0x10]
sub edx, dword [esi + 0x9c]
test edx, edx
mov dword [esp + 0x3c], edx
fild dword [esp + 0x3c]
jge 0x4f3841
fadd dword [0x5da2fc]
mov eax, dword [esi + 0xa0]
test eax, eax
fmul dword [esi + 0x94]
fild dword [esi + 0xa0]
jge 0x4f385d
fadd dword [0x5da2fc]
fdivp st(1)
fsubr dword [esi + 0x94]
fcom dword [0x5f53f4]
fnstsw ax
test ah, 0x41
jne 0x4f38ad
fstp st(0)
fld dword [0x5f53f4]
jmp 0x4f38c2
fcomp dword [0x60477c]
fnstsw ax
test ah, 0x44
jnp 0x4f3896
fld dword [esp + 0x24]
fsub dword [0x5f53f4]
fstp dword [esi + 8]
and ecx, 0x3fffffff
or ecx, 0x80000000
mov dword [esi + 0xb0], ecx
jmp 0x4f380e
fcom dword [0x60477c]
fnstsw ax
test ah, 5
jp 0x4f38c2
fstp st(0)
fld dword [0x60477c]
fmul dword [esi + 0x98]
fmul dword [0x5da6d0]
call fcn.0058c3f0
mov ecx, dword [esi + 0xa8]
shl eax, 0x18
and ecx, 0xffffff
or eax, ecx
mov dword [esi + 0xa8], eax
test edi, 0x20000
je 0x4f3990
fld dword [ebx + 0x1c]
fmul dword [esi + 0x8c]
fadd dword [esi + 0x84]
fst dword [esi + 0x84]
fld dword [esi + 0x8c]
fcomp dword [0x60477c]
fnstsw ax
fcomp dword [esi + 0x88]
test ah, 0x41
fnstsw ax
jne 0x4f3945
test ah, 0x41
jne 0x4f3990
mov edx, dword [esi + 0x88]
and edi, 0xfffdffff
mov dword [esi + 0x84], edx
mov dword [esi + 0xb0], edi
jmp 0x4f3990
test ah, 5
jp 0x4f3990
mov eax, dword [esi + 0x88]
and edi, 0xfffdffff
mov dword [esi + 0x84], eax
mov dword [esi + 0xb0], edi
jmp 0x4f3990
mov ecx, dword [esi + 0xb0]
and ecx, 0xc0000000
cmp ecx, 0x80000000
jne 0x4f3990
and eax, 0x38000000
or eax, 0x40000000
mov dword [esi + 0xb0], eax
mov eax, dword [0x6800b4]
dec dword [eax + 0x30]
cmp ebp, dword [ebx + 0xc]
jae 0x4f39a2
cmp ebp, dword [ebx + 0x30]
jne 0x4f39a2
mov dword [esp + 0x30], 1
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov ecx, dword [ebx + 0xc]
inc eax
add edx, 0xc0
cmp eax, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], edx
jb 0x4f33a6
mov edx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword [ebx + 0x14], edx
pop ebx
add esp, 0x6c
ret
mov dword [ebx + 0x14], esi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword [ebx + 0x14], eax
pop ebx
add esp, 0x6c
ret