Function at 0x40ac70
Capabilities:
Check for peb ntglobalflag flag
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8c8a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x523168]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
je 0x40ad39
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x1c], 0x4bc57c
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x24], 0x4bc584
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x2c], 0x4bc58c
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x34], 0x4bc594
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x3c], 0x4bc59c
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x44], 0x4bc5a4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x4c], 0x4bc5ac
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x54], 0x4bc5b4
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x5c], 0x4bc5bc
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x64], 0x4bc5c4
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x6c], 0x4bc5cc
mov ecx, dword [ebp - 0x10]
add ecx, 0xb0
call fcn.00407770
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
or edx, 1
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xffffffff
sub esp, 0xc
mov eax, esp
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov edx, dword [ebp - 0x20]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 8], ecx
lea ecx, [ebp - 0x18]
call fcn.004121f0
mov edx, dword [eax]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
call dword [0x4ba888]
mov dword [ebp - 4], 2
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.004133c0
mov byte [ebp - 4], 3
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.00413420
mov byte [ebp - 4], 4
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
call fcn.004134e0
mov byte [ebp - 4], 5
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00413480
mov byte [ebp - 4], 6
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x38
call fcn.004134b0
mov byte [ebp - 4], 7
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x40
call fcn.00413510
mov byte [ebp - 4], 8
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x48
call fcn.00413560
mov byte [ebp - 4], 9
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x50
call fcn.004133f0
mov byte [ebp - 4], 0xa
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x58
call fcn.0041ae30
mov byte [ebp - 4], 0xb
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x60
call fcn.00413590
mov byte [ebp - 4], 0xc
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
call fcn.00413450
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x10]
mov dword [ecx], vtable.QCefClient.0
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], vtable.QCefClient.1.0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], vtable.QCefClient.2.0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x20], vtable.QCefClient.3.0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x28], vtable.QCefClient.4.0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x30], vtable.QCefClient.5.0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x38], vtable.QCefClient.6.0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x40], vtable.QCefClient.7.0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x48], vtable.QCefClient.8.0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x50], vtable.QCefClient.9.0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x58], vtable.QCefClient.10.0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x60], vtable.QCefClient.11.0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x68], vtable.QCefClient.12.0
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x1c]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov dword [edx + ecx + 0x1c], vtable.QCefClient.13.0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ecx + 4]
sub edx, 0x94
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ecx + 4]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + eax + 0x18], edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x70
call fcn.00412cd0
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x10]
add ecx, 0x74
call fcn.00412190
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x10]
add ecx, 0x84
call fcn.00412190
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x10]
add ecx, 0x90
call fcn.00412270
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x10]
add ecx, 0x94
call fcn.00407840
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x98], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x99], 1
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x9a], 0
lea edx, [ebp + 8]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x9c
call fcn.004133a0
mov byte [ebp - 4], 0x12
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0xa0
call fcn.004131f0
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.00412c40
mov byte [ebp - 4], 0x14
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x70
call fcn.00414100
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x80], 0
push 1
mov ecx, dword [ebp - 0x10]
call dword [0x4ba880]
push 0xb
mov ecx, dword [ebp - 0x10]
call dword [0x4ba87c]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00413ec0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc