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

Disassembly:
sub esp, 0x598
mov ecx, dword [esp + 0x5a0]
mov eax, ecx
fld dword [ecx + 0xc]
fsub dword [ecx]
mov edx, dword [eax]
mov dword [esp + 0x258], edx
fstp dword [esp + 0x264]
fld dword [ecx + 0x10]
fsub dword [ecx + 4]
mov edx, dword [eax + 4]
mov dword [esp + 0x25c], edx
fstp dword [esp + 0x268]
fld dword [ecx + 0x14]
fsub dword [ecx + 8]
mov eax, dword [eax + 8]
mov dword [esp + 0x260], eax
fstp dword [esp + 0x26c]
fld dword [esp + 0x264]
fcomp dword [0x5303b8]
fnstsw ax
test ah, 0x44
jnp 0x4f61fc
fld dword [0x5303b4]
fdiv dword [esp + 0x264]
fstp dword [esp + 0x270]
jmp 0x4f6207
mov dword [esp + 0x270], 0
fld dword [esp + 0x268]
fcomp dword [0x5303b8]
fnstsw ax
test ah, 0x44
jnp 0x4f6231
fld dword [0x5303b4]
fdiv dword [esp + 0x268]
fstp dword [esp + 0x274]
jmp 0x4f623c
mov dword [esp + 0x274], 0
fld dword [esp + 0x26c]
fcomp dword [0x5303b8]
fnstsw ax
test ah, 0x44
jnp 0x4f6266
fld dword [0x5303b4]
fdiv dword [esp + 0x26c]
fstp dword [esp + 0x278]
jmp 0x4f6271
mov dword [esp + 0x278], 0
fld dword [ecx]
fcomp dword [0x5303b8]
fld dword [ecx]
fnstsw ax
and eax, 0x100
je 0x4f6286
fchs
fld dword [ecx + 0xc]
fcomp dword [0x5303b8]
fld dword [ecx + 0xc]
fnstsw ax
and eax, 0x100
je 0x4f629d
fchs
fxch st(1)
fcompp
fnstsw ax
and eax, 0x100
jne 0x4f62b6
fld dword [ecx]
fcomp dword [0x5303b8]
fld dword [ecx]
jmp 0x4f62c2
fld dword [ecx + 0xc]
fcomp dword [0x5303b8]
fld dword [ecx + 0xc]
fnstsw ax
and eax, 0x100
je 0x4f62cd
fchs
fld dword [ecx + 4]
fcomp dword [0x5303b8]
fld dword [ecx + 4]
fnstsw ax
and eax, 0x100
je 0x4f62e4
fchs
fld dword [ecx + 0x10]
fcomp dword [0x5303b8]
fld dword [ecx + 0x10]
fnstsw ax
and eax, 0x100
je 0x4f62fb
fchs
fxch st(1)
fcompp
fnstsw ax
and eax, 0x100
jne 0x4f6316
fld dword [ecx + 4]
fcomp dword [0x5303b8]
fld dword [ecx + 4]
jmp 0x4f6322
fld dword [ecx + 0x10]
fcomp dword [0x5303b8]
fld dword [ecx + 0x10]
fnstsw ax
and eax, 0x100
je 0x4f632d
fchs
fld dword [ecx + 8]
fcomp dword [0x5303b8]
fld dword [ecx + 8]
fnstsw ax
and eax, 0x100
je 0x4f6344
fchs
fld dword [ecx + 0x14]
fcomp dword [0x5303b8]
fld dword [ecx + 0x14]
fnstsw ax
and eax, 0x100
je 0x4f635b
fchs
fxch st(1)
fcompp
fnstsw ax
and eax, 0x100
jne 0x4f6376
fld dword [ecx + 8]
fcomp dword [0x5303b8]
fld dword [ecx + 8]
jmp 0x4f6382
fld dword [ecx + 0x14]
fcomp dword [0x5303b8]
fld dword [ecx + 0x14]
fnstsw ax
and eax, 0x100
je 0x4f638d
fchs
fxch st(2)
fmul dword [0x536314]
mov ecx, dword [esp + 0x59c]
push ebx
push ebp
push esi
fstp dword [esp + 0x288]
mov edx, dword [ecx + 0x1c]
push edi
fmul dword [0x536314]
mov dword [esp + 0x298], edx
mov dword [esp + 0x29c], 0
mov dword [esp + 0x2a0], 0x3f800000
lea ebx, [esp + 0x2a4]
fstp dword [esp + 0x290]
fmul dword [0x536314]
fstp dword [esp + 0x294]
sub ebx, 0xc
mov dword [esp + 0x5a4], ebx
mov ecx, dword [ebx]
cmp dword [ecx], 0
jl 0x4f65df
mov eax, dword [ecx]
fld dword [esp + eax + 0x274]
fld dword [esp + eax + 0x268]
fld dword [esp + eax + 0x28c]
fld st(2)
fmul dword [ebx + 8]
fadd st(2)
fstp dword [esp + 0x18]
fld st(2)
fmul dword [ebx + 4]
fadd st(2)
fstp dword [esp + 0x10]
fld dword [ecx + 0x14]
fsub st(1)
fstp dword [esp + 0x1c]
fld dword [ecx + 0x10]
fadd st(1)
fstp dword [esp + 0x14]
fstp st(0)
fstp st(0)
fcomp dword [0x5303b8]
fnstsw ax
and eax, 0x4100
jne 0x4f650a
fld dword [esp + 0x1c]
fcomp dword [esp + 0x18]
fnstsw ax
and eax, 0x4100
jne 0x4f646e
mov eax, dword [ecx + 8]
mov dword [ebx], eax
jmp 0x4f65cd
fld dword [esp + 0x14]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 5
jp 0x4f6487
mov ecx, dword [ecx + 0xc]
mov dword [ebx], ecx
jmp 0x4f65cd
add ebx, 0xc
mov dword [esp + 0x5a4], ebx
mov edx, dword [ecx]
mov eax, dword [ecx + 8]
fld dword [esp + edx + 0x280]
fld dword [esp + 0x14]
mov dword [ebx], eax
mov eax, dword [esp + 0x5a4]
fcomp dword [esp + 0x18]
mov edx, dword [eax - 8]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x5a4]
mov edx, dword [eax - 4]
mov dword [eax + 8], edx
fnstsw ax
test ah, 5
jp 0x4f64df
fld dword [esp + 0x14]
fsub dword [esp + 0x18]
mov eax, dword [esp + 0x5a4]
fmul st(1)
fadd dword [eax + 8]
fstp dword [eax + 8]
fld dword [esp + 0x1c]
mov eax, dword [ecx + 0xc]
mov ecx, dword [esp + 0x5a4]
fcomp dword [esp + 0x10]
mov dword [ecx - 0xc], eax
fnstsw ax
and eax, 0x4100
jne 0x4f65cb
fld dword [esp + 0x1c]
jmp 0x4f65b8
fld dword [esp + 0x14]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 5
jp 0x4f6523
mov edx, dword [ecx + 0xc]
mov dword [ebx], edx
jmp 0x4f65cd
fld dword [esp + 0x1c]
fcomp dword [esp + 0x10]
fnstsw ax
and eax, 0x4100
jne 0x4f653e
mov eax, dword [ecx + 8]
mov dword [ebx], eax
jmp 0x4f65cd
add ebx, 0xc
mov dword [esp + 0x5a4], ebx
mov edx, dword [ecx]
mov eax, dword [ecx + 0xc]
fld dword [esp + edx + 0x280]
fld dword [esp + 0x1c]
mov dword [ebx], eax
mov eax, dword [esp + 0x5a4]
fcomp dword [esp + 0x18]
mov edx, dword [eax - 8]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x5a4]
mov edx, dword [eax - 4]
mov dword [eax + 8], edx
fnstsw ax
and eax, 0x4100
jne 0x4f6598
fld dword [esp + 0x1c]
fsub dword [esp + 0x18]
mov eax, dword [esp + 0x5a4]
fmul st(1)
fadd dword [eax + 8]
fstp dword [eax + 8]
fld dword [esp + 0x14]
mov eax, dword [ecx + 8]
mov ecx, dword [esp + 0x5a4]
fcomp dword [esp + 0x10]
mov dword [ecx - 0xc], eax
fnstsw ax
test ah, 5
jp 0x4f65cb
fld dword [esp + 0x14]
fsub dword [esp + 0x10]
mov eax, dword [esp + 0x5a4]
fmul st(1)
fadd dword [eax - 8]
fstp dword [eax - 8]
fstp st(0)
mov ebx, dword [esp + 0x5a4]
mov ecx, dword [ebx]
cmp dword [ecx], 0
jge 0x4f63fd
mov ecx, dword [ebx]
mov edx, dword [0x84d910]
mov dword [esp + 0x80], ecx
mov eax, dword [ecx + edx]
test eax, eax
mov dword [esp + 0x90], eax
je 0x4f6cf7
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x9c], eax
mov word [esp + 0xd2], 0
mov byte [esp + 0xd1], 0xff
cmp word [eax + 0x1e], 0
mov dword [esp + 0x94], edx
mov dword [esp + 0x54], ecx
jne 0x4f663b
mov dl, byte [eax + 0x1c]
mov byte [esp + 0xd1], dl
mov eax, dword [esp + 0x268]
mov ecx, dword [esp + 0x26c]
mov edx, dword [esp + 0x270]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x274]
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0x278]
mov dword [esp + 0xa8], edx
mov edx, dword [esp + 0x27c]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x280]
mov dword [esp + 0xb0], ecx
mov ecx, dword [esp + 0x284]
mov dword [esp + 0xb4], edx
mov edx, dword [esp + 0x288]
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x28c]
mov dword [esp + 0xbc], ecx
mov ecx, dword [esp + 0x290]
mov dword [esp + 0xc0], edx
mov edx, dword [esp + 0x294]
mov dword [esp + 0xc4], eax
lea eax, [esp + 0xd0]
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], edx
mov dword [esp + 0xd8], eax
mov ecx, dword [ebx + 4]
lea ebp, [esp + 0xe4]
mov dword [esp + 0xdc], ecx
mov edx, dword [ebx + 8]
mov dword [esp + 0xe0], edx
sub ebp, 0xc
mov dword [esp + 0x264], ebp
mov eax, dword [ebp]
cmp byte [eax + 1], 0xff
jne 0x4f691a
xor ecx, ecx
mov cx, word [eax + 2]
mov eax, dword [esp + 0x9c]
shl ecx, 4
add ecx, dword [eax + 0x20]
mov dl, byte [ecx]
and edx, 0xc
fld dword [esp + edx + 0xac]
fld dword [esp + edx + 0xa0]
fld dword [esp + edx + 0xc4]
fld st(2)
fmul dword [ebp + 8]
fadd st(2)
fstp dword [esp + 0x14]
fld st(2)
fmul dword [ebp + 4]
fadd st(2)
fstp dword [esp + 0x1c]
fld dword [ecx + 0xc]
fsub st(1)
fstp dword [esp + 0x10]
fld dword [ecx + 4]
fadd st(1)
fstp dword [esp + 0x18]
fstp st(0)
fstp st(0)
fcomp dword [0x5303b8]
fnstsw ax
and eax, 0x4100
jne 0x4f6841
fld dword [esp + 0x10]
fcomp dword [esp + 0x14]
fnstsw ax
and eax, 0x4100
jne 0x4f67a8
mov dword [ebp], ecx
jmp 0x4f68ff
fld dword [esp + 0x18]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 5
jp 0x4f67c2
add ecx, 8
mov dword [ebp], ecx
jmp 0x4f68ff
add ebp, 0xc
mov dword [esp + 0x264], ebp
fld dword [esp + edx + 0xb8]
fld dword [esp + 0x18]
mov dword [ebp], ecx
mov eax, dword [esp + 0x264]
fcomp dword [esp + 0x14]
mov edx, dword [eax - 8]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x264]
mov edx, dword [eax - 4]
mov dword [eax + 8], edx
fnstsw ax
test ah, 5
jp 0x4f6816
fld dword [esp + 0x18]
fsub dword [esp + 0x14]
mov eax, dword [esp + 0x264]
fmul st(1)
fadd dword [eax + 8]
fstp dword [eax + 8]
fld dword [esp + 0x10]
fcomp dword [esp + 0x1c]
mov eax, dword [esp + 0x264]
add ecx, 8
mov dword [eax - 0xc], ecx
fnstsw ax
and eax, 0x4100
jne 0x4f68fd
fld dword [esp + 0x10]
jmp 0x4f68ea
fld dword [esp + 0x18]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 5
jp 0x4f685b
add ecx, 8
mov dword [ebp], ecx
jmp 0x4f68ff
fld dword [esp + 0x10]
fcomp dword [esp + 0x1c]
fnstsw ax
and eax, 0x4100
jne 0x4f6874
mov dword [ebp], ecx
jmp 0x4f68ff
add ebp, 0xc
mov dword [esp + 0x264], ebp
fld dword [esp + edx + 0xb8]
lea edx, [ecx + 8]
fld dword [esp + 0x10]
mov dword [ebp], edx
mov eax, dword [esp + 0x264]
fcomp dword [esp + 0x14]
mov edx, dword [eax - 8]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x264]
mov edx, dword [eax - 4]
mov dword [eax + 8], edx
fnstsw ax
and eax, 0x4100
jne 0x4f68cd
fld dword [esp + 0x10]
fsub dword [esp + 0x14]
mov eax, dword [esp + 0x264]
fmul st(1)
fadd dword [eax + 8]
fstp dword [eax + 8]
fld dword [esp + 0x18]
fcomp dword [esp + 0x1c]
mov eax, dword [esp + 0x264]
mov dword [eax - 0xc], ecx
fnstsw ax
test ah, 5
jp 0x4f68fd
fld dword [esp + 0x18]
fsub dword [esp + 0x1c]
mov eax, dword [esp + 0x264]
fmul st(1)
fadd dword [eax - 8]
fstp dword [eax - 8]
fstp st(0)
mov ebp, dword [esp + 0x264]
mov eax, dword [ebp]
cmp byte [eax + 1], 0xff
je 0x4f6723
mov ebx, dword [esp + 0x5a4]
mov ecx, dword [ebp]
mov ax, word [ecx + 2]
movzx cx, byte [ecx + 1]
mov dword [esp + 0x44], eax
and eax, 0xffff
and ecx, 0xffff
add ecx, eax
cmp eax, ecx
mov dword [esp + 0x98], ecx
jge 0x4f6ce8
mov ecx, dword [esp + 0x90]
mov ecx, dword [ecx + 0x24]
test ecx, ecx
je 0x4f695c
xor edi, edi
mov di, word [ecx + eax*2]
jmp 0x4f695e
mov edi, eax
mov esi, dword [esp + 0x94]
mov edx, dword [esp + 0x54]
xor eax, eax
mov ax, word [esi + edi*8]
lea eax, [eax + eax*2]
lea ecx, [edx + eax*4]
xor eax, eax
mov ax, word [esi + edi*8 + 2]
lea eax, [eax + eax*2]
fld dword [edx + eax*4]
fsub dword [ecx]
lea edx, [edx + eax*4]
xor eax, eax
mov ax, word [esi + edi*8 + 4]
mov esi, dword [esp + 0x54]
fstp dword [esp + 0x38]
fld dword [edx + 4]
fsub dword [ecx + 4]
lea eax, [eax + eax*2]
fstp dword [esp + 0x3c]
fld dword [edx + 8]
fsub dword [ecx + 8]
lea esi, [esi + eax*4]
fstp dword [esp + 0x40]
fld dword [esi]
fsub dword [ecx]
fstp dword [esp + 0x20]
fld dword [esi + 4]
fsub dword [ecx + 4]
fstp dword [esp + 0x24]
fld dword [esi + 8]
fsub dword [ecx + 8]
fst dword [esp + 0x28]
fmul dword [esp + 0x278]
fld dword [esp + 0x24]
fmul dword [esp + 0x27c]
fsubp st(1)
fld dword [esp + 0x20]
fmul dword [esp + 0x27c]
fld dword [esp + 0x28]
fmul dword [esp + 0x274]
fsubp st(1)
fld dword [esp + 0x24]
fmul dword [esp + 0x274]
fld dword [esp + 0x20]
fmul dword [esp + 0x278]
fsubp st(1)
fld st(1)
fmul dword [esp + 0x3c]
fld st(3)
fmul dword [esp + 0x38]
faddp st(1)
fld st(1)
fmul dword [esp + 0x40]
faddp st(1)
fst dword [esp + 0x18]
fcomp dword [0x547328]
fnstsw ax
and eax, 0x4100
jne 0x4f6cc5
fld dword [esp + 0x18]
fmul dword [0x547324]
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fsub dword [esp + 0x14]
fstp dword [esp + 0x1c]
fld dword [esp + 0x268]
fsub dword [ecx]
fstp dword [esp + 0x2c]
fld dword [ecx + 4]
fsubr dword [esp + 0x26c]
fstp dword [esp + 0x30]
fld dword [ecx + 8]
fsubr dword [esp + 0x270]
fstp dword [esp + 0x34]
fld dword [esp + 0x30]
fmul st(2)
fld dword [esp + 0x2c]
fmul st(4)
faddp st(1)
fld dword [esp + 0x34]
fmul st(2)
faddp st(1)
fstp dword [esp + 0x10]
fstp st(0)
fstp st(0)
fstp st(0)
fld dword [esp + 0x10]
fcomp dword [esp + 0x14]
fnstsw ax
and eax, 0x100
jne 0x4f6ccb
fld dword [esp + 0x10]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 0x41
jp 0x4f6ccb
fld dword [esp + 0x30]
fmul dword [esp + 0x40]
fld dword [esp + 0x34]
fmul dword [esp + 0x3c]
fsubp st(1)
fstp dword [esp + 0x48]
fld dword [esp + 0x34]
fmul dword [esp + 0x38]
fld dword [esp + 0x2c]
fmul dword [esp + 0x40]
fsubp st(1)
fstp dword [esp + 0x4c]
fld dword [esp + 0x2c]
fmul dword [esp + 0x3c]
fld dword [esp + 0x30]
fmul dword [esp + 0x38]
fsubp st(1)
fstp dword [esp + 0x50]
fld dword [esp + 0x4c]
fmul dword [esp + 0x278]
fld dword [esp + 0x48]
fmul dword [esp + 0x274]
faddp st(1)
fld dword [esp + 0x50]
fmul dword [esp + 0x27c]
faddp st(1)
fcom dword [esp + 0x14]
fnstsw ax
and eax, 0x100
jne 0x4f6cc9
fld dword [esp + 0x10]
fadd st(1)
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 0x41
fstp st(0)
jp 0x4f6ccb
fld dword [esp + 0x4c]
fmul dword [esp + 0x24]
fld dword [esp + 0x48]
fmul dword [esp + 0x20]
faddp st(1)
fld dword [esp + 0x50]
fmul dword [esp + 0x28]
faddp st(1)
fst dword [esp + 0x10]
fcomp dword [esp + 0x14]
fnstsw ax
and eax, 0x100
jne 0x4f6ccb
fld dword [esp + 0x10]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 0x41
jp 0x4f6ccb
fld dword [esp + 0x10]
fdiv dword [esp + 0x18]
mov eax, ecx
mov ebx, dword [eax]
mov dword [esp + 0x64], ebx
mov ebx, dword [eax + 4]
mov dword [esp + 0x68], ebx
mov eax, dword [eax + 8]
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], esi
fstp dword [esp + 0x10]
fld dword [edx]
fsub dword [ecx]
fld dword [edx + 4]
fsub dword [ecx + 4]
fld dword [edx + 8]
fsub dword [ecx + 8]
fld dword [esi]
fsub dword [ecx]
fstp dword [esp + 0x84]
fld dword [esi + 4]
fsub dword [ecx + 4]
fstp dword [esp + 0x88]
fld dword [esi + 8]
fsub dword [ecx + 8]
fld st(0)
fmul st(3)
fld dword [esp + 0x88]
fmul st(3)
fsubp st(1)
fstp dword [esp + 0x58]
fld dword [esp + 0x84]
fmul st(2)
fxch st(1)
fmul st(4)
fsubp st(1)
fstp dword [esp + 0x5c]
fstp st(0)
fld dword [esp + 0x88]
fmul st(2)
fld dword [esp + 0x84]
fmul st(2)
fsubp st(1)
fstp dword [esp + 0x60]
fstp st(0)
fstp st(0)
fld dword [esp + 0x5c]
fmul dword [esp + 0x5c]
fld dword [esp + 0x58]
fmul dword [esp + 0x58]
faddp st(1)
fld dword [esp + 0x60]
fmul dword [esp + 0x60]
faddp st(1)
fstp dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004d5f00
fld dword [esp + 0x5c]
fmul st(1)
mov edx, dword [esp + 0x5bc]
mov eax, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x88]
fstp dword [esp + 0x60]
fld dword [esp + 0x64]
fmul st(1)
lea ecx, [esp + 0x60]
push eax
mov eax, dword [esp + 0x5bc]
push ecx
fstp dword [esp + 0x6c]
push edx
push eax
fmul dword [esp + 0x78]
fstp dword [esp + 0x78]
call dword [esp + 0x5cc]
add esp, 0x18
test eax, eax
je 0x4f6d06
mov ebx, dword [esp + 0x5a4]
mov ebp, dword [esp + 0x264]
jmp 0x4f6ccb
fstp st(0)
fstp st(0)
fstp st(0)
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x98]
inc eax
mov dword [esp + 0x44], eax
and eax, 0xffff
cmp eax, ecx
jl 0x4f6946
lea ecx, [esp + 0xd8]
cmp ebp, ecx
ja 0x4f670c
lea edx, [esp + 0x298]
cmp ebx, edx
ja 0x4f63e8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x598
ret