Function at 0x41b220
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48e4c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push esi
mov esi, dword [esp + 0x64]
push edi
push esi
lea ecx, [esp + 0x40]
call fcn.0047d8a9
xor ebx, ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x58], ebx
call fcn.0047cec7
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x3c]
neg eax
sbb eax, eax
mov byte [esp + 0x58], 1
and eax, ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x30]
call fcn.0047cf7e
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0xc]
call fcn.0041c5b0
mov dword [esp + 0xc], vtable.CBitmap.0
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x40]
sub eax, edi
sub ecx, esi
push eax
push ecx
push edx
mov byte [esp + 0x64], 2
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x10]
call fcn.0047da9d
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
neg eax
sbb eax, eax
and eax, ecx
push eax
mov eax, dword [esp + 0x34]
push eax
call fcn.0047d0bf
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov edi, eax
mov eax, dword [esp + 0x1c]
sub ecx, edx
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x40]
sub edx, eax
lea eax, [esp + 0x3c]
push 0xcc0020
neg eax
sbb eax, eax
push ebx
and eax, esi
push ebx
push eax
push ecx
mov ecx, dword [esp + 0x44]
push edx
push ebx
push ebx
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], 0x496288
mov edx, dword [esp + 0x44]
push 0x26
push edx
mov byte [esp + 0x60], 3
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
test ah, 1
je 0x41b3ae
push 0x408
call fcn.004797bd
mov esi, eax
lea eax, [esp + 0x40]
add esp, 4
neg eax
mov word [esi], 0x300
mov ecx, dword [esp + 0x40]
sbb eax, eax
and eax, ecx
lea ecx, [esi + 4]
push ecx
push 0xff
push ebx
push eax
call dword [sym.imp.GDI32.dll_GetSystemPaletteEntries]
push esi
mov word [esi + 2], ax
call dword [sym.imp.GDI32.dll_CreatePalette]
push eax
lea ecx, [esp + 0x18]
call fcn.0047da9d
lea edx, [esp + 0x14]
push ebx
push edx
lea ecx, [esp + 0x44]
call fcn.0047d19d
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.GDI32.dll_RealizePalette]
push esi
call fcn.004797e6
add esp, 4
cmp edi, ebx
jne 0x41b3b6
xor edi, edi
jmp 0x41b3b9
mov edi, dword [edi + 4]
mov ecx, dword [esp + 0x30]
push edi
push ecx
call fcn.0047d0bf
lea edx, [esp + 0xc]
push edx
call fcn.0041b130
mov ecx, dword [esp + 0x64]
mov esi, eax
mov eax, dword [esp + 0x68]
push esi
push eax
push ecx
call fcn.0041afb0
add esp, 0x10
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov esi, vtable.CGdiObject.0
cmp edi, ebx
mov dword [esp + 0x14], esi
jne 0x41b44b
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], 4
call fcn.0047daf4
mov dword [esp + 0xc], esi
lea ecx, [esp + 0xc]
mov byte [esp + 0x58], 5
call fcn.0047daf4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x58], bl
call fcn.0047cffc
lea ecx, [esp + 0x3c]
mov dword [esp + 0x58], 0xffffffff
call fcn.0047d91b
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], 6
call fcn.0047daf4
mov dword [esp + 0xc], esi
lea ecx, [esp + 0xc]
mov byte [esp + 0x58], 7
call fcn.0047daf4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x58], bl
call fcn.0047cffc
lea ecx, [esp + 0x3c]
mov dword [esp + 0x58], 0xffffffff
call fcn.0047d91b
mov ecx, dword [esp + 0x50]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret