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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x57f474]
push ebx
push esi
push edi
test eax, eax
mov dword [esp + 0x10], 0
jne 0x4f4dff
push 0x57f478
push 0x57f474
push 8
push 0x13b
push 0
push 6
push 0x58
push 0
call fcn.004f51e0
add esp, 0x20
test eax, eax
je 0x4f4dff
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x3b
xor eax, eax
lea edi, [esp + 0x8c]
mov esi, dword [ebp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov ecx, 6
lea edi, [esp + 0x44]
fld dword [eax + 0x23c]
fmul qword [0x550f68]
rep movsd dword es:[edi], dword [esi]
fadd qword [esp + 0x54]
fstp qword [esp + 0x54]
mov edi, dword [0x57f474]
lea esi, [ebx + 0xb8]
mov ecx, 6
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0x3fe00000
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0x3fe00000
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebx + 0xd0]
mov ecx, dword [0x57f478]
test edx, edx
sete al
cmp eax, ecx
mov dword [esp + 0x1c], eax
jge 0x4f51a8
lea eax, [eax + eax*2]
shl eax, 3
mov dword [esp + 0x14], eax
jmp 0x4f4ea5
mov eax, dword [esp + 0x14]
mov ecx, dword [0x57f474]
lea edi, [esp + 0x20]
mov dword [esp + 0x18], 0x13
lea esi, [eax + ecx]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4f4ef6
mov edx, dword [0x57f474]
lea eax, [esp + 0x20]
push edx
push eax
call fcn.00418fd0
fsub qword [0x550f30]
add esp, 8
fabs
fcomp qword [0x551298]
fnstsw ax
test ah, 0x41
jne 0x4f5186
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
call fcn.004f5330
mov ecx, 6
lea esi, [esp + 0x6c]
lea edi, [esp + 0x188]
lea edx, [esp + 0x9c]
rep movsd dword es:[edi], dword [esi]
push edx
lea eax, [esp + 0x18c]
mov ecx, 6
lea esi, [esp + 0x34]
lea edi, [esp + 0x1a4]
push 1
push eax
push ebx
rep movsd dword es:[edi], dword [esi]
call fcn.004fdd60
add esp, 0x20
cmp eax, 0xffffffff
je 0x4f4df5
test eax, eax
jne 0x4f5186
lea ecx, [esp + 0x9c]
lea edx, [esp + 0x5c]
push ecx
lea eax, [esp + 0x78]
push edx
push eax
call fcn.00418e20
push 0x14
lea ecx, [esp + 0x9c]
push ebx
push ecx
call fcn.004beb30
lea edx, [esp + 0xa4]
push edx
call fcn.004f4be0
lea eax, [esp + 0xd0]
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.00418fd0
fst qword [esp + 0x5c]
fadd qword [0x550f30]
mov esi, dword [ebp + 8]
add esp, 0x24
fabs
fcomp qword [0x551298]
fnstsw ax
test ah, 0x41
jne 0x4f504c
mov eax, dword [esi + 0x254]
test eax, eax
jne 0x4f4fe9
fld qword [esp + 0x38]
fsub qword [0x550f30]
fabs
fcomp qword [0x551298]
fnstsw ax
test ah, 0x41
jne 0x4f504c
lea edx, [esp + 0x15c]
lea eax, [esp + 0x44]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.00418e20
lea edx, [esp + 0x2c]
push edx
call fcn.00418ee0
fstp st(0)
fld qword [esp + 0x40]
fcomp qword [0x550f20]
add esp, 0x10
fnstsw ax
test ah, 0x41
jne 0x4f5034
push 0xbff00000
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00418fa0
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, eax
dec eax
test ecx, ecx
mov dword [esp + 0x18], eax
jne 0x4f4ec1
jmp 0x4f5186
lea edx, [esp + 0x20]
lea eax, [esp + 0x74]
push edx
push eax
call fcn.00418fd0
fchs
fld qword [esp + 0x40]
fcomp qword [0x550f20]
add esp, 8
fnstsw ax
test ah, 0x41
jne 0x4f5079
fchs
fsub dword [esi + 0x23c]
mov ecx, dword [esp + 0x10]
fsub qword [ebp + 0x14]
test ecx, ecx
je 0x4f5099
fld dword [esi + 0x23c]
fld st(1)
fcompp
fnstsw ax
test ah, 0x41
je 0x4f5184
mov edx, dword [ebp + 0x1c]
cmp edx, 2
jne 0x4f5125
fcom qword [0x5538c0]
fnstsw ax
test ah, 1
je 0x4f5125
fld dword [esi + 0x23c]
fchs
fld st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x4f5125
fld qword [ebx + 0x58]
fsub qword [0x550fc8]
fcomp qword [esp + 0x8c]
fnstsw ax
test ah, 1
je 0x4f5125
fld qword [ebx + 0x60]
fadd qword [0x550fc8]
fcomp qword [esp + 0x8c]
fnstsw ax
test ah, 0x41
jne 0x4f5125
fld qword [ebx + 0x68]
fsub qword [0x550fc8]
fcomp qword [esp + 0x94]
fnstsw ax
test ah, 1
je 0x4f5125
fld qword [ebx + 0x70]
fadd qword [0x550fc8]
fcomp qword [esp + 0x94]
fnstsw ax
test ah, 0x41
je 0x4f51ba
test ecx, ecx
je 0x4f5137
mov ecx, dword [ebp + 0x24]
fld st(0)
fcomp qword [ecx]
fnstsw ax
test ah, 1
je 0x4f5184
mov eax, dword [ebp + 0x24]
mov edi, dword [ebp + 0x20]
mov ecx, 0x3b
lea esi, [esp + 0x8c]
fstp qword [eax]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [0x57f474]
mov ecx, 6
lea esi, [esp + 0x20]
mov eax, 1
rep movsd dword es:[edi], dword [esi]
mov ecx, 6
lea esi, [esp + 0x20]
lea edi, [ebx + 0xb8]
mov dword [ebx + 0xd0], eax
test edx, edx
rep movsd dword es:[edi], dword [esi]
je 0x4f51d0
mov dword [esp + 0x10], eax
jmp 0x4f5186
fstp st(0)
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ecx, dword [0x57f478]
inc eax
add edx, 0x18
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edx
jl 0x4f4ea1
mov ecx, dword [esp + 0x10]
xor eax, eax
test ecx, ecx
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x24]
mov edi, dword [ebp + 0x20]
lea esi, [esp + 0x8c]
fstp qword [ecx]
mov ecx, 0x3b
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret