Function at 0x4226f0
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x463468
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x47f534]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x5c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [edi + 0x2d8]
mov eax, dword [esp + 0x64]
mov edx, dword [edi + 0x360]
mov ebx, dword [edi + 0x2ac]
sub eax, ecx
mov ecx, dword [edi + 0x1d4]
lea esi, [edx + ecx]
mov edx, dword [edi + 0x258]
mov ecx, dword [esp + 0x68]
sub ecx, edx
push ecx
push eax
push esi
push ebx
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ecx
call dword [sym.imp.USER32.dll_SetRect]
lea eax, [edi + 0x51c]
push eax
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x422b4e
lea ecx, [esp + 0x4c]
call fcn.0042aeaa
mov dword [esp + 0x88], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4227b4
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x50]
call fcn.0042b33c
test eax, eax
jne 0x4227f5
mov dword [esp + 0x88], 0xffffffff
lea ecx, [esp + 0x4c]
call fcn.0042b3b6
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea esi, [edi + 0x52c]
mov ecx, esi
call fcn.0042b656
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
sub ecx, dword [esp + 0x5c]
push eax
push ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, esi
call fcn.0042b603
test eax, eax
je 0x422b39
test esi, esi
je 0x422838
mov esi, dword [esi + 4]
mov eax, dword [esp + 0x50]
push esi
push eax
call fcn.0042b688
mov edx, dword [edi]
mov edx, dword [edx + 0x174]
mov esi, eax
lea eax, [esp + 0x4c]
push eax
mov ecx, edi
mov dword [esp + 0x30], esi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x164]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, edi
call edx
mov eax, dword [edi + 0x170]
test eax, eax
jne 0x422a24
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x58]
mov dword [eax + 8], ecx
lea ecx, [edi + 0x4f0]
lea esi, [esp + 0x5c]
mov dword [eax + 0xc], edx
call fcn.00423ab0
mov eax, dword [edi]
mov edx, dword [eax + 0x17c]
mov ecx, esi
push ecx
mov ecx, edi
call edx
mov eax, dword [edi + 0x43c]
mov esi, dword [esp + 0x18]
mov ecx, dword [edi + 0x4bc]
mov edx, esi
sub edx, eax
mov eax, dword [edi + 0x3b8]
push edx
add ecx, ebx
push ecx
mov ecx, dword [esp + 0x24]
add eax, ecx
push eax
push ebx
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [edi + 0x4c0]
test eax, eax
mov dword [esp + 0x10], eax
jle 0x42295c
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x48]
cmp ecx, eax
jg 0x42295c
jmp 0x422908
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
lea esi, [ecx + edx]
cmp esi, eax
mov dword [esp + 0x14], esi
jle 0x42291b
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x4bc]
sub esp, 0x10
lea edx, [eax + ebx]
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 8], edx
push 0
mov dword [eax + 0xc], ecx
push 0xcc0020
lea ebx, [esp + 0x64]
lea ecx, [edi + 0x498]
call fcn.00423bc0
mov eax, dword [esp + 0x48]
mov ecx, esi
cmp ecx, eax
jle 0x422904
mov esi, dword [esp + 0x18]
mov eax, dword [edi + 0x494]
mov ecx, dword [edi + 0x410]
mov edx, dword [edi + 0x4e8]
sub esi, eax
mov eax, dword [esp + 0x24]
push esi
mov esi, dword [esp + 0x20]
push eax
add ecx, esi
push ecx
sub eax, edx
push eax
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov edx, dword [edi + 0x4ec]
test edx, edx
mov dword [esp + 0x10], edx
jle 0x422a0a
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x48]
cmp ecx, eax
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x24], esi
jg 0x422a0a
mov dword [esp + 0x6c], esi
jmp 0x4229b7
mov edx, dword [esp + 0x10]
lea esi, [ecx + edx]
cmp esi, eax
mov dword [esp + 0x1c], esi
jle 0x4229c6
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x4e8]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x6c]
sub esp, 0x10
add edx, eax
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 8], edx
push 0
mov dword [eax + 0xc], ecx
push 0xcc0020
lea ebx, [esp + 0x64]
lea ecx, [edi + 0x4c4]
call fcn.00423bc0
mov eax, dword [esp + 0x48]
mov ecx, esi
cmp ecx, eax
jle 0x4229b3
mov edx, dword [edi]
mov edx, dword [edx + 0x180]
lea eax, [esp + 0x4c]
push eax
mov ecx, edi
call edx
mov esi, dword [esp + 0x2c]
jmp 0x422afb
cmp eax, 1
jne 0x422afb
mov eax, dword [edi + 0x17c]
push eax
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x54]
call fcn.004392b5
mov edx, dword [edi + 0x178]
mov eax, dword [edi + 0x174]
push edx
push eax
push 0
lea ecx, [esp + 0x38]
call fcn.0042b797
mov byte [esp + 0x88], 1
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x50]
call fcn.0042b6db
mov edx, dword [esp + 0x40]
mov ebx, eax
mov eax, dword [esp + 0x3c]
push edx
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x58]
call fcn.0042b081
mov edx, dword [esp + 0x48]
sub edx, dword [edi + 0x174]
mov eax, dword [esp + 0x3c]
push edx
push eax
lea ecx, [esp + 0x54]
call fcn.0042ada4
mov eax, dword [edi + 0x174]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
sub ecx, eax
push ecx
sub edx, eax
push edx
lea ecx, [esp + 0x54]
call fcn.0042ada4
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
sub ecx, dword [edi + 0x174]
add eax, 0xffffffff
push eax
push ecx
lea ecx, [esp + 0x54]
call fcn.0042ada4
test ebx, ebx
je 0x422aea
mov ecx, dword [ebp + 8]
push ebx
call fcn.0042b6db
mov byte [esp + 0x88], 0
lea ecx, [esp + 0x2c]
call fcn.004203f0
test esi, esi
jne 0x422b03
xor eax, eax
jmp 0x422b06
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x50]
push eax
push edx
call fcn.0042b688
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov dword [edi + 0x51c], eax
mov eax, dword [esp + 0x68]
mov dword [edi + 0x520], ecx
mov dword [edi + 0x524], edx
mov dword [edi + 0x528], eax
or ebx, 0xffffffff
mov dword [esp + 0x88], ebx
lea ecx, [esp + 0x4c]
call fcn.0042b3b6
jmp 0x422b51
or ebx, 0xffffffff
mov dword [esp + 0x34], vtable.CGdiObject.0
mov dword [esp + 0x38], 0
mov dword [esp + 0x88], 2
mov esi, vtable.CBrush.0
mov dword [esp + 0x34], esi
mov dword [esp + 0x88], 3
add edi, 0x52c
je 0x422b8b
mov edi, dword [edi + 4]
push edi
call dword [sym.imp.GDI32.dll_CreatePatternBrush]
push eax
lea ecx, [esp + 0x38]
call fcn.0042b603
mov ecx, dword [esp + 0x38]
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [eax + 4]
lea edx, [esp + 0x60]
push edx
push ecx
call dword [sym.imp.USER32.dll_FillRect]
mov dword [esp + 0x88], ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x88], ebx
lea ecx, [esp + 0x34]
call fcn.00402fb0
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4