Function at 0x422030
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x4789f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x49e860
call fcn.00401c80
mov edi, dword [0x47a208]
mov ebx, dword [0x49e880]
push 0x258
push 0x320
push 0
push 0
lea eax, [esp + 0x60]
push eax
call edi
mov ecx, 0xcce088
call fcn.00404bc0
mov edx, dword [ebx]
push 0
push 0x88888888
mov ecx, ebx
call dword [edx + 0x44]
push 0x6e
push 0x360
push 0
push 0x288
lea eax, [esp + 0x20]
push eax
call edi
mov ecx, dword [esi + 0x48]
mov edx, dword [ecx]
lea eax, [esp + 0x10]
push eax
push 0
call dword [edx + 0x30]
push 0x6e
push 0xd8
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
call edi
movzx eax, byte [0x490d10]
mov ecx, dword [esi + 0x48]
mov edx, dword [ecx]
lea ebp, [esp + 0x10]
push ebp
mov ebp, eax
shl ebp, 8
or ebp, eax
shl ebp, 8
or ebp, eax
push ebp
call dword [edx + 0x30]
push 0x6e
push 0x288
push 0
push 0x1b0
lea eax, [esp + 0x20]
push eax
call edi
mov ecx, dword [esi + 0x48]
mov edx, dword [ecx]
push 0
push 0
push ecx
lea eax, [esp + 0x1c]
push eax
push ecx
push 0
push 0x288
call dword [edx + 0x94]
push 0x6e
push 0xd8
push 0
push 0
lea ecx, [esp + 0x50]
push ecx
call edi
mov ecx, dword [esi + 0x48]
movzx ebp, byte [0x490d12]
mov edx, dword [ecx]
lea eax, [esp + 0x40]
push eax
movzx eax, byte [0x490d13]
shl eax, 8
or eax, ebp
movzx ebp, byte [0x490d11]
shl eax, 8
or eax, ebp
push eax
call dword [edx + 0x30]
push 0x163
push 0x1fc
push 0xf5
push 0x124
lea ecx, [esp + 0x20]
push ecx
call edi
mov ecx, dword [esi + 0x48]
mov edx, dword [ecx]
lea eax, [esp + 0x10]
push eax
push ebx
xor ebp, ebp
push ebp
push 0x360
call dword [edx + 0x60]
push 0x6e
push 0xd8
push ebp
push ebp
lea ecx, [esp + 0x20]
push ecx
call edi
mov ecx, dword [esi + 0x48]
mov edx, dword [ecx]
push ebp
push 0x288
push ecx
lea eax, [esp + 0x1c]
push eax
push ecx
push ebp
push 0x360
call dword [edx + 0x94]
mov ecx, dword [esi + 0x48]
push ebp
push 0xd8
push ecx
lea eax, [esp + 0x2c]
push eax
push ecx
push ebp
mov dword [esp + 0x38], 0x1b0
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], 0x288
mov dword [esp + 0x44], 0x6e
mov edx, dword [ecx]
push 0x360
call dword [edx + 0x94]
push 0x6e
push 0x438
push ebp
push 0x360
lea ecx, [esp + 0x20]
push ecx
call edi
mov ecx, dword [esi + 0x48]
mov edx, dword [ebx]
lea eax, [esp + 0x10]
push eax
push ecx
push 0xf5
push 0x124
mov ecx, ebx
call dword [edx + 0x60]
push 0x46
push 0xd8
push ebp
push ebp
lea edx, [esp + 0x20]
push edx
call edi
lea ecx, [esp + 0x30]
call fcn.0043a6c0
push 0xbc8b66
lea ecx, [esp + 0x34]
mov dword [esp + 0x6c], ebp
call fcn.0043aa40
lea eax, [esi + 0x70]
push 0x47a584
push eax
call dword [0x47a0f8]
mov edx, dword [esi + 0xac]
mov eax, 0x10
mov dword [esi + 0x54], eax
mov word [esi + 0xa8], ax
lea edi, [esi + 0xac]
lea eax, [esi + 0x4c]
push eax
mov ecx, edi
mov dword [esi + 0x58], 8
call dword [edx + 0x4c]
mov ecx, dword [esp + 0x34]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x58]
mov eax, dword [edi]
mov ebp, dword [ebx]
push 0xff00ff
lea edx, [esp + 0x14]
push edx
mov ecx, edi
call dword [eax + 0x40]
push eax
push 0x103
push 0x124
mov ecx, ebx
call dword [ebp + 0x64]
mov eax, 0x12
mov dword [esi + 0x54], eax
mov word [esi + 0xa8], ax
push 0x49e5f0
lea eax, [esi + 0x70]
push eax
mov dword [esi + 0x58], 9
call dword [0x47a0f8]
mov edx, dword [edi]
lea eax, [esi + 0x4c]
push eax
mov ecx, edi
call dword [edx + 0x4c]
xor ecx, ecx
mov dword [esi + 4], 0xa
xor eax, eax
nop
mov dword [eax + 0xcd242c], ecx
add eax, 0x18
cmp eax, 0x780
jb 0x4222f0
mov edi, 0x5a
mov dword [0xcd2544], edi
mov edx, 0x24
mov eax, 1
mov dword [0xcd255c], edi
mov ebp, 0x133
mov dword [0xcd2550], ecx
mov dword [0xcd2568], ecx
mov dword [0xcd253c], 0x130
mov dword [0xcd2540], ebp
mov dword [0xcd2548], edx
mov dword [0xcd254c], eax
mov dword [0xcd2554], 0x196
mov dword [0xcd2558], ebp
mov dword [0xcd2560], edx
mov dword [0xcd2564], eax
or edi, 0xffffffff
mov ecx, 0xcd2400
mov dword [esi + 0x2c], edi
call fcn.00404560
push ebx
mov ecx, 0xcce088
call fcn.00404c40
push ebx
mov ecx, 0xcce088
call fcn.00404d30
lea ecx, [esp + 0x30]
mov dword [esp + 0x68], edi
call fcn.0043a700
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret