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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x765e2c
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x9727c0]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x9727c0]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x28], esi
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 0x98
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], eax
call fcn.00732133
pop ecx
mov dword [esp + 0x24], eax
xor ebx, ebx
mov dword [esp + 0x88], ebx
test eax, eax
je 0x4cdf1f
push edi
mov ecx, eax
call fcn.0060d2f1
jmp 0x4cdf21
mov eax, ebx
or dword [esp + 0x88], 0xffffffff
lea ecx, [esp + 0x50]
push eax
call fcn.004c7ef5
mov dword [esp + 0x88], 1
lea eax, [esp + 0x50]
push dword [esp + 0x2c]
mov ecx, esi
push eax
call fcn.004c91a1
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov byte [esp + 0x88], 3
lea edi, [esi + 0xdc]
mov dword [esp + 0x10], edi
mov ecx, edi
mov eax, dword [edi]
mov byte [esp + 0x14], bl
call dword [eax]
mov byte [esp + 0x14], 1
mov byte [esp + 0x88], 4
lea eax, [esp + 0x18]
push dword [esp + 0x1c]
lea ecx, [esi + 0x168]
push eax
call fcn.004d2158
mov eax, dword [esp + 0x18]
cmp eax, dword [esi + 0x168]
jne 0x4cdfb7
mov byte [esp + 0x88], 3
mov ecx, edi
mov eax, dword [edi]
mov byte [esp + 0x14], bl
call dword [eax + 8]
jmp 0x4ce19a
add eax, 0x18
lea ecx, [esp + 0x30]
push eax
call fcn.004d202b
mov ecx, dword [esp + 0x28]
push dword [esp + 0x1c]
add ecx, 0x170
call fcn.004d219d
mov byte [eax], 1
mov byte [esp + 0x88], 3
mov ecx, edi
mov eax, dword [edi]
mov byte [esp + 0x14], bl
call dword [eax + 8]
mov ebx, dword [esp + 0x30]
mov ebx, dword [ebx]
mov dword [esp + 0x24], ebx
mov eax, dword [ebx]
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x4ce196
lea esi, [eax + 0x10]
push esi
lea ecx, [esp + 0x3c]
call fcn.00482554
mov byte [esp + 0x88], 7
lea eax, [esp + 0x40]
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x44]
mov eax, dword [esi + 8]
mov dword [esp + 0x40], eax
lea eax, [esi + 0xc]
push eax
call fcn.00481095
mov byte [esp + 0x88], 0xa
lea ecx, [esp + 0x14]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x3c]
push eax
call fcn.00481095
mov byte [esp + 0x88], 0xc
mov eax, dword [esp + 0x1c]
push dword [esp + 0x10]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x10]
test al, al
je 0x4ce15e
push dword [esp + 0x2c]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.004caced
mov byte [esp + 0x88], 0xd
xor eax, eax
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 0x60], eax
jne 0x4ce0a6
cmp dword [ecx + 0x78], eax
jne 0x4ce0a6
cmp dword [ecx + 0x90], eax
je 0x4ce0b9
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.004c91a1
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x44]
push eax
call fcn.00481095
mov byte [esp + 0x88], 0xf
mov edi, dword [esp + 0x48]
mov esi, dword [edi]
mov edi, dword [edi + 4]
cmp esi, edi
je 0x4ce130
mov ebx, dword [esi]
test ebx, ebx
je 0x4ce12b
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x60]
push eax
mov dword [esp + 0x24], 0xd
call fcn.00609de3
mov byte [esp + 0x88], 0x10
mov ecx, ebx
mov edx, dword [ebx]
push eax
push 0xd
lea eax, [esp + 0x28]
push eax
call dword [edx]
mov byte [esp + 0x88], 0xf
lea ecx, [esp + 0x60]
push 0
push 1
call fcn.00482a51
add esi, 4
jmp 0x4ce0e0
mov byte [esp + 0x88], 0xd
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x24]
test ecx, ecx
je 0x4ce149
call fcn.0048103d
mov byte [esp + 0x88], 0xc
mov ecx, dword [esp + 0x5c]
test ecx, ecx
je 0x4ce15e
call fcn.0048103d
mov byte [esp + 0x88], 0xa
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4ce173
call fcn.0048103d
mov byte [esp + 0x88], 3
lea ecx, [esp + 0x38]
call fcn.004c9159
lea ecx, [esp + 0x18]
call fcn.0048ba32
mov eax, dword [esp + 0x18]
jmp 0x4cdffd
mov ebx, dword [esp + 0x34]
mov byte [esp + 0x88], 1
test ebx, ebx
je 0x4ce1ad
mov ecx, ebx
call fcn.0048103d
or dword [esp + 0x88], 0xffffffff
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x4ce1c2
call fcn.0048103d
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0073167f
mov esp, ebp
pop ebp
ret 8