Function at 0x4022bc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45f035
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x47d88c]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov edi, ecx
and dword [esp + 0x30], 0
mov dword [esp + 0x2c], vtable.CBrush.0
and dword [esp + 0x58], 0
lea ecx, [esp + 0x3c]
call fcn.0042b2dd
mov ebx, dword [ebp + 8]
mov byte [esp + 0x58], 1
push dword [ebx + 0x18]
lea ecx, [esp + 0x40]
call fcn.0042b7c0
mov eax, dword [ebx + 0x20]
push dword [edi + 0x54]
mov esi, dword [ebx + 0x24]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x14], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x30]
call fcn.0042ba7c
lea eax, [edi + 0x88]
push eax
lea ecx, [esp + 0x40]
call fcn.0042bb8d
mov dword [edi + 0x58], eax
lea eax, [edi + 0x78]
push eax
lea ecx, [esp + 0x40]
call fcn.0042bb8d
mov dword [edi + 0x5c], eax
push dword [ebx + 0x28]
push dword [ebx + 0x24]
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
push dword [esp + 0x50]
call dword [sym.imp.GDI32.dll_Rectangle]
test byte [ebx + 0x10], 1
lea ecx, [esp + 0x3c]
jne 0x40245f
lea eax, [edi + 0x60]
push eax
call fcn.0042bb8d
mov eax, dword [esp + 0x10]
dec eax
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.0042b601
mov eax, dword [esp + 0x10]
dec eax
lea ecx, [esi - 1]
push eax
push ecx
lea ecx, [esp + 0x44]
call fcn.0042b1f4
push dword [esp + 0x14]
lea eax, [esi - 1]
push eax
lea ecx, [esp + 0x44]
call fcn.0042b1f4
lea eax, [edi + 0x68]
push eax
lea ecx, [esp + 0x40]
call fcn.0042bb8d
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
add eax, 0xfffffffe
push eax
inc ecx
push ecx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.0042b601
mov eax, dword [esp + 0x10]
add eax, 0xfffffffe
lea ecx, [esi - 2]
push eax
push ecx
lea ecx, [esp + 0x44]
call fcn.0042b1f4
mov eax, dword [esp + 0x14]
inc eax
push eax
lea eax, [esi - 2]
push eax
lea ecx, [esp + 0x44]
call fcn.0042b1f4
lea eax, [edi + 0x70]
push eax
lea ecx, [esp + 0x40]
call fcn.0042bb8d
mov eax, dword [esp + 0x14]
inc eax
push eax
mov eax, dword [esp + 0x1c]
inc eax
push eax
lea ecx, [esp + 0x44]
call fcn.0042b1f4
mov eax, dword [esp + 0x10]
add eax, 0xfffffffe
push eax
mov eax, dword [esp + 0x1c]
inc eax
push eax
lea ecx, [esp + 0x44]
call fcn.0042b1f4
jmp 0x402557
lea eax, [edi + 0x68]
push eax
call fcn.0042bb8d
mov eax, dword [esp + 0x10]
dec eax
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.0042b601
push dword [esp + 0x14]
lea ecx, [esp + 0x40]
push dword [esp + 0x1c]
call fcn.0042b1f4
push dword [esp + 0x14]
lea eax, [esi - 1]
push eax
lea ecx, [esp + 0x44]
call fcn.0042b1f4
lea eax, [edi + 0x70]
push eax
lea ecx, [esp + 0x40]
call fcn.0042bb8d
mov eax, dword [esp + 0x14]
dec eax
push eax
lea eax, [esi - 1]
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.0042b601
mov eax, dword [esp + 0x10]
dec eax
push eax
lea eax, [esi - 1]
push eax
lea ecx, [esp + 0x44]
call fcn.0042b1f4
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
inc ecx
dec eax
push eax
mov dword [esp + 0x24], ecx
push ecx
lea ecx, [esp + 0x44]
call fcn.0042b1f4
lea eax, [edi + 0x60]
push eax
lea ecx, [esp + 0x40]
call fcn.0042bb8d
mov eax, dword [esp + 0x10]
add eax, 0xfffffffe
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.0042b601
mov eax, dword [esp + 0x14]
inc eax
push eax
push dword [esp + 0x24]
lea ecx, [esp + 0x44]
mov dword [esp + 0x24], eax
call fcn.0042b1f4
push dword [esp + 0x1c]
lea eax, [esi - 2]
push eax
lea ecx, [esp + 0x44]
call fcn.0042b1f4
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
inc esi
inc dword [esp + 0x10]
mov dword [esp + 0x14], eax
lea eax, [edi + 0x70]
push eax
lea ecx, [esp + 0x40]
call fcn.0042bb8d
mov eax, dword [esp + 0x14]
add eax, 4
push eax
lea ecx, [esi - 0xa]
push ecx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.0042b601
mov eax, dword [esp + 0x10]
add eax, 0xfffffffc
push eax
mov dword [esp + 0x20], eax
lea eax, [esi - 0xa]
push eax
lea ecx, [esp + 0x44]
call fcn.0042b1f4
lea eax, [edi + 0x68]
test eax, eax
je 0x4025b0
mov eax, dword [eax + 4]
test eax, eax
je 0x4025b0
push eax
push dword [esp + 0x44]
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x14]
add ecx, 4
push ecx
lea eax, [esi - 0xb]
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.0042b601
push dword [esp + 0x1c]
lea eax, [esi - 0xb]
push eax
lea ecx, [esp + 0x44]
call fcn.0042b1f4
test byte [ebx + 0x10], 4
lea eax, [edi + 0x68]
jne 0x4025e7
lea eax, [edi + 0x60]
test eax, eax
je 0x4025fd
mov eax, dword [eax + 4]
test eax, eax
je 0x4025fd
push eax
push dword [esp + 0x44]
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x10]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], eax
dec eax
push eax
lea ecx, [esi - 4]
mov dword [esp + 0x28], eax
push ecx
lea eax, [esp + 0x3c]
mov dword [esp + 0x28], ecx
push eax
lea ecx, [esp + 0x48]
call fcn.0042b601
push dword [esp + 0x24]
lea eax, [esi - 9]
push eax
lea ecx, [esp + 0x44]
call fcn.0042b1f4
push dword [esp + 0x10]
lea eax, [esi - 5]
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x48]
call fcn.0042b601
push dword [esp + 0x10]
lea eax, [esi - 8]
push eax
lea ecx, [esp + 0x44]
call fcn.0042b1f4
test byte [ebx + 0x10], 4
je 0x402699
push 0xffffff
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x4c]
call dword [sym.imp.GDI32.dll_SetPixel]
push 0xffffff
push dword [esp + 0x14]
lea eax, [esi - 5]
push eax
push dword [esp + 0x4c]
call dword [sym.imp.GDI32.dll_SetPixel]
push 0xffffff
jmp 0x40269b
push 0
mov eax, dword [esp + 0x14]
inc eax
push eax
lea eax, [esi - 6]
push eax
push dword [esp + 0x4c]
call dword [sym.imp.GDI32.dll_SetPixel]
test byte [ebx + 0x10], 4
jne 0x4026e5
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x40]
call fcn.0042bb8d
push dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add esi, 0xfffffff1
push esi
add eax, 4
push eax
mov eax, dword [esp + 0x24]
add eax, 5
push eax
push dword [esp + 0x50]
call dword [sym.imp.GDI32.dll_Rectangle]
test byte [ebx + 0x10], 0x10
je 0x402755
mov ebx, dword [esp + 0x18]
add ebx, 3
ret
add ecx, dword [ecx - 0x14dbdba4]
invalid
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.GDI32.dll_SetPixel]
push 0
add eax, 3
push eax
push ebx
push dword [esp + 0x4c]
call esi
push 0
push dword [esp + 0x20]
push ebx
push dword [esp + 0x4c]
call esi
inc ebx
inc ebx
cmp ebx, dword [esp + 0x20]
jl 0x4026f8
mov ebx, dword [esp + 0x14]
add ebx, 3
jmp 0x40274f
mov esi, dword [sym.imp.GDI32.dll_SetPixel]
push 0
push ebx
push dword [esp + 0x2c]
push dword [esp + 0x4c]
call esi
push 0
push ebx
push dword [esp + 0x28]
push dword [esp + 0x4c]
call esi
inc ebx
inc ebx
cmp ebx, dword [esp + 0x1c]
jl 0x40272d
push dword [edi + 0x58]
lea ecx, [esp + 0x40]
call fcn.0042bb8d
push dword [edi + 0x5c]
lea ecx, [esp + 0x40]
call fcn.0042bb8d
lea ecx, [esp + 0x3c]
call fcn.0042b7f6
lea ecx, [esp + 0x3c]
mov byte [esp + 0x58], 0
call fcn.0042b829
or dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], vtable.CBrush.0
call fcn.00402d1b
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4