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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52be4c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3a4
mov eax, dword [ebp + 8]
push ebx
push esi
add eax, 8
push edi
push eax
lea ecx, [esp + 0xc4]
call fcn.0049bfc0
mov ecx, dword [ebp + 0xc]
xor edi, edi
add ecx, 8
mov dword [esp + 0x3b8], edi
push ecx
lea ecx, [esp + 0x17c]
call fcn.0049bfc0
lea ecx, [esp + 0x80]
mov byte [esp + 0x3b8], 1
call fcn.004c5e30
lea ecx, [esp + 0x230]
mov byte [esp + 0x3b8], 2
call fcn.004e0580
mov esi, 0x534148
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
lea ecx, [esp + 0x2c0]
mov byte [esp + 0x3b8], 4
call fcn.004e3950
lea edx, [esp + 0x80]
lea ecx, [esp + 0xc0]
push edx
push edi
mov byte [esp + 0x3c0], 5
call fcn.004a36f0
lea eax, [esp + 0xc0]
lea ecx, [esp + 0x2c0]
push eax
call fcn.004e3c00
lea ecx, [esp + 0x108]
push ecx
lea ecx, [esp + 0x48]
call fcn.00487fa0
lea ecx, [esp + 0x178]
mov byte [esp + 0x3b8], 6
call fcn.0049c1a0
fstp qword [esp + 0x14]
lea ecx, [esp + 0xc0]
call fcn.0049c1a0
fadd qword [esp + 0x14]
lea ecx, [esp + 0x44]
fstp qword [0x5ac530]
call fcn.00488500
fstp qword [0x5ac528]
lea edx, [esp + 0x108]
mov ecx, 0x5ac440
push edx
call fcn.00488080
mov eax, dword [esp + 0x158]
mov ecx, dword [esp + 0x15c]
mov edx, dword [esp + 0x160]
mov dword [0x5ac518], eax
mov eax, dword [esp + 0x164]
mov dword [0x5ac51c], ecx
lea ecx, [esp + 0xc0]
mov dword [0x5ac520], edx
mov dword [0x5ac524], eax
call fcn.0049c1a0
fmul qword [0x5ac518]
lea ecx, [esp + 0xc0]
fstp qword [0x5ac518]
call fcn.0049c1a0
fmul qword [0x5ac520]
fstp qword [0x5ac520]
lea ecx, [esp + 0x80]
lea edx, [esp + 0x44]
push ecx
push edx
call fcn.004cf620
fld qword [esp + 0x4c]
fsub qword [0x5317a0]
sub esp, 0x18
lea eax, [esp + 0x64]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
fstp qword [esp + 0x68]
fld qword [esp + 0x70]
fsub qword [0x5317a0]
fstp qword [esp + 0x70]
fld qword [esp + 0x78]
fadd qword [0x5317a0]
fstp qword [esp + 0x78]
fld qword [esp + 0x80]
fadd qword [0x5317a0]
fstp qword [esp + 0x80]
call fcn.00487fa0
lea ecx, [esp + 0x198]
lea edx, [esp + 0xa0]
push ecx
push edx
lea ecx, [esp + 0x258]
call fcn.004e06a0
push 0x4e2d60
push edi
push 0x4d15a0
push edi
push edi
push 0x3ff00000
lea eax, [esp + 0x2d8]
push edi
lea ecx, [esp + 0x3c]
push eax
lea edx, [esp + 0x198]
push ecx
push edx
lea ecx, [esp + 0x258]
call fcn.004e3300
test al, al
je 0x4d58ae
lea eax, [esp + 0x80]
lea ecx, [esp + 0x178]
push eax
push edi
call fcn.004a36f0
lea ecx, [esp + 0x178]
mov dword [esp + 0x14], edi
push ecx
lea ecx, [esp + 0x2c4]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call fcn.004e3c00
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], edi
cmp eax, edi
jle 0x4d57b1
mov edx, dword [esp + 0x24]
mov ebx, dword [ebp + 0x18]
fld qword [esp + 0x14]
fld qword [esp + 0x34]
lea esi, [edx + 0x20]
mov dword [esp + 0x3c], esi
fld qword [esi]
fsub st(1)
sub esp, 8
lea ecx, [esp + 0x180]
sub esp, 8
fstp qword [esp + 8]
fstp st(0)
fld qword [esi - 8]
fsub st(1)
fstp qword [esp]
fstp st(0)
call fcn.0049c2b0
lea eax, [esp + 0x108]
lea ecx, [esp + 0x80]
push eax
call fcn.00488080
lea ecx, [esp + 0x178]
call fcn.0049c1a0
fstp qword [esp + 0x14]
lea ecx, [esp + 0xc0]
call fcn.0049c1a0
mov ecx, dword [esp + 0x158]
mov edx, dword [esp + 0x15c]
fadd qword [esp + 0x14]
mov eax, dword [esp + 0x160]
mov dword [0x5ac518], ecx
mov ecx, dword [esp + 0x164]
mov dword [0x5ac51c], edx
mov dword [0x5ac524], ecx
lea ecx, [esp + 0xc0]
fstp qword [esp + 0x74]
mov dword [0x5ac520], eax
call fcn.0049c1a0
fmul qword [0x5ac518]
lea ecx, [esp + 0xc0]
fstp qword [0x5ac518]
call fcn.0049c1a0
fmul qword [0x5ac520]
lea ecx, [esp + 0x178]
fstp qword [0x5ac520]
call fcn.0049c1a0
fmul qword [esp + 0x210]
lea ecx, [esp + 0x178]
fadd qword [0x5ac518]
fstp qword [0x5ac518]
call fcn.0049c1a0
fmul qword [esp + 0x218]
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x40], edi
cmp eax, edi
fadd qword [0x5ac520]
fstp qword [0x5ac520]
jle 0x4d5787
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x34], edi
mov eax, dword [edi]
lea ecx, [eax + 8]
call fcn.0049c1a0
fadd qword [esp + 0x74]
lea edx, [esp + 0x64]
lea ecx, [esp + 0x2c0]
push edx
lea edx, [esp + 0x84]
fstp qword [0x5ac530]
mov eax, dword [edi]
push eax
push ecx
push edx
call fcn.004d5970
add esp, 0x10
test al, al
je 0x4d5766
push 0xc0
call fcn.0051af44
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x3b8], 7
je 0x4d568e
mov ecx, eax
call fcn.004cf350
mov esi, eax
jmp 0x4d5690
xor esi, esi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ecx
mov edx, dword [edi]
lea eax, [esi + 0x90]
mov dword [esi + 0x24], edx
mov ecx, dword [esp + 0x64]
mov dword [eax], ecx
mov edx, dword [esp + 0x68]
mov byte [esp + 0x3b8], 6
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x70]
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0x210]
lea eax, [esi + 0x80]
mov dword [esi + 0x80], ecx
mov edx, dword [esp + 0x214]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x218]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x21c]
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0x158]
lea eax, [esi + 0x70]
mov dword [esi + 0x70], ecx
mov edx, dword [esp + 0x15c]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x160]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x164]
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.004d4100
cmp eax, 1
jne 0x4d575a
mov edi, dword [ebx + 8]
push 0xffffffffffffffff
mov ecx, ebx
lea eax, [edi + 1]
push eax
call fcn.004ecdd0
mov ecx, dword [ebx + 4]
mov dword [ecx + edi*4], esi
mov eax, dword [ebx + 8]
cmp eax, 4
jg 0x4d5868
mov edi, dword [esp + 0x34]
jmp 0x4d5766
test esi, esi
je 0x4d5766
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov eax, dword [esp + 0x40]
mov ecx, dword [ebp + 0x14]
inc eax
add edi, 4
cmp eax, ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], edi
jl 0x4d562a
mov esi, dword [esp + 0x3c]
xor edi, edi
fld qword [esi - 8]
fld qword [esi]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
add esi, 0x40
inc eax
cmp eax, ecx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x10], eax
jl 0x4d5515
fstp st(0)
fstp st(0)
mov esi, 0x534148
lea ecx, [esp + 0x44]
mov byte [esp + 0x3b8], 5
call fcn.00519440
lea ecx, [esp + 0x2c0]
mov byte [esp + 0x3b8], 4
call fcn.004e39e0
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x24]
mov byte [esp + 0x3b8], 9
cmp eax, edi
je 0x4d57f3
push eax
call fcn.0051aee4
add esp, 4
lea ecx, [esp + 0x230]
mov dword [esp + 0x20], 0x53138c
mov byte [esp + 0x3b8], 2
call fcn.004e0610
lea ecx, [esp + 0x80]
mov byte [esp + 0x3b8], 1
call fcn.004886c0
lea ecx, [esp + 0x178]
mov byte [esp + 0x3b8], 0
call fcn.0049c070
lea ecx, [esp + 0xc0]
mov dword [esp + 0x3b8], 0xffffffff
call fcn.0049c070
mov eax, 1
mov ecx, dword [esp + 0x3b0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x44]
mov byte [esp + 0x3b8], 5
call fcn.00519440
lea ecx, [esp + 0x2c0]
mov byte [esp + 0x3b8], 4
call fcn.004e39e0
mov dword [esp + 0x20], 0x534148
mov eax, dword [esp + 0x24]
mov byte [esp + 0x3b8], 8
test eax, eax
je 0x4d57f3
jmp 0x4d57ea
lea ecx, [esp + 0x44]
mov byte [esp + 0x3b8], 5
call fcn.00519440
lea ecx, [esp + 0x2c0]
mov byte [esp + 0x3b8], 4
call fcn.004e39e0
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x24]
mov byte [esp + 0x3b8], 0xa
cmp eax, edi
je 0x4d58f0
push eax
call fcn.0051aee4
add esp, 4
lea ecx, [esp + 0x230]
mov dword [esp + 0x20], 0x53138c
mov byte [esp + 0x3b8], 2
call fcn.004e0610
lea ecx, [esp + 0x80]
mov byte [esp + 0x3b8], 1
call fcn.004886c0
lea ecx, [esp + 0x178]
mov byte [esp + 0x3b8], 0
call fcn.0049c070
lea ecx, [esp + 0xc0]
mov dword [esp + 0x3b8], 0xffffffff
call fcn.0049c070
mov ecx, dword [esp + 0x3b0]
pop edi
pop esi
or eax, 0xffffffff
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret