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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
add eax, dword [esi + 0x3044]
mov ecx, dword [ebp + 0x10]
add ecx, dword [esi + 0x3048]
mov edx, eax
and eax, 3
mov dword [ebp + 0x10], ecx
and cl, 3
mov dword [ebp + 0xc], eax
and al, 3
sar edx, 2
mov dword [esi + 0x304c], edx
push edi
mov edi, dword [esi + 0x886c]
mov byte [edi + 5], cl
mov byte [edi + 4], al
mov dword [edi], ebx
fld dword [esi + 0x3050]
fstp dword [edi + 8]
mov ecx, ebx
fld dword [esi + 0x3054]
fstp dword [edi + 0xc]
fld dword [esi + 0x3060]
fstp dword [edi + 0x10]
fld dword [esi + 0x3064]
fstp dword [edi + 0x14]
mov al, byte [esi + 0x3068]
mov byte [edi + 0x18], al
fld dword [esi + 0x3058]
mov eax, 0x121456f
fstp dword [edi + 0x1c]
mul ebx
fld dword [esi + 0x305c]
fstp dword [edi + 0x20]
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 0xa
imul ecx, ecx, 0x7f7
sub ebx, ecx
mov byte [esi + 0x8868], 0
mov eax, dword [esi + ebx*4 + 0x6880]
test eax, eax
mov dword [esp + 0x20], eax
je 0x4fecdf
lea esp, [esp]
mov edx, dword [esp + 0x20]
push edx
mov ecx, edi
call fcn.004fcfe0
test al, al
mov eax, dword [esp + 0x20]
jne 0x4fed48
mov eax, dword [eax + 0x2c]
test eax, eax
mov dword [esp + 0x20], eax
jne 0x4fecc0
mov eax, dword [esi + 0x886c]
mov ecx, dword [esi + 0x885c]
mov dword [eax + 0x24], ecx
mov edx, dword [esi + 0x886c]
mov eax, dword [esi + 0x8864]
mov dword [edx + 0x28], eax
mov ecx, dword [esi + 0x886c]
mov edx, dword [esi + ebx*4 + 0x6880]
mov dword [ecx + 0x2c], edx
mov eax, dword [esi + 0x886c]
push 0x30
mov dword [esi + ebx*4 + 0x6880], eax
call fcn.0055d3fe
xor edi, edi
add esp, 4
cmp eax, edi
je 0x4fed68
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
jmp 0x4fed6a
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, dword [eax + 0x28]
push edx
mov edx, dword [eax + 0x24]
push ecx
push edx
mov ecx, esi
call fcn.004fe3f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
fld dword [esi + 0x3054]
mov dword [esi + 0x886c], eax
fadd qword [0x5a9658]
mov byte [esi + 0x8868], 1
mov dword [esp + 0x38], edi
mov dword [esp + 0x20], edi
call fcn.0055d2f0
fild dword [ebp + 0xc]
shl eax, 0xa
cmp eax, dword [esi + 0x3038]
fstp dword [esp + 0x5c]
mov dword [esi + 0x3034], eax
jle 0x4fee07
jmp 0x4fedb0
mov ecx, dword [esi + 0x3038]
add ecx, ecx
mov edx, eax
cmp edx, ecx
mov dword [esi + 0x3038], ecx
jg 0x4fedb0
mov eax, dword [esi + 0x3030]
push eax
call fcn.0055f5cf
mov eax, dword [esi + 0x3038]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0055ce46
mov ecx, dword [esi + 0x3038]
add ecx, ecx
add ecx, ecx
push ecx
push edi
push eax
mov dword [esi + 0x3030], eax
call fcn.0055da20
add esp, 0x14
fldz
xor ebx, ebx
fst dword [esp + 0x14]
mov dword [esp + 0x30], ebx
fst dword [esp + 0x10]
mov dword [esp + 0x34], ebx
fst dword [esp + 0x60]
mov dword [esp + 0x24], ebx
fst dword [esp + 0x64]
xor edi, edi
fst dword [esp + 0x68]
mov byte [esi + 0x302c], 1
fst dword [esp + 0x6c]
fld qword [0x5cae48]
jmp case.default.0x4feedc
fstp dword [esp + 0x10]
xor ebx, ebx
fld qword [0x5cae48]
fldz
fxch st(1)
cmp byte [esi + 0x302c], 0
je 0x4feecd
mov edi, dword [ebp + 8]
fstp st(0)
fst dword [esp + 0x70]
push ecx
fst dword [esp + 0x78]
lea edx, [esp + 0x74]
fst dword [esp + 0x7c]
mov ecx, esi
fstp dword [esp + 0x80]
mov byte [esi + 0x302c], 0
fld1
mov dword [esp + 0x3c], 2
fstp dword [esp]
mov dword [esi + 0x3024], ebx
push edx
push ebx
mov dword [esp + 0x2c], ebx
call fcn.004fd090
fldz
mov eax, dword [esi + 0x3034]
fld qword [0x5cae48]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], ebx
mov dword [esi + 4], 0x1869f
mov dword [esi + 8], 0xfffe7961
mov dword [esi + 0xc], eax
movzx eax, byte [edi]
add eax, 0xffffffff
cmp eax, 7
ja case.default.0x4feedc
jmp dword [eax*4 + 0x4ff678]
movsx eax, word [esp + 0x20]
add dword [esp + 0x38], 1
mov dword [esp + 0x24], eax
add edi, 1
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
jmp case.default.0x4feedc
movzx eax, byte [edi + 1]
cmp eax, ebx
mov dword [esp + 0x30], eax
je 0x4fef15
add eax, dword [esp + 0x24]
mov dword [esp + 0x30], eax
add edi, 2
jmp case.default.0x4feedc
movzx eax, byte [edi + 1]
cmp eax, ebx
mov dword [esp + 0x34], eax
je 0x4fef31
add eax, dword [esp + 0x24]
mov dword [esp + 0x34], eax
add edi, 2
jmp case.default.0x4feedc
movzx ecx, byte [edi + 2]
movzx edx, byte [edi + 1]
shl cx, 8
add cx, dx
movzx edx, byte [edi + 3]
movsx eax, cx
movzx ecx, byte [edi + 4]
mov dword [esp + 0xc], eax
shl cx, 8
add cx, dx
fild dword [esp + 0xc]
movsx eax, cx
fmul st(1)
mov dword [esp + 0xc], eax
add edi, 5
fstp dword [esp + 0x14]
fild dword [esp + 0xc]
fmul st(1)
fstp dword [esp + 0x10]
jmp case.default.0x4feedc
movzx ecx, byte [edi + 2]
movzx edx, byte [edi + 1]
shl cx, 8
add cx, dx
movzx edx, byte [edi + 3]
movsx eax, cx
movzx ecx, byte [edi + 4]
mov dword [esp + 0xc], eax
shl cx, 8
add cx, dx
fild dword [esp + 0xc]
movsx eax, cx
fmul st(1)
mov dword [esp + 0xc], eax
lea eax, [esi + 0x3060]
add edi, 5
fstp dword [esp + 0x18]
xor ebx, ebx
fild dword [esp + 0xc]
mov dword [esp + 0x1c], eax
fmulp st(1)
fstp dword [esp + 0x28]
jmp 0x4fefd4
fldz
mov ecx, dword [esp + 0x1c]
fcomp dword [ecx]
fnstsw ax
test ah, 0x44
jnp 0x4ff018
fld dword [esp + 0x28]
push ebx
sub esp, 0x10
fstp dword [esp + 0xc]
mov ecx, esi
fld dword [esp + 0x2c]
fstp dword [esp + 8]
fld dword [esp + 0x24]
fstp dword [esp + 4]
fld dword [esp + 0x28]
fstp dword [esp]
call fcn.004fd760
add dword [esp + 0x1c], 4
add ebx, 1
cmp ebx, 2
jl 0x4fefd2
movsx edx, word [esp + 0x38]
fld dword [esp + 0x28]
push edx
lea eax, [esp + 0x34]
push eax
sub esp, 0x10
mov ecx, esi
fstp dword [esp + 0xc]
fld dword [esp + 0x30]
fstp dword [esp + 8]
fld dword [esp + 0x28]
fstp dword [esp + 4]
fld dword [esp + 0x2c]
fstp dword [esp]
call fcn.004fd250
fld dword [esp + 0x18]
fstp dword [esp + 0x14]
fld dword [esp + 0x28]
jmp 0x4fee40
movzx ecx, byte [edi + 2]
movzx edx, byte [edi + 1]
shl cx, 8
add cx, dx
movzx edx, byte [edi + 3]
movsx eax, cx
movzx ecx, byte [edi + 4]
shl cx, 8
add cx, dx
movzx edx, byte [edi + 5]
mov dword [esp + 0xc], eax
movsx eax, cx
fild dword [esp + 0xc]
movzx ecx, byte [edi + 6]
fmul st(1)
mov dword [esp + 0xc], eax
shl cx, 8
fstp dword [esp + 0x18]
add cx, dx
fild dword [esp + 0xc]
movzx edx, byte [edi + 7]
fmul st(1)
movsx eax, cx
movzx ecx, byte [edi + 8]
fstp dword [esp + 0x28]
mov dword [esp + 0xc], eax
shl cx, 8
add cx, dx
fild dword [esp + 0xc]
movsx eax, cx
fmul st(1)
mov dword [esp + 0xc], eax
add edi, 9
mov dword [esp + 0x44], 1
fstp dword [esp + 0x3c]
fild dword [esp + 0xc]
fmulp st(1)
fstp dword [esp + 0xc]
fld dword [esp + 0x14]
fst dword [esp + 0x14]
fld dword [esp + 0x10]
fst dword [esp + 0x40]
fld1
fstp dword [esp + 0x1c]
fld dword [esp + 0x18]
fxch st(2)
fst qword [esp + 0x90]
fld st(2)
fld qword [0x5aa6d8]
fmul st(1), st(0)
fxch st(1)
fsubr dword [esp + 0x3c]
fadd st(2)
fstp qword [esp + 0x80]
fxch st(3)
fsub st(1)
fmul st(3)
fstp qword [esp + 0x88]
fld dword [esp + 0x28]
fxch st(2)
fst qword [esp + 0x28]
fld dword [esp + 0xc]
fld st(3)
fmul st(5)
fsubp st(1)
fadd st(1)
fstp qword [esp + 0x98]
fsub st(2), st(0)
fxch st(2)
fmulp st(3)
fxch st(2)
fstp qword [esp + 0x48]
fld dword [esp + 0x1c]
jmp 0x4ff175
fld qword [esp + 0x28]
fld qword [esp + 0x90]
fldz
fxch st(3)
fxch st(1)
fxch st(2)
fxch st(1)
fdiv qword [0x5aa6e0]
lea eax, [esi + 0x3060]
xor ebx, ebx
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fld qword [esp + 0x80]
fmul st(1)
mov dword [esp + 0x1c], eax
fmul st(1)
fld qword [esp + 0x88]
fmul st(2)
faddp st(1)
faddp st(3)
fxch st(2)
fstp dword [esp + 0x18]
fld qword [esp + 0x98]
fmul st(2)
fmul st(2)
fld qword [esp + 0x48]
fmulp st(3)
faddp st(2)
faddp st(1)
fstp dword [esp + 0x10]
jmp 0x4ff1ca
fldz
mov ecx, dword [esp + 0x1c]
fcomp dword [ecx]
fnstsw ax
test ah, 0x44
jnp 0x4ff20e
fld dword [esp + 0x10]
push ebx
sub esp, 0x10
fstp dword [esp + 0xc]
mov ecx, esi
fld dword [esp + 0x2c]
fstp dword [esp + 8]
fld dword [esp + 0x54]
fstp dword [esp + 4]
fld dword [esp + 0x28]
fstp dword [esp]
call fcn.004fd760
add dword [esp + 0x1c], 4
add ebx, 1
cmp ebx, 2
jl 0x4ff1c8
movsx eax, word [esp + 0x38]
fld dword [esp + 0x10]
push eax
lea edx, [esp + 0x34]
push edx
sub esp, 0x10
mov ecx, esi
fstp dword [esp + 0xc]
fld dword [esp + 0x30]
fstp dword [esp + 8]
fld dword [esp + 0x58]
fstp dword [esp + 4]
fld dword [esp + 0x2c]
fstp dword [esp]
call fcn.004fd250
fld dword [esp + 0x18]
add dword [esp + 0x44], 1
fstp dword [esp + 0x14]
fld dword [esp + 0x10]
fstp dword [esp + 0x40]
fild dword [esp + 0x44]
fstp dword [esp + 0x1c]
fld dword [0x5cae64]
fld dword [esp + 0x1c]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jnp 0x4ff160
fstp st(0)
fld dword [esp + 0x3c]
fstp dword [esp + 0x14]
fld dword [esp + 0xc]
jmp 0x4fee40
movzx eax, byte [edi + 3]
fstp st(0)
movzx ecx, byte [edi + 2]
fstp st(0)
movzx edx, byte [edi + 1]
add dword [esp + 0x20], 1
push 0xff
push eax
push ecx
push edx
lea ecx, [esp + 0x70]
call fcn.004b1760
push ecx
fld1
movsx ecx, word [esp + 0x24]
fstp dword [esp]
lea eax, [esp + 0x64]
push eax
push ecx
mov ecx, esi
call fcn.004fd090
add edi, 4
jmp 0x4fee46
mov eax, 0xfffffc19
fstp st(0)
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x6478]
mov dword [esi + 0x6878], eax
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
lea edx, [esi + 0x2020]
mov dword [esi + 0x201c], edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], eax
jg 0x4ff628
fld qword [0x5aafe8]
mov ecx, dword [esi + 0xc]
fild dword [esp + 0x18]
mov eax, dword [esp + 0x18]
sub eax, ecx
add eax, dword [ebp + 0x10]
mov dword [esp + 0xc], ecx
fisub dword [esp + 0xc]
mov dword [esp + 0x3c], eax
sar eax, 2
add eax, dword [esi + 0x3040]
lea ecx, [esp + 0x28]
mov dword [esi + 0x6274], eax
mov eax, dword [esp + 0x28]
test eax, eax
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
je 0x4ff38a
fld st(0)
mov edx, dword [ecx]
fld dword [edx + 0xc]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x4ff368
mov edx, dword [edx + 0x14]
mov dword [ecx], edx
jmp 0x4ff36b
lea ecx, [edx + 0x14]
cmp dword [ecx], 0
jne 0x4ff353
mov eax, dword [esp + 0x28]
fstp st(0)
test eax, eax
je 0x4ff38a
fld dword [eax + 0x1c]
fadd dword [eax + 0x18]
fstp dword [eax + 0x18]
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x4ff37a
xor bl, bl
cmp dword [esp + 0x28], 0
lea edi, [esp + 0x28]
je 0x4ff3ca
mov edx, dword [edi]
mov ecx, dword [edx + 0x14]
test ecx, ecx
je 0x4ff3c6
fld dword [edx + 0x18]
fld dword [ecx + 0x18]
fcompp
fnstsw ax
test ah, 5
jp 0x4ff3bc
mov dword [edi], ecx
mov eax, dword [ecx + 0x14]
mov dword [ecx + 0x14], edx
mov dword [edx + 0x14], eax
mov bl, 1
mov edi, dword [edi]
add edi, 0x14
cmp dword [edi], 0
jne 0x4ff397
test bl, bl
jne 0x4ff38a
mov eax, dword [esi + 0x3030]
mov ecx, dword [esp + 0x18]
mov ecx, dword [eax + ecx*4]
test ecx, ecx
je 0x4ff456
fstp st(2)
fld st(1)
fld dword [esp + 0x5c]
cmp dword [esp + 0x28], 0
fld dword [ecx]
fld dword [ecx + 4]
lea edx, [esp + 0x28]
fld dword [ecx + 8]
fsub st(2)
fld dword [ecx + 0xc]
fsub st(2)
fdivp st(1)
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fst dword [ecx + 0x1c]
fld st(4)
fsubrp st(2)
fmulp st(1)
faddp st(1)
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fadd st(1)
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fst dword [ecx + 0x18]
je 0x4ff43e
mov edi, dword [edx]
fld dword [edi + 0x18]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x4ff43e
cmp dword [edi + 0x14], 0
lea edx, [edi + 0x14]
jne 0x4ff427
mov eax, dword [edx]
fstp st(0)
mov dword [ecx + 0x14], eax
mov dword [edx], ecx
mov ecx, dword [ecx + 0x10]
test ecx, ecx
jne 0x4ff3e3
fstp st(1)
fstp st(0)
fldz
fxch st(2)
mov ecx, dword [esi + 0x3030]
mov edx, dword [esp + 0x18]
xor ebx, ebx
cmp word [esp + 0x38], 2
mov dword [ecx + edx*4], ebx
jg 0x4ff47b
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
jmp 0x4ff48d
xor eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], ecx
je 0x4ff5d1
fld dword [ecx + 4]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x4ff5c0
movsx eax, word [esp + 0x38]
cmp eax, ebx
jl 0x4ff4cf
cmp dword [esp + eax*4 + 0x48], ebx
jne 0x4ff4cb
sub eax, 1
jns 0x4ff4be
jmp 0x4ff4cf
mov ebx, dword [esp + eax*4 + 0x48]
fxch st(2)
fcom dword [ecx + 0x18]
fnstsw ax
fld dword [ecx + 0x18]
test ah, 0x41
jp 0x4ff4e2
fadd st(2)
jmp 0x4ff4e4
fsub st(2)
call fcn.0055d2f0
test ebx, ebx
mov edi, eax
mov dword [esp + 0xc], edi
jne 0x4ff512
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp ecx, eax
je 0x4ff508
push ecx
push eax
mov ecx, esi
call fcn.004fd520
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
jmp 0x4ff561
lea edi, [ebx + 0x202]
shl edi, 4
add edi, esi
cmp dword [esi + 0x201c], edi
je 0x4ff559
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x10], eax
je 0x4ff546
mov ecx, dword [esp + 0x10]
push ecx
mov edx, eax
push edx
mov ecx, esi
call fcn.004fd520
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov dword [esi + 0x201c], edi
mov ecx, dword [esi + ebx*4 + 0x6478]
mov dword [esi + 0x6878], ecx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x24]
mov cl, byte [edx + 0x21]
cmp cl, 2
jae 0x4ff5a1
cmp byte [edx + 0x20], 0
movzx eax, cl
lea eax, [esp + eax*4 + 0x30]
je 0x4ff57f
add dword [eax], 1
jmp 0x4ff582
add dword [eax], 0xffffffff
movzx ecx, cl
cmp dword [esp + ecx*4 + 0x30], 0
je 0x4ff599
mov eax, 0xff
sub eax, ecx
mov dword [esp + ecx*4 + 0x48], eax
jmp 0x4ff5ba
xor eax, eax
mov dword [esp + ecx*4 + 0x48], eax
jmp 0x4ff5ba
movzx eax, cl
movzx ecx, byte [edx + 0x20]
mov edx, dword [esp + eax*4 + 0x48]
lea eax, [esp + eax*4 + 0x48]
sub edx, ecx
neg edx
sbb edx, edx
and edx, ecx
mov dword [eax], edx
mov ecx, dword [esp + 0x24]
fxch st(2)
mov ecx, dword [ecx + 0x14]
xor ebx, ebx
cmp ecx, ebx
mov dword [esp + 0x24], ecx
jne 0x4ff4a5
mov edi, dword [esp + 0x10]
fstp st(0)
mov eax, dword [esp + 0x14]
cmp edi, eax
je 0x4ff5ec
push edi
push eax
mov ecx, esi
call fcn.004fd520
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x3c]
and eax, 3
cmp al, 3
jne 0x4ff612
mov ecx, dword [ebp + 0x10]
fstp st(1)
mov edx, dword [ebp + 0xc]
fstp st(0)
push ecx
push edx
mov ecx, esi
call fcn.004fe1c0
fldz
fld qword [0x5aafe8]
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, dword [esi + 8]
mov dword [esp + 0x18], eax
jle 0x4ff312
fstp st(1)
mov eax, dword [ebp + 0x10]
fstp st(0)
mov ecx, dword [ebp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.004fe1c0
cmp byte [esi + 0x8868], 0
je 0x4ff66d
mov edx, dword [esi + 0x8864]
mov eax, dword [esi + 0x885c]
mov byte [eax + edx*8 + 6], 0xff
add dword [esi + 0x8864], 1
cmp dword [esi + 0x8864], 0x2000
jne 0x4ff66d
mov ecx, esi
call fcn.004fd5d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc