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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56fe5a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf4
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
push esi
test eax, eax
mov eax, dword [ebx + 0x18]
push edi
je 0x4f3179
mov ecx, dword [eax + 0x78]
mov dword [esp + 0x1c], ecx
jmp 0x4f3180
mov edx, dword [eax + 0x74]
mov dword [esp + 0x1c], edx
fld qword [eax + 0x10]
fmul qword [eax + 0x28]
fld qword [eax + 0x20]
fmul qword [eax + 0x18]
mov esi, dword [ebp + 8]
fsubp st(1)
fdivr qword [0x571818]
fld st(0)
fmul qword [eax + 0x28]
fstp qword [esp + 0x84]
fld st(0)
fmul qword [eax + 0x18]
fchs
fstp qword [esp + 0x8c]
fld st(0)
fmul qword [eax + 0x20]
fchs
fstp qword [esp + 0x94]
fld st(0)
fmul qword [eax + 0x10]
fstp qword [esp + 0x9c]
fld qword [eax + 0x38]
fmul qword [eax + 0x20]
fld qword [eax + 0x30]
fmul qword [eax + 0x28]
fsubp st(1)
fmul st(1)
fstp qword [esp + 0xa4]
fld qword [eax + 0x30]
fmul qword [eax + 0x18]
fld qword [eax + 0x38]
fmul qword [eax + 0x10]
fsubp st(1)
fmulp st(1)
fld qword [ebx + 0x28]
fmul qword [esi + 0x50]
fld qword [esi + 0x58]
fmul qword [ebx + 0x38]
faddp st(1)
fstp qword [esp + 0x54]
fld qword [esi + 0x58]
fmul qword [ebx + 0x40]
fld qword [ebx + 0x30]
fmul qword [esi + 0x50]
faddp st(1)
fstp qword [esp + 0x5c]
fld qword [ebx + 0x28]
fmul qword [esi + 0x60]
fld qword [esi + 0x68]
fmul qword [ebx + 0x38]
faddp st(1)
fstp qword [esp + 0x64]
fld qword [esi + 0x68]
fmul qword [ebx + 0x40]
fld qword [esi + 0x60]
fmul qword [ebx + 0x30]
faddp st(1)
fstp qword [esp + 0x6c]
fld qword [ebx + 0x28]
fmul qword [esi + 0x70]
fld qword [esi + 0x78]
fmul qword [ebx + 0x38]
faddp st(1)
fadd qword [ebx + 0x48]
fstp qword [esp + 0x74]
fld qword [esi + 0x78]
fmul qword [ebx + 0x40]
fld qword [esi + 0x70]
fmul qword [ebx + 0x30]
faddp st(1)
fadd qword [ebx + 0x50]
fstp qword [esp + 0x7c]
fld qword [esp + 0x5c]
fmul qword [esp + 0x94]
fld qword [esp + 0x54]
fmul qword [esp + 0x84]
faddp st(1)
fstp qword [esp + 0xd0]
fld qword [esp + 0x5c]
fmul qword [esp + 0x9c]
fld qword [esp + 0x54]
fmul qword [esp + 0x8c]
mov edi, dword [eax + 0x24c]
push 0x28
faddp st(1)
fstp qword [esp + 0xdc]
fld qword [esp + 0x70]
fmul qword [esp + 0x98]
fld qword [esp + 0x68]
fmul qword [esp + 0x88]
faddp st(1)
fstp qword [esp + 0xe4]
fld qword [esp + 0x70]
fmul qword [esp + 0xa0]
fld qword [esp + 0x68]
fmul qword [esp + 0x90]
faddp st(1)
fstp qword [esp + 0xec]
fld qword [esp + 0x80]
fmul qword [esp + 0x98]
fld qword [esp + 0x78]
fmul qword [esp + 0x88]
faddp st(1)
fadd qword [esp + 0xa8]
fstp qword [esp + 0xf4]
fld qword [esp + 0x80]
fmul qword [esp + 0xa0]
fld qword [esp + 0x78]
fmul qword [esp + 0x90]
faddp st(1)
fadd st(1)
fstp qword [esp + 0xfc]
fstp st(0)
fld qword [esp + 0x70]
fmul qword [esp + 0x58]
fld qword [esp + 0x68]
fmul qword [esp + 0x60]
fsubp st(1)
fdivr qword [0x571818]
fld qword [esp + 0x70]
fmul st(1)
fstp qword [esp + 0x88]
fld qword [esp + 0x60]
fmul st(1)
fchs
fstp qword [esp + 0x90]
fld qword [esp + 0x68]
fmul st(1)
fchs
fstp qword [esp + 0x98]
fld qword [esp + 0x58]
fmul st(1)
fstp qword [esp + 0xa0]
fld qword [esp + 0x80]
fmul qword [esp + 0x68]
fld qword [esp + 0x78]
fmul qword [esp + 0x70]
fsubp st(1)
fmul st(1)
fstp qword [esp + 0xa8]
fld qword [esp + 0x78]
fmul qword [esp + 0x60]
fld qword [esp + 0x80]
fmul qword [esp + 0x58]
fsubp st(1)
fmul st(1)
fstp qword [esp + 0xb0]
fstp st(0)
call fcn.0055d252
add esp, 4
mov dword [esp + 0x50], eax
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x108], ecx
je 0x4f340a
mov ecx, dword [edi + 0x20]
mov edx, dword [edi + 0x1c]
push ecx
mov ecx, dword [edi + 0x18]
push edx
mov edx, dword [edi + 0x14]
push ecx
mov ecx, dword [edi + 0x10]
push edx
mov edx, dword [edi + 0xc]
push ecx
mov ecx, dword [edi + 8]
push edx
mov edx, dword [edi]
push ecx
push edx
mov ecx, eax
call fcn.004b0bd0
mov dword [esp + 0x50], eax
jmp 0x4f340e
mov dword [esp + 0x50], ecx
or edi, 0xffffffff
mov ecx, ebx
mov dword [esp + 0x108], edi
call fcn.004fab70
mov eax, dword [esi + 8]
cmp eax, 2
jne 0x4f3488
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 4]
test edi, edi
je 0x4f3485
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov ecx, dword [ebx + 0x18]
push eax
call fcn.004b1970
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 0x18]
push edx
mov eax, dword [ecx]
call dword [eax + 0x68]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebx + 0x18]
push eax
call fcn.004b19a0
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 0x18]
push eax
mov edx, dword [ecx]
call dword [edx + 0x6c]
mov eax, dword [ebx + 0x18]
mov ecx, 0x20
lea esi, [eax + 0x7c]
lea edi, [eax + 0xfc]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
jmp 0x4f3510
or edi, 0xffffffff
push 4
call fcn.0055d252
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov dword [esp + 0x108], 1
je 0x4f34ae
mov ecx, eax
call fcn.004a7b90
jmp 0x4f34b0
xor eax, eax
mov ecx, dword [ebx + 0x18]
push eax
mov dword [esp + 0x10c], edi
call fcn.004b1970
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 0x18]
push eax
mov edx, dword [ecx]
call dword [edx + 0x68]
push 4
call fcn.0055d252
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov dword [esp + 0x108], 2
je 0x4f34f2
mov ecx, eax
call fcn.004a7b90
jmp 0x4f34f4
xor eax, eax
mov ecx, dword [ebx + 0x18]
push eax
mov dword [esp + 0x10c], edi
call fcn.004b19a0
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 0x18]
push eax
mov edx, dword [ecx]
call dword [edx + 0x6c]
mov ecx, dword [ebx + 0x18]
xor edi, edi
push edi
call fcn.004b19d0
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 0x18]
push eax
mov edx, dword [ecx]
call dword [edx + 0x70]
mov ecx, dword [ebx + 0x18]
push edi
call fcn.004b1a00
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 0x18]
push eax
mov edx, dword [ecx]
call dword [edx + 0x74]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x18]
cmp eax, edi
jne 0x4f357e
mov dword [ecx + 0x1b0], edi
mov dword [ecx + 0x1b4], edi
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 0x18]
mov edx, dword [ecx]
push eax
call dword [edx + 0x60]
mov ecx, dword [ebx + 0x18]
call fcn.004b1b30
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebx + 4]
cmp eax, edi
mov eax, dword [ebx + 0x18]
mov edx, dword [ecx]
push eax
je 0x4f3594
call dword [edx + 0xd4]
jmp 0x4f359a
call fcn.004b1d10
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 0x18]
push eax
mov edx, dword [ecx]
call dword [edx + 0xd8]
jmp 0x4f359a
call dword [edx + 0xd0]
mov ecx, dword [ebx + 0x18]
call fcn.004b1ac0
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax + 0x270]
mov edx, dword [eax + 0x274]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 0x278]
mov dword [esp + 0x30], edx
mov edx, dword [eax + 0x27c]
fld qword [esp + 0x2c]
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 0x280]
mov dword [esp + 0x38], edx
mov edx, dword [eax + 0x284]
mov dword [esp + 0x44], ecx
mov ecx, dword [eax + 0x288]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 0x28c]
fcomp qword [esp + 0x44]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
fnstsw ax
test ah, 0x41
je 0x4f3ad2
fld qword [esp + 0x34]
fcomp qword [esp + 0xc]
fnstsw ax
test ah, 0x41
je 0x4f3ad2
fld qword [esp + 0x34]
fmul qword [esp + 0x94]
fstp qword [esp + 0xb4]
fld qword [esp + 0x2c]
fmul qword [esp + 0x84]
fstp qword [esp + 0x14]
fld qword [esp + 0xa4]
fadd qword [esp + 0x14]
fadd qword [esp + 0xb4]
fst qword [esp + 0x24]
fld qword [esp + 0x34]
fmul qword [esp + 0x9c]
fstp qword [esp + 0x34]
fld qword [esp + 0x2c]
fmul qword [esp + 0x8c]
fld qword [esp + 0xac]
fadd st(1)
fadd qword [esp + 0x34]
fstp qword [esp + 0x1c]
fld qword [esp + 0xc]
fmul qword [esp + 0x94]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
fstp qword [esp + 0xc4]
fld qword [esp + 0xa4]
fadd qword [esp + 0xc4]
fadd qword [esp + 0x14]
fstp qword [esp + 0x14]
fld qword [esp + 0xc]
fmul qword [esp + 0x9c]
fstp qword [esp + 0xbc]
fld qword [esp + 0xac]
fadd qword [esp + 0xbc]
fadd st(1)
fstp qword [esp + 0xc]
fstp st(0)
fld qword [esp + 0x14]
fcomp qword [esp + 0x24]
fnstsw ax
test ah, 1
je 0x4f36f4
fstp st(0)
fld qword [esp + 0x14]
jmp 0x4f3713
fld qword [esp + 0x14]
fcomp qword [esp + 0x24]
fnstsw ax
test ah, 0x41
jne 0x4f3713
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
fld qword [esp + 0xc]
fcomp qword [esp + 0x1c]
fnstsw ax
test ah, 1
je 0x4f3734
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
jmp 0x4f3753
fld qword [esp + 0xc]
fcomp qword [esp + 0x1c]
fnstsw ax
test ah, 0x41
jne 0x4f3753
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
fld qword [esp + 0x44]
fmul qword [esp + 0x84]
fstp qword [esp + 0x2c]
fld qword [esp + 0xa4]
fadd qword [esp + 0x2c]
fadd qword [esp + 0xb4]
fstp qword [esp + 0x14]
fld qword [esp + 0x44]
fmul qword [esp + 0x8c]
fstp qword [esp + 0xb4]
fld qword [esp + 0xac]
fadd qword [esp + 0xb4]
fadd qword [esp + 0x34]
fstp qword [esp + 0xc]
fld qword [esp + 0x14]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x4f37b5
fstp st(0)
fld qword [esp + 0x14]
jmp 0x4f37d4
fld qword [esp + 0x14]
fcomp qword [esp + 0x24]
fnstsw ax
test ah, 0x41
jne 0x4f37d4
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
fld qword [esp + 0xc]
fcomp qword [esp + 0x3c]
fnstsw ax
test ah, 1
je 0x4f37f5
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
jmp 0x4f3814
fld qword [esp + 0xc]
fcomp qword [esp + 0x1c]
fnstsw ax
test ah, 0x41
jne 0x4f3814
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
fld qword [esp + 0xa4]
fadd qword [esp + 0x2c]
fadd qword [esp + 0xc4]
fstp qword [esp + 0x14]
fld qword [esp + 0xac]
fadd qword [esp + 0xb4]
fadd qword [esp + 0xbc]
fstp qword [esp + 0xc]
fld qword [esp + 0x14]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x4f3858
fstp st(0)
fld qword [esp + 0x14]
jmp 0x4f3877
fld qword [esp + 0x14]
fcomp qword [esp + 0x24]
fnstsw ax
test ah, 0x41
jne 0x4f3877
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
fld qword [esp + 0xc]
fcomp qword [esp + 0x3c]
fnstsw ax
test ah, 1
je 0x4f3898
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
jmp 0x4f38b7
fld qword [esp + 0xc]
fcomp qword [esp + 0x1c]
fnstsw ax
test ah, 0x41
jne 0x4f38b7
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
fld qword [esi + 0x30]
fabs
fstp qword [esp + 0x34]
fld qword [esi + 0x38]
fabs
fstp qword [esp + 0x2c]
sub esp, 8
fsub qword [esi + 0x20]
fdiv qword [esp + 0x3c]
fstp qword [esp]
call fcn.00506364
call fcn.00502d0c
fld qword [esp + 0x2c]
fsub qword [esi + 0x10]
mov dword [esp + 0x1c], eax
fdiv qword [esp + 0x3c]
fstp qword [esp]
call fcn.00502c3a
call fcn.00502d0c
fld qword [esp + 0x44]
fsub qword [esi + 0x28]
inc eax
mov dword [esp + 0x4c], eax
fdiv qword [esp + 0x34]
fstp qword [esp]
call fcn.00506364
call fcn.00502d0c
fld qword [esp + 0x24]
fsub qword [esi + 0x18]
mov dword [esp + 0x2c], eax
fdiv qword [esp + 0x34]
fstp qword [esp]
call fcn.00502c3a
add esp, 8
call fcn.00502d0c
mov ecx, 8
lea esi, [esp + 0xd0]
lea edi, [esp + 0x54]
inc eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x1c], eax
mov edx, dword [ecx]
call dword [edx + 0xc]
test eax, eax
je 0x4f39ee
mov eax, dword [esp + 0xf0]
mov ecx, dword [esp + 0xf4]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0xfc]
mov edx, dword [esp + 0xf8]
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
cmp dword [eax + 0x40], 7
jne 0x4f399c
mov edx, dword [eax + 0x48]
jmp 0x4f399e
xor edx, edx
mov esi, dword [esp + 0x30]
mov ecx, dword [ebx + 4]
push esi
mov esi, dword [esp + 0x30]
push esi
mov esi, dword [esp + 0x40]
push esi
mov esi, dword [esp + 0x40]
push esi
mov esi, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x58]
push esi
mov esi, dword [esp + 0x3c]
push esi
mov esi, dword [esp + 0x30]
push esi
lea esi, [eax + 0x10]
push esi
lea esi, [esp + 0x78]
mov edi, dword [ecx]
push esi
push edx
mov edx, dword [eax + 8]
add eax, 0x80
push edx
push eax
mov eax, dword [ebx + 0x18]
push eax
call dword [edi + 0xc0]
jmp 0x4f3ad2
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
mov dword [esp + 0x24], eax
jge 0x4f3ad2
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x44]
cmp edi, eax
mov dword [esp + 0xc], edi
jge 0x4f3abd
fild dword [esp + 0x24]
mov esi, dword [ebp + 8]
fmul qword [esp + 0x2c]
fld st(0)
fmul qword [esp + 0xe0]
fstp qword [esp + 0xbc]
fmul qword [esp + 0xe8]
fstp qword [esp + 0xc4]
fild dword [esp + 0xc]
cmp dword [esi + 0x40], 7
fmul qword [esp + 0x34]
fld st(0)
fmul qword [esp + 0xd0]
fadd qword [esp + 0xbc]
fadd qword [esp + 0xf0]
fstp qword [esp + 0x74]
fmul qword [esp + 0xd8]
fadd qword [esp + 0xc4]
fadd qword [esp + 0xf8]
fstp qword [esp + 0x7c]
jne 0x4f3a86
mov ecx, dword [esi + 0x48]
jmp 0x4f3a88
xor ecx, ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esi + 0x10]
push 0
lea edx, [esp + 0x74]
push eax
push edx
lea eax, [esi + 0x80]
push ecx
push eax
mov ecx, ebx
call fcn.004fa2a0
mov eax, dword [esp + 0x44]
inc edi
cmp edi, eax
mov dword [esp + 0xc], edi
jl 0x4f3a3f
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x4f3a02
mov ecx, ebx
call fcn.004fab90
mov eax, dword [esp + 0x50]
mov ecx, dword [ebx + 0x18]
push eax
call fcn.004b1500
mov ecx, dword [esp + 0x100]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc