Function at 0x45d210
Capabilities:
Access peb ldr_data
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x619136
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x69e3d4]
xor eax, esp
mov dword [esp + 0xb8], eax
push ebx
push esi
push edi
mov eax, dword [0x69e3d4]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
mov edi, dword [sym.imp.user32.dll_GetSysColor]
push 0xf
mov esi, ecx
call edi
push 0x10
mov dword [esi + 8], eax
call edi
push 0x15
mov dword [esi + 0xc], eax
call edi
push 0x16
mov dword [esi + 0x1c], eax
call edi
push 0x14
mov dword [esi + 0x20], eax
call edi
push 0x12
mov dword [esi + 0x10], eax
call edi
push 0x11
mov dword [esi + 0x14], eax
call edi
push 6
mov dword [esi + 0x24], eax
call edi
push 0xd
mov dword [esi + 0x18], eax
call edi
push 0xe
mov dword [esi + 0x28], eax
call edi
mov dword [esi + 0x2c], eax
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x30], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [esp + 0x30], 5
jb 0x45d2c1
push 0x1a
call edi
mov dword [esi + 0x30], eax
jmp 0x45d2c8
mov dword [esi + 0x30], 0xff0000
mov edi, dword [sym.imp.user32.dll_GetSysColorBrush]
push 0x10
call edi
push 0x14
mov dword [esi + 4], eax
call edi
lea ebx, [esi + 0x34]
mov ecx, ebx
mov dword [esi], eax
call fcn.005778a2
push 0xf
call edi
push eax
mov ecx, ebx
call fcn.00577879
lea ebx, [esi + 0x3c]
mov ecx, ebx
call fcn.005778a2
push 0xd
call edi
push eax
mov ecx, ebx
call fcn.00577879
lea ebx, [esi + 0x4c]
mov ecx, ebx
call fcn.005778a2
push 0x15
call edi
push eax
mov ecx, ebx
call fcn.00577879
xor ebx, ebx
push ebx
lea ecx, [esp + 0x1c]
call fcn.005776d4
mov dword [esp + 0xd8], ebx
mov ecx, dword [esp + 0x20]
push 0xc
push ecx
call dword [sym.imp.gdi32.dll_GetDeviceCaps]
lea edi, [esi + 0x44]
cmp edi, ebx
mov dword [esi + 0xa0], eax
je 0x45d356
cmp dword [edi + 4], ebx
je 0x45d356
mov ecx, edi
call fcn.005778cc
cmp dword [esi + 0xa0], 8
jle 0x45d3b9
mov bl, byte [esi + 0xa]
movzx eax, byte [esi + 0x12]
movzx cx, byte [esi + 9]
movzx edx, bl
sub eax, edx
cdq
sub eax, edx
sar eax, 1
add al, bl
xor ebx, ebx
mov bh, al
movzx eax, byte [esi + 0x11]
movzx edx, cl
sub eax, edx
cdq
sub eax, edx
sar eax, 1
add al, cl
mov cl, byte [esi + 8]
mov bl, al
movzx eax, byte [esi + 0x10]
movzx edx, cl
sub eax, edx
cdq
sub eax, edx
sar eax, 1
add al, cl
movzx eax, al
shl ebx, 8
or eax, ebx
push eax
call dword [sym.imp.gdi32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00577879
jmp 0x45d409
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0045d520
mov esi, vtable.CBitmap.0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xdc], 1
call fcn.00577879
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.gdi32.dll_CreatePatternBrush]
push eax
mov ecx, edi
call fcn.00577879
mov byte [esp + 0xd8], bl
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], esi
call fcn.00424fa0
call fcn.0048fd90
lea ecx, [esp + 0x18]
mov dword [esp + 0xd8], 0xffffffff
call fcn.00577728
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.005a58d9
mov esp, ebp
pop ebp
ret