Function at 0x42ab40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x481ce0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
lea ecx, [esp]
call fcn.00409230
mov dword [esp], 0x48476c
mov dword [esp + 0x4c], 0
call fcn.00470aef
test eax, eax
je 0x42ab81
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetDesktopWindow]
push edi
call esi
push eax
call fcn.00472803
push eax
lea ecx, [esp + 0x40]
call fcn.00477503
lea ecx, [esp + 0x2c]
mov byte [esp + 0x58], 1
call fcn.00476da2
mov ebp, dword [esp + 0x40]
lea eax, [esp + 0x3c]
neg eax
sbb eax, eax
mov byte [esp + 0x58], 2
and eax, ebp
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x30]
call fcn.00476e59
call fcn.00470aef
test eax, eax
je 0x42abde
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
call esi
push eax
call fcn.00472803
mov edx, dword [eax + 0x1c]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
sub eax, esi
sub ecx, edx
push eax
mov eax, dword [esp + 0x44]
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x10]
call fcn.004776f7
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0xc]
neg eax
sbb eax, eax
and eax, ebp
push eax
push ecx
call fcn.00476f84
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 0
and eax, esi
push 0
push eax
push ecx
push edx
mov edx, dword [esp + 0x48]
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x486a00
mov eax, dword [esp + 0x44]
push 0x26
push eax
mov byte [esp + 0x60], 3
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
test ah, 1
je 0x42acf1
push 0x408
call fcn.004704db
mov esi, eax
lea eax, [esp + 0x40]
add esp, 4
neg eax
mov word [esi], 0x300
mov ebp, dword [esp + 0x40]
lea ecx, [esi + 4]
sbb eax, eax
push ecx
and eax, ebp
push 0xff
push 0
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.004776f7
push esi
call fcn.00470504
add esp, 4
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
mov esi, dword [esp + 0x1c]
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [esp + 0x28]
sub edx, ecx
mov ecx, dword [esp + 0x24]
sub ecx, esi
push edx
push ecx
push 0
push 0
push eax
call fcn.0042c8f9
mov edx, dword [esp + 0x74]
mov esi, eax
push edx
call fcn.0042cbce
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov ebp, eax
mov eax, dword [esp + 0x40]
push 0
push 0
push 0
sub eax, edx
push 0x18
push eax
sub ecx, dword [esp + 0x48]
push ecx
push esi
push ebp
call fcn.0042d312
push ebp
call fcn.0042cc33
add esp, 0x3c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test edi, edi
je 0x42ad67
mov edi, dword [edi + 4]
mov edx, dword [esp + 0x30]
push edi
push edx
call fcn.00476f84
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], 4
call fcn.0047774e
lea ecx, [esp + 0x2c]
mov byte [esp + 0x58], 1
call fcn.00476ec1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x58], 0
call fcn.00477575
mov dword [esp + 0xc], esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x58], 5
call fcn.0047774e
mov ecx, dword [esp + 0x50]
pop edi
pop esi
mov al, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x50
ret