Function at 0x49aad0
Capabilities:
Capture screenshot

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
add rsp, 0xffffffffffffff80
mov rbp, rsp
mov qword [rbp + 0x48], rcx
mov rcx, qword [rbp + 0x48]
call fcn.00499fa0
test al, al
jne 0x49aeee
xor rdi, rdi
mov rcx, qword [rbp + 0x48]
mov rbx, qword [rbp + 0x48]
call qword [rbx + 0x40]
mov dword [rbx + 0x30], 0
mov qword [rbx + 0x76], 0
mov qword [rbx + 0x7e], 0
mov eax, dword [rbx + 0x1c]
mov dword [rbp + 0x50], eax
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x18]
mov dword [rbp + 0x54], eax
mov rax, qword [rbp + 0x48]
cmp qword [rax + 0x55], 0
je 0x49ab5b
mov rax, qword [rbp + 0x48]
mov rax, qword [rax + 0x4d]
mov eax, dword [rax + 4]
mov dword [rbp + 0x50], eax
mov rax, qword [rbp + 0x48]
mov rax, qword [rax + 0x4d]
mov eax, dword [rax + 8]
movsxd rcx, eax
shr rcx, 0x20
xor eax, ecx
sub eax, ecx
mov dword [rbp + 0x54], eax
jmp 0x49aba2
mov rax, qword [rbp + 0x48]
cmp qword [rax + 0x20], 0
je 0x49aba2
mov ecx, 0x18
call fcn.00405990
mov rbx, rax
mov rax, qword [rbp + 0x48]
mov rcx, qword [rax + 0x20]
mov edx, 0x18
mov r8, rbx
call sub.gdi32.dll_GetObjectW
test eax, eax
je 0x49ab9a
mov eax, dword [rbx + 4]
mov dword [rbp + 0x50], eax
mov eax, dword [rbx + 8]
mov dword [rbp + 0x54], eax
mov rcx, rbx
call fcn.004059c0
xor rcx, rcx
call sub.gdi32.dll_CreateCompatibleDC
mov qword [rbp + 0x58], rax
mov rax, qword [rbp + 0x48]
cmp byte [rax + 0x4c], 1
jne 0x49acf6
xor rcx, rcx
call sub.user32.dll_GetDC
mov rbx, rax
mov rcx, rbx
mov rax, qword [rbp + 0x48]
mov edx, dword [rax + 0x1c]
mov rax, qword [rbp + 0x48]
mov r8d, dword [rax + 0x18]
call sub.gdi32.dll_CreateCompatibleBitmap
mov rsi, rax
test rsi, rsi
setne cl
lea rdx, [0x0049af08]
call fcn.004a0ed0
xor rcx, rcx
mov rdx, rbx
call sub.user32.dll_ReleaseDC
mov rcx, qword [rbp + 0x58]
mov rdx, rsi
call sub.gdi32.dll_SelectObject
mov rbx, rax
test rbx, rbx
setne cl
lea rdx, [0x0049af3c]
call fcn.004a0ed0
mov rax, qword [rbp + 0x48]
mov ecx, dword [rax + 0x34]
call fcn.0048dfe0
mov ecx, eax
call sub.gdi32.dll_CreateSolidBrush
mov rdi, rax
lea rcx, [rbp + 0x60]
xor rdx, rdx
xor r8, r8
mov rax, qword [rbp + 0x48]
mov r9d, dword [rax + 0x1c]
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x20], eax
call fcn.0048da60
mov rcx, qword [rbp + 0x58]
lea rdx, [rbp + 0x60]
mov r8, rdi
call sub.user32.dll_FillRect
mov rcx, rdi
call sub.gdi32.dll_DeleteObject
mov rax, qword [rbp + 0x48]
cmp qword [rax + 0x55], 0
je 0x49acc1
mov rcx, qword [rbp + 0x58]
mov rdx, rbx
call sub.gdi32.dll_SelectObject
mov rcx, qword [rbp + 0x58]
mov rdx, rsi
xor r8, r8
mov rax, qword [rbp + 0x48]
mov r9d, dword [rax + 0x18]
mov rax, qword [rbp + 0x48]
mov rax, qword [rax + 0x55]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 0x48]
mov rax, qword [rax + 0x4d]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], 0
call sub.gdi32.dll_SetDIBits
jmp 0x49ace0
mov rcx, qword [rbp + 0x48]
mov rdx, qword [rbp + 0x58]
xor r8, r8
xor r9, r9
call fcn.00499100
mov rcx, qword [rbp + 0x58]
mov rdx, rbx
call sub.gdi32.dll_SelectObject
mov rcx, qword [rbp + 0x48]
call fcn.00499000
mov rax, qword [rbp + 0x48]
mov qword [rax + 0x20], rsi
jmp 0x49aec3
lea rax, [0x00522204]
mov rcx, qword [rbp + 0x48]
movzx rcx, byte [rcx + 0x61]
movzx rax, byte [rax + rcx]
test eax, eax
jne 0x49ad23
lea rax, [0x00522204]
movzx rcx, byte [0x005205a8]
movzx rax, byte [rax + rcx]
xor rsi, rsi
mov rcx, qword [rbp + 0x48]
mov ecx, dword [rcx + 0x1c]
mov rdx, qword [rbp + 0x48]
mov edx, dword [rdx + 0x18]
mov r8d, eax
call fcn.00498c10
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x48]
cmp byte [rax + 0x61], 5
jne 0x49ad53
lea rcx, [rbp + 0x78]
call fcn.00498e60
mov rcx, qword [rbp + 0x78]
call fcn.0049aa90
mov r13d, eax
mov rax, qword [rbp + 0x48]
imul r13d, dword [rax + 0x18]
movsxd rcx, r13d
call fcn.00405990
mov qword [rbp + 0x70], rax
cmp qword [rbp + 0x70], 0
setne cl
lea rdx, [0x0049af80]
call fcn.004a0ed0
mov rcx, qword [rbp + 0x48]
call fcn.0049a040
mov rcx, rax
mov eax, dword [rbp + 0x54]
mov rdx, qword [rbp + 0x48]
cmp dword [rdx + 0x18], eax
jge 0x49ada9
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x18]
jmp 0x49adac
mov eax, dword [rbp + 0x54]
mov rdx, qword [rbp + 0x58]
mov r8, rcx
xor r9, r9
mov rcx, qword [rbp + 0x70]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp + 0x78]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x30], 0
mov rcx, rdx
mov rdx, r8
mov r8d, r9d
mov r9d, eax
call sub.gdi32.dll_GetDIBits
mov ecx, dword [rbp + 0x54]
mov rdx, qword [rbp + 0x48]
cmp dword [rdx + 0x18], ecx
jge 0x49adf6
mov rcx, qword [rbp + 0x48]
mov ecx, dword [rcx + 0x18]
jmp 0x49adf9
mov ecx, dword [rbp + 0x54]
cmp eax, ecx
je 0x49ae8f
mov rcx, qword [rbp + 0x70]
call fcn.004059c0
mov qword [rbp + 0x70], 0
mov rcx, qword [rbp + 0x58]
mov rdx, qword [rbp + 0x78]
xor r8, r8
lea r9, [rbp + 0x70]
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call sub.gdi32.dll_CreateDIBSection
mov rsi, rax
mov dil, 1
test rsi, rsi
setne cl
lea rdx, [0x0049afa0]
call fcn.004a0ed0
mov rcx, qword [rbp + 0x58]
mov rdx, rsi
call sub.gdi32.dll_SelectObject
mov rbx, rax
test rbx, rbx
setne cl
lea rdx, [0x0049b008]
call fcn.004a0ed0
mov rcx, qword [rbp + 0x48]
mov rdx, qword [rbp + 0x58]
xor r8, r8
xor r9, r9
call fcn.00499100
mov rcx, qword [rbp + 0x58]
mov rdx, rbx
call sub.gdi32.dll_SelectObject
mov rcx, qword [rbp + 0x48]
call fcn.00499000
mov rax, qword [rbp + 0x48]
mov dword [rax + 0x5d], r13d
mov rax, qword [rbp + 0x70]
mov rcx, qword [rbp + 0x48]
mov qword [rcx + 0x55], rax
mov rax, qword [rbp + 0x78]
mov rcx, qword [rbp + 0x48]
mov qword [rcx + 0x4d], rax
mov qword [rcx + 0x20], rsi
mov byte [rcx + 0x9e], dil
mov rax, qword [rbp + 0x48]
cmp qword [rax + 0x62], 0
je 0x49aee5
mov rcx, qword [rbp + 0x48]
mov rdx, qword [rbp + 0x58]
mov r8d, dword [rbp + 0x50]
mov r9d, dword [rbp + 0x54]
mov rbx, qword [rbp + 0x48]
call qword [rbx + 0x62]
mov rcx, qword [rbp + 0x58]
call sub.gdi32.dll_DeleteDC
lea rsp, [rbp + 0x80]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret