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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51c9cf
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x5750c8]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
test byte [0x5fd298], 1
jne 0x4d7276
or dword [0x5fd298], 1
mov dword [esp + 0x80], 0
call fcn.004f4090
push 0x529300
call fcn.0045f177
add esp, 4
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [0x5fd1d8]
test eax, eax
je 0x4d7284
fld dword [eax + 0x68]
jmp 0x4d7286
fld1
mov eax, dword [0x5768d8]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
cdq
fmul dword [0x5fcff8]
sub eax, edx
sar eax, 1
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fcompp
fnstsw ax
test ah, 5
jp 0x4d7310
cmp dword [esi + 0x3c], 0
jne 0x4d72f9
test byte [0x5fd2b8], 1
jne 0x4d72dc
or dword [0x5fd2b8], 1
mov ecx, 0x54e4cc
call fcn.00419140
mov dword [0x5fd2b4], eax
mov eax, dword [0x5fd2b4]
push eax
call fcn.004fa0d0
mov edx, eax
call fcn.004f8290
mov dword [esi + 0x3c], eax
test eax, eax
je 0x4d72f9
mov byte [eax + 0x4c], 1
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x3c]
mov dword [eax + 8], ecx
mov edx, dword [esi + 0x14]
mov dword [eax + 0xc], edx
mov ecx, dword [esi + 0x18]
mov dword [eax + 0x10], ecx
jmp 0x4d735a
cmp byte [0x5b2aef], 0
je 0x4d733f
cmp dword [esi + 0x3c], 0
jne 0x4d735a
mov edx, dword [0x5b2afc]
push edx
call fcn.004fa0d0
mov edx, eax
call fcn.004f8290
mov dword [esi + 0x3c], eax
test eax, eax
je 0x4d735a
mov byte [eax + 0x4c], 1
jmp 0x4d735a
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4d735a
push eax
call fcn.004fa0d0
mov edi, eax
call fcn.004f8080
mov dword [esi + 0x3c], 0
fldz
fcomp dword [0x5b3084]
fnstsw ax
test ah, 5
jnp 0x4d771a
cmp byte [0x5b2aee], 0
je 0x4d771a
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4d7393
mov ecx, dword [esi + 0x10]
mov dword [eax + 8], ecx
mov edx, dword [esi + 0x14]
mov dword [eax + 0xc], edx
mov ecx, dword [esi + 0x18]
mov dword [eax + 0x10], ecx
lea ecx, [esi + 0x70]
lea eax, [esp + 0x38]
lea edx, [esi + 0x10]
call fcn.00403710
fld dword [esi + 0x70]
fcomp qword [0x5557e0]
mov byte [esp + 0x17], 1
fnstsw ax
test ah, 0x41
jnp 0x4d73bc
mov byte [esp + 0x17], 0
mov cl, byte [esi + 0x13c]
fld dword [esp + 0x3c]
fld dword [esp + 0x38]
test cl, cl
jne 0x4d73eb
fld st(1)
fld st(1)
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fcomp qword [0x5557d8]
fnstsw ax
test ah, 1
je 0x4d7415
test cl, cl
je 0x4d7404
fld st(1)
fld st(1)
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fcomp qword [0x5557d0]
fnstsw ax
test ah, 1
je 0x4d7415
cmp byte [esp + 0x17], 0
jne 0x4d7415
cmp dword [esi + 0x58], 0
jg 0x4d770f
fld dword [esp + 0x40]
push ecx
fld st(1)
fmulp st(2)
fld st(2)
fmulp st(3)
fxch st(1)
faddp st(2)
fmul st(0), st(0)
faddp st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp]
call fcn.00416580
fcomp qword [0x555710]
add esp, 4
fnstsw ax
test ah, 0x41
jne 0x4d7458
mov edx, esi
call fcn.004d4140
mov byte [esp + 0x17], 1
jmp 0x4d745f
cmp byte [esp + 0x17], 0
je 0x4d74d4
mov edx, dword [esi + 0x10]
mov dword [esi + 0x70], edx
mov eax, dword [esi + 0x14]
mov dword [esi + 0x74], eax
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x78], ecx
mov edx, dword [esi + 0x10]
mov dword [esi + 0x7c], edx
mov eax, dword [esi + 0x14]
mov dword [esi + 0x80], eax
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x84], ecx
mov edx, dword [esi + 0x10]
mov dword [esi + 0x88], edx
mov eax, dword [esi + 0x14]
mov dword [esi + 0x8c], eax
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x90], ecx
lea ecx, [esi + 0x70]
lea eax, [esp + 0x50]
mov edx, 0x57c388
call fcn.00403710
mov edx, dword [eax]
mov dword [esp + 0x38], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x3c], ecx
mov edx, dword [eax + 8]
lea ecx, [esp + 0x38]
mov dword [esp + 0x40], edx
call fcn.00402a70
fstp st(0)
fld dword [esp + 0x38]
mov eax, dword [esi + 0x58]
fstp dword [esp + 0x5c]
sub eax, 2
fld dword [esp + 0x3c]
lea ecx, [esp + 0x5c]
fstp dword [esp + 0x60]
mov dword [esi + 0x134], eax
fld dword [esp + 0x40]
fstp dword [esp + 0x64]
call fcn.00402a70
fstp dword [esp + 0x20]
mov ecx, esi
fld dword [0x5551d8]
fstp dword [esp + 0x28]
call fcn.004d5f60
cmp byte [esp + 0x17], 0
fstp dword [esp + 0x1c]
fld dword [esi + 0x70]
fstp dword [esp + 0x44]
fld dword [esi + 0x74]
fstp dword [esp + 0x48]
fld dword [esi + 0x78]
fstp dword [esp + 0x4c]
jne 0x4d7629
fld dword [0x5551d8]
fstp dword [esp + 0x18]
fld dword [esp + 0x20]
fcom qword [0x554b80]
fnstsw ax
test ah, 0x41
jne 0x4d7627
fld dword [esp + 0x1c]
fld1
fsubrp st(1)
fstp qword [esp + 0x2c]
fld dword [esp + 0x18]
jmp 0x4d756d
fxch st(1)
fdivrp st(1)
lea ecx, [esp + 0x28]
lea eax, [esp + 0x68]
lea edx, [esp + 0x5c]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fmul qword [esp + 0x2c]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x24]
call fcn.004037a0
mov ecx, eax
lea eax, [esp + 0x50]
lea edx, [esp + 0x44]
call fcn.00403dd0
fld dword [esp + 0x24]
sub esp, 0x10
fstp dword [esp + 0xc]
mov eax, esp
fld dword [esp + 0x48]
mov dword [esp + 0x34], esp
fstp dword [eax]
sub esp, 0xc
fld dword [esp + 0x58]
mov dword [esp + 0x40], esp
fstp dword [eax + 4]
fld dword [esp + 0x5c]
fstp dword [eax + 8]
mov eax, esp
fld dword [esp + 0x6c]
fstp dword [eax]
fld dword [esp + 0x70]
fstp dword [eax + 4]
fld dword [esp + 0x74]
fstp dword [eax + 8]
call fcn.004d59b0
fld dword [esp + 0x18]
mov eax, dword [esp + 0x58]
fadd qword [0x554b80]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x4c], eax
fstp dword [esp + 0x18]
mov dword [esp + 0x44], ecx
fld dword [esp + 0x18]
mov dword [esp + 0x48], edx
fld dword [esp + 0x20]
fcom st(1)
fnstsw ax
test ah, 0x41
je 0x4d756b
fstp st(0)
fstp st(0)
cmp dword [esi + 0x3c], 0
je 0x4d7693
cmp byte [0x5b2aef], 2
jne 0x4d7693
fld dword [esp + 0x3c]
sub esp, 8
fstp dword [esp + 4]
fld dword [esp + 0x40]
fstp dword [esp]
call fcn.00416360
mov ecx, dword [esi + 0x3c]
movzx eax, ax
neg eax
movzx eax, ax
shr eax, 4
add eax, 0x400
add esp, 8
fld dword [eax*4 + 0x546b98]
and eax, 0xfff
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fchs
fstp dword [ecx + 0x34]
mov ecx, dword [esi + 0x3c]
fld dword [eax*4 + 0x547b98]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fstp dword [ecx + 0x30]
fld1
sub esp, 0x10
lea ecx, [esp + 0x54]
fstp dword [esp + 0xc]
mov eax, esp
lea edx, [esi + 0x10]
mov dword [esp + 0x38], esp
call fcn.00403710
fld dword [esi + 0x10]
sub esp, 0xc
mov eax, esp
fstp dword [eax]
mov dword [esp + 0x44], esp
fld dword [esi + 0x14]
fstp dword [eax + 4]
fld dword [esi + 0x18]
fstp dword [eax + 8]
call fcn.004d59b0
mov ecx, 2
lea eax, [esi + 0x88]
mov edx, dword [eax - 0xc]
mov dword [eax], edx
mov edx, dword [eax - 8]
mov dword [eax + 4], edx
mov edx, dword [eax - 4]
mov dword [eax + 8], edx
sub eax, 0xc
dec ecx
jne 0x4d76d8
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
mov dword [esi + 0x70], eax
mov eax, dword [esi + 0x58]
sub eax, 2
mov dword [esi + 0x74], ecx
mov dword [esi + 0x78], edx
mov dword [esi + 0x138], eax
jmp 0x4d7713
fstp st(1)
fstp st(0)
or byte [esi + 0x13c], 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret