Function at 0x422960
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x467d88
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4851d0]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x4851d0]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov eax, dword [ecx + 0x10]
add eax, 4
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 4]
mov ecx, dword [ecx]
mov esi, eax
mov edi, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
jmp 0x4229c8
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x10]
mov ebx, dword [eax + 8]
add eax, 4
test esi, esi
je 0x4229dd
cmp esi, eax
je 0x4229e2
call fcn.0044d026
cmp edi, ebx
je 0x422c54
test esi, esi
jne 0x4229f3
call fcn.0044d026
cmp edi, dword [esi + 4]
jne 0x4229fd
call fcn.0044d026
xor ecx, ecx
or ebx, 0xffffffff
push ebx
push ecx
lea eax, [edi + 0xc]
mov dword [esp + 0x78], ecx
mov word [esp + 0x68], cx
push eax
lea ecx, [esp + 0x68]
mov dword [esp + 0x80], 7
call fcn.00401440
cmp edi, dword [esi + 4]
mov dword [esp + 0x88], 0
jne 0x422a3a
call fcn.0044d026
lea eax, [edi + 0x28]
test eax, eax
jne 0x422a65
cmp dword [esp + 0x74], 8
mov dword [esp + 0x88], ebx
jb 0x4229c8
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0042cbc2
add esp, 4
jmp 0x4229c8
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x20], eax
jne 0x422a93
cmp dword [esp + 0x74], 8
mov dword [esp + 0x88], ebx
jb 0x4229c8
mov edx, dword [esp + 0x60]
push edx
call fcn.0042cbc2
add esp, 4
jmp 0x4229c8
lea esi, [eax + 4]
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov ebx, esi
mov edi, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
jmp 0x422ab4
mov edi, dword [esp + 0x1c]
test ebx, ebx
mov eax, dword [esi + 4]
mov dword [esp + 0x38], eax
je 0x422ac3
cmp ebx, esi
je 0x422ac8
call fcn.0044d026
cmp edi, dword [esp + 0x38]
je 0x422bdf
test ebx, ebx
jne 0x422adb
call fcn.0044d026
cmp edi, dword [ebx + 4]
jne 0x422ae5
call fcn.0044d026
lea eax, [edi + 0x28]
test eax, eax
je 0x422ab4
mov edi, dword [eax]
test edi, edi
mov dword [esp + 0x24], edi
je 0x422ab0
mov ecx, dword [edi + 8]
mov ebx, dword [ecx]
lea esi, [edi + 4]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ebx
jmp 0x422b14
mov edi, dword [esp + 0x24]
test esi, esi
mov edx, dword [edi + 8]
lea eax, [edi + 4]
mov dword [esp + 0x40], edx
je 0x422b26
cmp esi, eax
je 0x422b2b
call fcn.0044d026
cmp ebx, dword [esp + 0x40]
je 0x422b94
test esi, esi
jne 0x422b3a
call fcn.0044d026
cmp ebx, dword [esi + 4]
jne 0x422b44
call fcn.0044d026
lea eax, [ebx + 0x28]
test eax, eax
je 0x422b14
mov edi, dword [eax]
test edi, edi
je 0x422b10
mov ecx, edi
call fcn.00410370
push edi
call fcn.0042cbc2
add esp, 4
lea ecx, [esp + 0x28]
call fcn.0041e2f0
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
push ebx
push esi
lea eax, [esp + 0x4c]
push eax
add ecx, 4
call fcn.0041e550
mov ebx, dword [esp + 0x2c]
mov esi, edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ebx
jmp 0x422b10
mov ecx, edi
call fcn.004203b0
push edi
call fcn.0042cbc2
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
add esp, 4
lea ecx, [esp + 0x18]
call fcn.0041e2f0
mov ebx, dword [esp + 0x18]
push edi
push esi
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x5c]
add esi, 4
push ecx
mov ecx, esi
call fcn.0041e550
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
jmp 0x422ab0
mov ecx, dword [esp + 0x20]
call fcn.00420520
mov edx, dword [esp + 0x20]
push edx
call fcn.0042cbc2
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
add esp, 4
lea ecx, [esp + 0x10]
call fcn.0041e2f0
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + 0x10]
mov ebx, dword [esp + 0x10]
push edi
push esi
lea eax, [esp + 0x54]
push eax
add ecx, 4
call fcn.0041e550
cmp dword [esp + 0x74], 8
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x88], 0xffffffff
jb 0x4229c0
mov edx, dword [esp + 0x60]
push edx
call fcn.0042cbc2
add esp, 4
jmp 0x4229c0
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.0044d5bb
mov esp, ebp
pop ebp
ret