Function at 0x431624
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44ef1e
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4651b0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x14], ebx
mov edi, dword [ebp + 0xc]
lea eax, [esp + 0x1c]
push eax
lea eax, [ebx + 0x68]
push eax
mov ecx, edi
call fcn.0041d0fc
and dword [esp + 0x38], 0
lea esi, [ebx + 0x78]
mov dword [esp + 0x10], esi
call fcn.00417180
or dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0041d5d7
lea eax, [ebx + 0x38]
push eax
mov ecx, esi
mov dword [ebx + 0x90], edi
call fcn.0041d8d1
push eax
mov eax, dword [ebx + 0x30]
call fcn.0041ef69
mov dword [esp + 0x18], eax
test al, 1
je 0x43188f
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.0041d608
lea edi, [ebx + 0x70]
mov esi, edi
mov dword [esp + 0x38], 1
call fcn.00417180
or dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00420b7d
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.00420bfb
lea esi, [ebx + 0x80]
mov dword [esp + 0x38], 2
call fcn.00417180
or dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.004210dc
mov eax, edi
call fcn.0041d0f7
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0x98], eax
lea edi, [ebx + 0x88]
call fcn.0041d8e4
push eax
call fcn.00424569
mov ecx, dword [esp + 0x10]
call fcn.0041d8dc
push eax
call fcn.0041fdc2
mov ecx, dword [esp + 0x10]
call fcn.0041d968
push eax
call fcn.0041fdd0
push 0x10
xor edi, edi
lea eax, [ebx + 0xe8]
push edi
push eax
call fcn.0043ad60
add esp, 0xc
mov ecx, esi
call fcn.0042110d
mov ecx, esi
mov dword [ebx + 0x100], eax
mov dword [ebx + 0x104], edx
mov dword [ebx + 0x108], edi
mov dword [ebx + 0xf8], edi
mov dword [ebx + 0xfc], edi
mov dword [ebx + 0xd8], edi
call fcn.0042111b
mov ecx, esi
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x64], edx
call fcn.0042110d
mov dword [ebx + 0x58], eax
lea eax, [ebx + 0x50]
push eax
push dword [ebx + 0x8c]
mov dword [ebx + 0x5c], edx
mov ecx, dword [ebx + 0x3c]
push dword [ebx + 0x40]
mov edx, dword [ecx]
mov dword [esp + 0x28], eax
call dword [edx + 0x30]
mov dword [esp + 0x18], eax
test al, 1
je 0x43188f
mov eax, dword [esp + 0x1c]
push edi
push 1
push dword [eax]
add ebx, 0xa0
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
call fcn.004344da
mov ecx, dword [esp + 0x10]
call fcn.0041d960
test eax, eax
jne 0x43181a
mov eax, ebx
call fcn.00421271
push dword [eax + 8]
mov edi, dword [esp + 0x18]
push 3
push dword [edi + 0x54]
lea ebx, [edi + 0xbc]
call fcn.004344da
mov dword [edi + 0xdc], 1
jmp 0x431834
mov eax, dword [esp + 0x14]
push 0
push 1
push dword [eax + 0x54]
lea ebx, [eax + 0xbc]
call fcn.004344da
mov edi, dword [esp + 0x14]
cmp dword [edi + 0x134], 0
je 0x431852
mov eax, dword [esp + 0x1c]
push 0
push 1
push dword [eax]
lea ebx, [edi + 0x138]
call fcn.004344da
lea eax, [esp + 0x24]
push eax
push 0
mov ecx, esi
call fcn.00421131
push edx
push eax
push dword [ebp + 8]
mov eax, dword [edi + 0x24]
call fcn.0042141d
lea ecx, [edi + 8]
mov dword [esp + 0x18], eax
call fcn.0041cedb
test eax, eax
je 0x43188f
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x110], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x114], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc