Function at 0x413660
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a2b55
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x615780]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x54]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x3c], eax
call fcn.004322b0
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 0
call fcn.004321fd
push dword [ebp - 0x50]
mov byte [ebp - 4], 1
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [ebp - 0x64]
call fcn.00432b60
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push dword [esi + 0x20]
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], vtable.CBitmap.0
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
push ecx
push eax
push dword [ebp - 0x50]
mov byte [ebp - 4], 2
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [ebp - 0x30]
call fcn.00432ba2
push dword [ebp - 0x2c]
push dword [ebp - 0x60]
call fcn.0043331e
mov edx, dword [ebp - 0x14]
mov edi, eax
sub edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x20]
push 0xcc0020
push 0
push 0
push dword [ebp - 0x50]
push edx
push ecx
push 0
push 0
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_BitBlt]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], vtable.CPalette.0
push 0x26
push dword [ebp - 0x4c]
mov byte [ebp - 4], 3
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
test eax, 0x100
je 0x4137c7
push 0x408
call fcn.004306a5
mov esi, eax
add esp, 4
mov eax, 0x300
lea ecx, [esi + 4]
mov word [esi], ax
push ecx
push 0xff
push 0
push dword [ebp - 0x50]
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, [ebp - 0x38]
call fcn.00432ba2
push 0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x54]
call fcn.004333c6
push dword [ebp - 0x50]
call dword [sym.imp.GDI32.dll_RealizePalette]
push esi
call fcn.004306ae
add esp, 4
test edi, edi
jne 0x4137cf
xor eax, eax
jmp 0x4137d2
mov eax, dword [edi + 4]
push eax
push dword [ebp - 0x60]
call fcn.0043331e
lea eax, [ebp - 0xa8]
push eax
push 0x18
push dword [ebp - 0x2c]
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [ebp - 0xa4]
xorps xmm0, xmm0
movups xmmword [ebp - 0x8c], xmm0
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x88], eax
mov ax, word [ebp - 0x98]
mov word [ebp - 0x84], ax
mov eax, 0x18
push 0x28
push 0
movups xmmword [ebp - 0x7c], xmm0
mov dword [ebp - 0x90], 0x28
movq qword [ebp - 0x6c], xmm0
mov word [ebp - 0x82], ax
mov dword [ebp - 0x80], 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
movups xmm0, xmmword [ebp - 0x90]
mov esi, eax
push 0
mov dword [ebp - 0x28], esi
movups xmmword [esi], xmm0
movups xmm0, xmmword [ebp - 0x80]
movups xmmword [esi + 0x10], xmm0
movq xmm0, qword [ebp - 0x70]
movq qword [esi + 0x20], xmm0
call dword [sym.imp.USER32.dll_GetDC]
push 0
push esi
mov esi, dword [sym.imp.GDI32.dll_GetDIBits]
mov edi, eax
push 0
push dword [ebp - 0xa0]
push 0
push dword [ebp - 0x2c]
push edi
call esi
mov ecx, dword [ebp - 0x28]
push 2
mov eax, dword [ecx + 0x14]
add eax, 0x28
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
mov ecx, dword [ebp - 0x28]
test eax, eax
push 0
cmovne ecx, eax
push ecx
mov dword [ebp - 0x28], ecx
mov eax, dword [ecx]
add eax, ecx
push eax
push dword [ebp - 0xa0]
push 0
push dword [ebp - 0x2c]
push edi
call esi
test eax, eax
jne 0x4138d7
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor edi, edi
jmp 0x4138da
mov edi, dword [ebp - 0x28]
push edi
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
call fcn.00414470
add esp, 0xc
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test esi, esi
mov dword [ebp - 0x38], vtable.CPalette.0
lea ecx, [ebp - 0x38]
setne byte [ebp - 0x21]
call fcn.00403740
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], vtable.CBitmap.0
call fcn.00403740
lea ecx, [ebp - 0x64]
call fcn.00432359
lea ecx, [ebp - 0x54]
call fcn.004323fe
mov al, byte [ebp - 0x21]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057742f
mov esp, ebp
pop ebp
ret