Function at 0x42ced0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x50
mov eax, dword [0x52e144]
xor eax, esp
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x58]
push ebx
mov ebx, dword [esp + 0x60]
push ebp
push esi
mov esi, dword [esp + 0x60]
push edi
mov edi, dword [esi + 0xc]
sub edi, dword [esi + 4]
push 0
mov dword [esp + 0x14], eax
mov eax, dword [esi + 8]
sub eax, dword [esi]
push 0
push 0
push str.DISPLAY
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edi
call dword [sym.imp.GDI32.dll_CreateDCA]
mov ebp, eax
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
push 0xcc0020
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 4]
mov esi, dword [esi]
push eax
push esi
push ebp
push edx
mov edx, dword [esp + 0x28]
push ecx
push eax
push esi
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
push 0x26
push ebp
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
test eax, 0x100
je 0x42cfbf
push 0x408
call fcn.004b7c73
mov esi, eax
add esp, 4
lea ecx, [esi + 4]
push ecx
push 0xff
push 0
mov eax, 0x300
push ebp
mov word [esi], ax
call dword [sym.imp.GDI32.dll_GetSystemPaletteEntries]
push esi
mov word [esi + 2], ax
call dword [sym.imp.GDI32.dll_CreatePalette]
push esi
mov dword [esp + 0x14], eax
call fcn.004b722a
add esp, 4
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x10]
push ecx
push 0
push edx
call fcn.0042c060
add esp, 0xc
push ebp
mov dword [ebx], eax
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [ebx], 0
jne 0x42d006
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.004b6da3
add esp, 0x50
ret
mov ebp, dword [esp + 0x1c]
lea ebp, [ebp + ebp*2]
push ebp
mov dword [esp + 0x18], ebp
call fcn.004b7c73
add esp, 4
mov esi, eax
mov dword [esp + 0x18], esi
cmp edi, 1
jbe 0x42d094
dec edi
mov dword [esp + 0x10], edi
jmp 0x42d030
mov eax, dword [ebx]
add eax, ebp
mov esi, eax
mov ecx, 9
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
push esi
push eax
push edi
call fcn.004b6e40
mov ecx, dword [ebx]
lea eax, [esi - 0x27]
push eax
lea eax, [edi + 0x27]
push eax
add ecx, ebp
push ecx
call fcn.004b6e40
mov edx, dword [ebx]
lea edi, [edx + ebp - 0x27]
add ebp, dword [esp + 0x2c]
mov ecx, 9
lea esi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
add esp, 0x18
sub dword [esp + 0x10], 1
movsb byte es:[edi], byte [esi]
jne 0x42d030
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
mov eax, dword [ebx]
push ebp
push eax
push esi
call fcn.004b6e40
mov edx, dword [ebx]
add ebp, 0xffffffd9
push ebp
lea ecx, [esi + 0x27]
push ecx
push edx
call fcn.004b6e40
push esi
call fcn.004b722a
imul edi, dword [esp + 0x38]
lea edi, [edi + edi*2]
add esp, 0x1c
xor eax, eax
test edi, edi
jbe 0x42d0f6
mov ecx, dword [ebx]
movzx edx, byte [ecx + eax + 2]
lea esi, [ecx + eax]
mov cl, byte [esi + 1]
mov byte [esi + 1], dl
mov edx, dword [ebx]
mov byte [edx + eax + 2], cl
mov ecx, dword [ebx]
movzx edx, byte [ecx + eax + 2]
lea esi, [ecx + eax]
mov cl, byte [esi]
mov byte [esi], dl
mov edx, dword [ebx]
mov byte [edx + eax + 2], cl
add eax, 3
cmp eax, edi
jb 0x42d0c5
mov eax, dword [ebx]
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b6da3
add esp, 0x50
ret