Function at 0x41c8f030
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
xor esi, esi
push esi
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebp, dword [esp + 0x78]
mov edi, dword [esp + 0x74]
push esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], edi
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push esi
mov dword [esp + 0x18], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push esi
mov ebx, eax
call dword [sym.imp.GDI32.dll_CreateHalftonePalette]
push 1
push eax
push ebx
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_SelectPalette]
test eax, eax
mov dword [esp + 0x74], eax
jne 0x41c8f095
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.GDI32.dll_RealizePalette]
cmp eax, 0xffffffff
jne 0x41c8f0a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
push edi
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
mov ebp, eax
push ebp
push ebx
call esi
push 0
mov dword [esp + 0x7c], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push ebx
call esi
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov edi, eax
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_Rectangle]
push edi
push ebx
call esi
mov edx, dword [esp + 0x70]
lea ecx, [esp + 0x1c]
push ecx
push edx
push ebx
call dword [sym.imp.GDI32.dll_PlayEnhMetaFile]
test eax, eax
jne 0x41c8f108
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x78]
push eax
push ebx
call esi
lea ecx, [esp + 0x2c]
push ecx
push 0x18
push ebp
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
xor edx, edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], edx
push 0x428
push 0x42
mov dword [esp + 0x70], edx
mov dword [esp + 0x4c], 0x28
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
mov word [esp + 0x58], 1
mov word [esp + 0x5a], 8
mov dword [esp + 0x5c], edx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [esp + 0x78], eax
je 0x41c8f243
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [esp + 0x4c]
push 0
push eax
push 0
push edx
push 0
push ebp
mov edi, eax
mov ecx, 0xa
lea esi, [esp + 0x5c]
push ebx
mov dword [esp + 0x8c], eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.GDI32.dll_GetDIBits]
mov esi, dword [esp + 0x70]
mov ecx, 0xa
lea edi, [esp + 0x44]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x78]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call edi
mov eax, dword [esp + 0x58]
test eax, eax
jne 0x41c8f1f6
movzx eax, word [esp + 0x52]
imul eax, dword [esp + 0x48]
add eax, 0x1f
sar eax, 3
and eax, 0xfffffffc
imul eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
lea ecx, [edx + 0x400]
cmp ecx, 0x400
jb 0x41c8f243
lea eax, [eax + edx + 0x400]
cmp eax, ecx
jb 0x41c8f243
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
mov esi, eax
test esi, esi
jne 0x41c8f24f
mov eax, dword [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x74]
push esi
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectPalette]
push ebx
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x5c
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x4c]
push 0
push eax
lea eax, [eax + edx + 0x400]
push eax
push ecx
push 0
push ebp
push ebx
call dword [sym.imp.GDI32.dll_GetDIBits]
push esi
call edi
mov edx, dword [esp + 0x74]
push 0
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectPalette]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x14]
push ecx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [esp + 0x18]
mov ecx, dword [edx]
mov edx, dword [ecx]
push 0
push eax
call dword [edx + 4]
push ebp
mov ebx, eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
test ebx, ebx
pop ebp
sete al
pop ebx
add esp, 0x5c
ret 0xc