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

Disassembly:
push 0x20
mov eax, 0x56784e
call fcn.00541809
mov edi, ecx
push 0x16
call dword [sym.imp.USER32.dll_GetSysColor]
mov esi, 0xffffff
xor ebx, ebx
cmp eax, esi
jne 0x438867
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
test eax, eax
jne 0x438867
inc eax
jmp 0x438869
mov eax, ebx
push 0x15
mov dword [edi + 0x184], eax
call dword [sym.imp.USER32.dll_GetSysColor]
test eax, eax
jne 0x43888c
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
cmp eax, esi
jne 0x43888c
xor eax, eax
inc eax
jmp 0x43888e
mov eax, ebx
push ebx
lea ecx, [ebp - 0x2c]
mov dword [edi + 0x188], eax
call fcn.0040dc35
push 0xc
push dword [ebp - 0x24]
mov dword [ebp - 4], ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0xf
mov dword [edi + 0x1ac], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push 0x10
mov dword [edi + 0x1c], eax
mov dword [edi + 0x54], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push 0x15
mov dword [edi + 0x20], eax
mov dword [edi + 0x58], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push 0x16
mov dword [edi + 0x30], eax
mov dword [edi + 0x60], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push 0x14
mov dword [edi + 0x34], eax
mov dword [edi + 0x64], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push 0x12
mov dword [edi + 0x24], eax
mov dword [edi + 0x5c], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push 0x11
mov dword [edi + 0x28], eax
mov dword [edi + 0x68], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push 6
mov dword [edi + 0x38], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push 0xd
mov dword [edi + 0x2c], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push 0xe
mov dword [edi + 0x3c], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push 5
mov dword [edi + 0x40], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push 8
mov dword [edi + 0x6c], eax
mov dword [edi + 0x50], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push 9
mov dword [edi + 0x70], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push 7
mov dword [edi + 0x74], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push 2
mov dword [edi + 0x78], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push 3
mov dword [edi + 0x7c], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push 0x1b
mov dword [edi + 0x80], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push 0x1c
mov dword [edi + 0x88], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push 0xa
mov dword [edi + 0x8c], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push 0xb
mov dword [edi + 0x90], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push 0x13
mov dword [edi + 0x94], eax
call dword [sym.imp.USER32.dll_GetSysColor]
cmp dword [edi + 0x184], ebx
mov dword [edi + 0x84], eax
je 0x4389d0
mov esi, dword [edi + 0x70]
mov ebx, esi
mov eax, esi
jmp 0x4389e2
push 0x1a
mov esi, 0x800080
mov ebx, 0xff0000
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], ebx
push 0x10
mov dword [edi + 0x4c], esi
call dword [sym.imp.USER32.dll_GetSysColorBrush]
mov dword [edi + 0x14], eax
test eax, eax
je 0x438c5e
push 0x14
call dword [sym.imp.USER32.dll_GetSysColorBrush]
mov dword [edi + 0x10], eax
test eax, eax
je 0x438c5e
push 5
call dword [sym.imp.USER32.dll_GetSysColorBrush]
mov dword [edi + 0x18], eax
test eax, eax
je 0x438c5e
lea esi, [edi + 0x98]
mov ecx, esi
call fcn.0040e7e1
push dword [edi + 0x1c]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, esi
call fcn.0040e6a2
lea esi, [edi + 0xd0]
mov ecx, esi
call fcn.0040e7e1
push dword [edi + 0x54]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, esi
call fcn.0040e6a2
lea esi, [edi + 0xb8]
mov ecx, esi
call fcn.0040e7e1
push dword [edi + 0x7c]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, esi
call fcn.0040e6a2
lea esi, [edi + 0xc0]
mov ecx, esi
call fcn.0040e7e1
push dword [edi + 0x80]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, esi
call fcn.0040e6a2
lea esi, [edi + 0xa0]
mov ecx, esi
call fcn.0040e7e1
push dword [edi + 0x3c]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, esi
call fcn.0040e6a2
lea esi, [edi + 0xb0]
mov ecx, esi
call fcn.0040e7e1
push dword [edi + 0x30]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, esi
call fcn.0040e6a2
lea esi, [edi + 0xc8]
mov ecx, esi
call fcn.0040e7e1
push dword [edi + 0x6c]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, esi
call fcn.0040e6a2
lea esi, [edi + 0xd8]
mov ecx, esi
call fcn.0040e7e1
push dword [0x5c945c]
xor ebx, ebx
push 1
push ebx
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
mov ecx, esi
call fcn.0040e6a2
lea esi, [edi + 0xe0]
mov ecx, esi
call fcn.0040e7e1
push dword [0x5c9474]
push 1
push ebx
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
mov ecx, esi
call fcn.0040e6a2
lea esi, [edi + 0xe8]
mov ecx, esi
call fcn.0040e7e1
push dword [0x5c9478]
push 1
push ebx
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
mov ecx, esi
call fcn.0040e6a2
lea ebx, [edi + 0xa8]
test ebx, ebx
je 0x438b7e
cmp dword [ebx + 4], 0
je 0x438b7e
mov ecx, ebx
call fcn.0040e7e1
cmp dword [edi + 0x1ac], 8
jle 0x438bfa
mov al, byte [edi + 0x1e]
movzx ecx, word [edi + 0x24]
movzx ebx, word [edi + 0x1c]
mov byte [ebp - 0xd], al
mov eax, ecx
shr eax, 8
shr ebx, 8
movzx ecx, bl
sub eax, ecx
movzx ecx, byte [ebp - 0xd]
cdq
sub eax, edx
sar eax, 1
add al, bl
movzx ebx, word [edi + 0x1c]
movzx esi, al
movzx eax, byte [edi + 0x26]
sub eax, ecx
movzx ecx, bl
cdq
sub eax, edx
sar eax, 1
add al, byte [ebp - 0xd]
movzx eax, al
shl eax, 8
or esi, eax
movzx eax, word [edi + 0x24]
movzx eax, al
sub eax, ecx
shl esi, 8
cdq
sub eax, edx
sar eax, 1
add al, bl
movzx eax, al
or esi, eax
push esi
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [edi + 0xa8]
call fcn.0040e6a2
jmp 0x438c41
push dword [ebp - 0x28]
mov ecx, edi
call fcn.004378cf
test eax, eax
je 0x438c5e
and dword [ebp - 0x14], 0
mov esi, vtable.CBitmap.0
mov dword [ebp - 0x18], esi
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040e6a2
push dword [ebp - 0x14]
call dword [sym.imp.GDI32.dll_CreatePatternBrush]
push eax
mov ecx, ebx
call fcn.0040e6a2
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
mov dword [ebp - 0x18], esi
call fcn.0040dd3a
call fcn.0046cc82
lea ecx, [ebp - 0x2c]
mov dword [0x5cb014], 1
call fcn.0040deb9
call fcn.005417d2
ret
call fcn.00408199
int3