Function at 0x480450
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x550900
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.user32.dll_GetSysColor]
push 0xf
mov esi, ecx
call edi
push 0x10
mov dword [esi + 0xc], eax
mov dword [esi + 0x3c], eax
call edi
push 0x15
mov dword [esi + 0x10], eax
mov dword [esi + 0x40], eax
call edi
push 0x16
mov dword [esi + 0x20], eax
mov dword [esi + 0x48], eax
call edi
push 0x14
mov dword [esi + 0x24], eax
mov dword [esi + 0x4c], eax
call edi
push 0x12
mov dword [esi + 0x14], eax
mov dword [esi + 0x44], eax
call edi
push 0x11
mov dword [esi + 0x18], eax
mov dword [esi + 0x50], eax
call edi
push 6
mov dword [esi + 0x28], eax
call edi
push 0xd
mov dword [esi + 0x1c], eax
call edi
push 0xe
mov dword [esi + 0x2c], eax
call edi
push 5
mov dword [esi + 0x30], eax
call edi
push 8
mov dword [esi + 0x54], eax
mov dword [esi + 0x38], eax
call edi
push 9
mov dword [esi + 0x58], eax
call edi
push 7
mov dword [esi + 0x5c], eax
call edi
push 2
mov dword [esi + 0x60], eax
call edi
push 3
mov dword [esi + 0x64], eax
call edi
push 0xa
mov dword [esi + 0x68], eax
call edi
push 0xb
mov dword [esi + 0x70], eax
call edi
push 0x13
mov dword [esi + 0x74], eax
call edi
mov edi, dword [sym.imp.user32.dll_GetSysColorBrush]
push 0x10
mov dword [esi + 0x6c], eax
mov dword [esi + 0x34], 0xff0000
call edi
push 0x14
mov dword [esi + 4], eax
call edi
push 5
mov dword [esi], eax
call edi
mov dword [esi + 8], eax
lea ebx, [esi + 0x78]
mov ecx, ebx
call fcn.00528977
mov eax, dword [esi + 0xc]
mov edi, dword [sym.imp.gdi32.dll_CreateSolidBrush]
push eax
call edi
push eax
mov ecx, ebx
call fcn.00528920
lea ebx, [esi + 0xb0]
mov ecx, ebx
call fcn.00528977
mov eax, dword [esi + 0x3c]
push eax
call edi
push eax
mov ecx, ebx
call fcn.00528920
lea ebx, [esi + 0x98]
mov ecx, ebx
call fcn.00528977
mov eax, dword [esi + 0x64]
push eax
call edi
push eax
mov ecx, ebx
call fcn.00528920
lea ebx, [esi + 0xa0]
mov ecx, ebx
call fcn.00528977
mov eax, dword [esi + 0x68]
push eax
call edi
push eax
mov ecx, ebx
call fcn.00528920
lea ebx, [esi + 0x80]
mov ecx, ebx
call fcn.00528977
mov eax, dword [esi + 0x2c]
push eax
call edi
push eax
mov ecx, ebx
call fcn.00528920
lea ebx, [esi + 0x90]
mov ecx, ebx
call fcn.00528977
mov eax, dword [esi + 0x20]
push eax
call edi
push eax
mov ecx, ebx
call fcn.00528920
lea ebx, [esi + 0xa8]
mov ecx, ebx
call fcn.00528977
mov eax, dword [esi + 0x54]
push eax
call edi
push eax
mov ecx, ebx
call fcn.00528920
lea ebp, [esi + 0xb8]
mov ecx, ebp
call fcn.00528977
mov eax, dword [0x5a796c]
mov ebx, dword [sym.imp.gdi32.dll_CreatePen]
push eax
push 1
push 0
call ebx
push eax
mov ecx, ebp
call fcn.00528920
lea ebp, [esi + 0xc0]
mov ecx, ebp
call fcn.00528977
mov ecx, dword [0x5a797c]
push ecx
push 1
push 0
call ebx
push eax
mov ecx, ebp
call fcn.00528920
lea ebp, [esi + 0xc8]
mov ecx, ebp
call fcn.00528977
mov edx, dword [0x5a7980]
push edx
push 1
push 0
call ebx
push eax
mov ecx, ebp
call fcn.00528920
xor ebx, ebx
push ebx
lea ecx, [esp + 0x1c]
call fcn.00528757
mov eax, dword [esp + 0x20]
push 0xc
push eax
mov dword [esp + 0x3c], ebx
call dword [sym.imp.gdi32.dll_GetDeviceCaps]
lea ebp, [esi + 0x88]
cmp ebp, ebx
mov dword [esi + 0x13c], eax
je 0x480693
cmp dword [ebp + 4], ebx
je 0x480693
mov ecx, ebp
call fcn.00528977
cmp dword [esi + 0x13c], 8
jle 0x4806fb
movzx ecx, word [esi + 0xe]
movzx eax, byte [esi + 0x16]
movzx bx, byte [esi + 0xd]
movzx edx, cl
sub eax, edx
cdq
sub eax, edx
sar eax, 1
add al, cl
xor ecx, ecx
mov ch, al
movzx eax, byte [esi + 0x15]
movzx edx, bl
sub eax, edx
cdq
sub eax, edx
sar eax, 1
add al, bl
mov cl, al
movzx eax, byte [esi + 0x14]
shl ecx, 8
mov dword [esp + 0x10], ecx
mov cl, byte [esi + 0xc]
movzx edx, cl
sub eax, edx
cdq
sub eax, edx
sar eax, 1
add al, cl
mov ecx, dword [esp + 0x10]
movzx eax, al
or eax, ecx
push eax
call edi
push eax
mov ecx, ebp
call fcn.00528920
jmp 0x48074b
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00480260
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], vtable.CBitmap.0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 1
call fcn.00528920
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.gdi32.dll_CreatePatternBrush]
push eax
mov ecx, ebp
call fcn.00528920
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 0
mov dword [esp + 0x10], vtable.CGdiObject.0
call fcn.00528977
call fcn.00490170
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], 0xffffffff
call fcn.005287b2
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret