Function at 0x4d4800
Capabilities:
Check for peb ntglobalflag flag
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52bd81
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
lea eax, [ebx + 8]
lea ecx, [esp + 0x160]
push eax
call fcn.0049bfc0
mov ecx, dword [ebp + 0x10]
xor edi, edi
add ecx, 8
mov dword [esp + 0x3a0], edi
push ecx
lea ecx, [esp + 0xac]
call fcn.0049bfc0
lea ecx, [esp + 0x68]
mov byte [esp + 0x3a0], 1
call fcn.004c5e30
lea ecx, [esp + 0x218]
mov byte [esp + 0x3a0], 2
call fcn.004e0580
mov dword [esp + 0x20], 0x534148
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
lea ecx, [esp + 0x2a8]
mov byte [esp + 0x3a0], 4
call fcn.004e3950
lea edx, [esp + 0x68]
lea ecx, [esp + 0x160]
push edx
push edi
mov byte [esp + 0x3a8], 5
call fcn.004a36f0
lea eax, [esp + 0x160]
lea ecx, [esp + 0x2a8]
push eax
call fcn.004e3c00
lea ecx, [esp + 0x68]
lea edx, [esp + 0x1a8]
push ecx
push edx
call fcn.004cf620
add esp, 8
lea eax, [esp + 0x1a8]
mov ecx, 0x5ac440
push eax
call fcn.00488080
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00488500
fstp qword [0x5ac528]
lea ecx, [esp + 0xa8]
call fcn.0049c1a0
fstp qword [esp + 0x3c]
lea ecx, [esp + 0x160]
call fcn.0049c1a0
fadd qword [esp + 0x3c]
sub esp, 0x20
mov ecx, esp
mov dword [esp + 0x3c], esp
push esi
fstp qword [0x5ac530]
call fcn.00487fa0
lea ecx, [esp + 0xc8]
lea edx, [esp + 0x88]
push ecx
push edx
lea ecx, [esp + 0x240]
call fcn.004e06a0
push edi
push edi
push 0x4d1660
push edi
push edi
push 0x3ff00000
lea eax, [esp + 0x2c0]
push edi
lea ecx, [esp + 0x3c]
push eax
lea edx, [esp + 0xc8]
push ecx
push edx
lea ecx, [esp + 0x240]
call fcn.004e3300
test al, al
je 0x4d4dd8
lea eax, [esp + 0x68]
lea ecx, [esp + 0xa8]
push eax
push edi
call fcn.004a36f0
lea ecx, [esp + 0xa8]
mov dword [esp + 0xc], edi
push ecx
lea ecx, [esp + 0x2ac]
mov dword [esp + 0x14], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call fcn.004e3c00
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
cmp eax, edi
jle 0x4d4cfc
mov eax, dword [esp + 0x24]
fld qword [esp + 0xc]
fld qword [esp + 0x34]
lea edi, [eax + 0x20]
lea esi, [eax + 0x18]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], esi
fld qword [edi]
fsub st(1)
sub esp, 8
lea ecx, [esp + 0xb0]
sub esp, 8
fstp qword [esp + 8]
fstp st(0)
fld qword [esi]
fsub st(1)
fstp qword [esp]
fstp st(0)
call fcn.0049c2b0
lea edx, [esp + 0x1a8]
lea ecx, [esp + 0x68]
push edx
call fcn.00488080
lea eax, [esp + 0xf0]
lea ecx, [esp + 0x68]
push eax
call fcn.004880c0
lea ecx, [esp + 0x68]
call fcn.00488370
fcomp qword [ebp + 0x1c]
fnstsw ax
test ah, 0x41
je 0x4d4ccf
lea ecx, [esp + 0xa8]
lea edx, [esp + 0x160]
push ecx
lea eax, [esp + 0x40]
push edx
push eax
call fcn.004d5af0
mov eax, dword [ebp + 0x18]
add esp, 0xc
test eax, eax
mov dword [esp + 0x34], 0
jle 0x4d4ccf
mov edi, dword [ebp + 0x14]
jmp 0x4d4a88
mov ebx, dword [ebp + 0xc]
mov eax, dword [edi]
lea ecx, [eax + 8]
call fcn.0049c1a0
fstp qword [esp + 0xc]
lea ecx, [esp + 0xa8]
call fcn.0049c1a0
fadd qword [esp + 0xc]
lea ecx, [esp + 0x160]
fstp qword [esp + 0xc]
call fcn.0049c1a0
fadd qword [esp + 0xc]
mov edx, dword [ebp + 0x10]
fstp qword [0x5ac530]
mov ecx, dword [edi]
push ecx
push edx
push ebx
call fcn.004d44c0
fstp qword [0x5ac528]
mov eax, dword [edi]
add esp, 0xc
mov ecx, dword [eax + 0x78]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x68]
mov edx, dword [eax + 0x7c]
mov dword [esp + 0x50], edx
call fcn.00488370
fld qword [esp + 0x4c]
fcompp
fnstsw ax
test ah, 1
je 0x4d4b07
lea ecx, [esp + 0x68]
call fcn.00488370
jmp 0x4d4b0c
mov eax, dword [edi]
fld qword [eax + 0x78]
mov ecx, dword [edi]
mov edx, dword [ecx + 0x70]
fstp qword [esp + 0xc]
mov eax, dword [ecx + 0x74]
lea ecx, [esp + 0x68]
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
call fcn.00488350
fld qword [esp + 0x44]
fcompp
fnstsw ax
test ah, 1
je 0x4d4b41
lea ecx, [esp + 0x68]
call fcn.00488350
jmp 0x4d4b46
mov ecx, dword [edi]
fld qword [ecx + 0x70]
fmul qword [esp + 0xc]
fcomp qword [0x5ac528]
fnstsw ax
test ah, 1
je 0x4d4cad
mov eax, dword [edi]
mov ecx, dword [ebp + 0x20]
lea edx, [esp + 0x58]
push edx
mov edx, dword [ebp + 0x1c]
push eax
push ecx
lea eax, [esp + 0x2b4]
push edx
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x78]
push eax
mov eax, dword [esp + 0x50]
push ecx
push edx
push eax
call fcn.004d4e80
fcomp qword [0x5ac528]
add esp, 0x20
fnstsw ax
test ah, 1
je 0x4d4cad
push 0xc0
call fcn.0051af44
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov byte [esp + 0x3a0], 6
je 0x4d4bc3
mov ecx, eax
call fcn.004cf350
mov esi, eax
jmp 0x4d4bc5
xor esi, esi
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ecx
mov edx, dword [edi]
mov dword [esi + 0x24], edx
mov ecx, dword [esp + 0x58]
lea eax, [esi + 0x90]
mov byte [esp + 0x3a0], 5
mov dword [eax], ecx
mov edx, dword [esp + 0x5c]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x60]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x64]
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0x140]
lea eax, [esi + 0x80]
mov dword [esi + 0x80], ecx
mov edx, dword [esp + 0x144]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x148]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x14c]
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0x1f8]
lea eax, [esi + 0x70]
mov dword [esi + 0x70], ecx
mov edx, dword [esp + 0x1fc]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x200]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x204]
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.004d4100
cmp eax, 1
jne 0x4d4ca1
mov ecx, dword [ebp + 0x24]
push 0xffffffffffffffff
mov ebx, dword [ecx + 8]
lea eax, [ebx + 1]
push eax
call fcn.004ecdd0
mov ecx, dword [ebp + 0x24]
mov eax, 6
mov edx, dword [ecx + 4]
mov ecx, dword [ebp + 0xc]
mov dword [edx + ebx*4], esi
mov edx, dword [ecx + 0xf0]
cmp edx, eax
jl 0x4d4cad
mov edx, dword [ebp + 0x10]
cmp dword [edx + 0xf0], eax
jge 0x4d4da3
jmp 0x4d4cad
test esi, esi
je 0x4d4cad
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov eax, dword [esp + 0x34]
mov ecx, dword [ebp + 0x18]
inc eax
add edi, 4
cmp eax, ecx
mov dword [esp + 0x34], eax
jl 0x4d4a85
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ebx, dword [ebp + 0xc]
fld qword [esi]
fld qword [edi]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
add esi, 0x40
add edi, 0x40
inc eax
mov dword [esp + 0x18], esi
cmp eax, ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], eax
jl 0x4d49f2
fstp st(0)
fstp st(0)
xor edi, edi
lea ecx, [esp + 0x2a8]
mov byte [esp + 0x3a0], 4
call fcn.004e39e0
mov dword [esp + 0x20], 0x534148
mov eax, dword [esp + 0x24]
mov byte [esp + 0x3a0], 8
cmp eax, edi
je 0x4d4d31
push eax
call fcn.0051aee4
add esp, 4
lea ecx, [esp + 0x218]
mov dword [esp + 0x20], 0x53138c
mov byte [esp + 0x3a0], 2
call fcn.004e0610
lea ecx, [esp + 0x68]
mov byte [esp + 0x3a0], 1
call fcn.004886c0
lea ecx, [esp + 0xa8]
mov byte [esp + 0x3a0], 0
call fcn.0049c070
lea ecx, [esp + 0x160]
mov dword [esp + 0x3a0], 0xffffffff
call fcn.0049c070
mov eax, 1
mov ecx, dword [esp + 0x398]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x2a8]
mov byte [esp + 0x3a0], 4
call fcn.004e39e0
mov dword [esp + 0x20], 0x534148
mov eax, dword [esp + 0x24]
mov byte [esp + 0x3a0], 7
test eax, eax
je 0x4d4d31
jmp 0x4d4d28
lea ecx, [esp + 0x2a8]
mov byte [esp + 0x3a0], 4
call fcn.004e39e0
mov dword [esp + 0x20], 0x534148
mov eax, dword [esp + 0x24]
mov byte [esp + 0x3a0], 9
cmp eax, edi
je 0x4d4e0d
push eax
call fcn.0051aee4
add esp, 4
lea ecx, [esp + 0x218]
mov dword [esp + 0x20], 0x53138c
mov byte [esp + 0x3a0], 2
call fcn.004e0610
lea ecx, [esp + 0x68]
mov byte [esp + 0x3a0], 1
call fcn.004886c0
lea ecx, [esp + 0xa8]
mov byte [esp + 0x3a0], 0
call fcn.0049c070
lea ecx, [esp + 0x160]
mov dword [esp + 0x3a0], 0xffffffff
call fcn.0049c070
mov ecx, dword [esp + 0x398]
pop edi
pop esi
or eax, 0xffffffff
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret