Function at 0x4aad40
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.004aa210
test al, al
jne 0x4ab15e
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 0x4aadcb
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 0x4aae12
mov rax, qword [rbp + 0x48]
cmp qword [rax + 0x20], 0
je 0x4aae12
mov ecx, 0x18
call fcn.00405970
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 0x4aae0a
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.004059a0
xor rcx, rcx
call sub.gdi32.dll_CreateCompatibleDC
mov qword [rbp + 0x58], rax
mov rax, qword [rbp + 0x48]
cmp byte [rax + 0x4c], 1
jne 0x4aaf66
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, [0x004ab178]
call fcn.004b11d0
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, [0x004ab1ac]
call fcn.004b11d0
mov rax, qword [rbp + 0x48]
mov ecx, dword [rax + 0x34]
call fcn.0049dd50
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.0049d7d0
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 0x4aaf31
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 0x4aaf50
mov rcx, qword [rbp + 0x48]
mov rdx, qword [rbp + 0x58]
xor r8, r8
xor r9, r9
call fcn.004a9370
mov rcx, qword [rbp + 0x58]
mov rdx, rbx
call sub.gdi32.dll_SelectObject
mov rcx, qword [rbp + 0x48]
call fcn.004a9270
mov rax, qword [rbp + 0x48]
mov qword [rax + 0x20], rsi
jmp 0x4ab133
lea rax, [0x0052ca10]
mov rcx, qword [rbp + 0x48]
movzx rcx, byte [rcx + 0x61]
movzx rax, byte [rax + rcx]
test eax, eax
jne 0x4aaf93
lea rax, [0x0052ca10]
movzx rcx, byte [0x0052ac80]
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.004a8e80
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x48]
cmp byte [rax + 0x61], 5
jne 0x4aafc3
lea rcx, [rbp + 0x78]
call fcn.004a90d0
mov rcx, qword [rbp + 0x78]
call fcn.004aad00
mov r13d, eax
mov rax, qword [rbp + 0x48]
imul r13d, dword [rax + 0x18]
movsxd rcx, r13d
call fcn.00405970
mov qword [rbp + 0x70], rax
cmp qword [rbp + 0x70], 0
setne cl
lea rdx, [0x004ab1f0]
call fcn.004b11d0
mov rcx, qword [rbp + 0x48]
call fcn.004aa2b0
mov rcx, rax
mov eax, dword [rbp + 0x54]
mov rdx, qword [rbp + 0x48]
cmp dword [rdx + 0x18], eax
jge 0x4ab019
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x18]
jmp 0x4ab01c
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 0x4ab066
mov rcx, qword [rbp + 0x48]
mov ecx, dword [rcx + 0x18]
jmp 0x4ab069
mov ecx, dword [rbp + 0x54]
cmp eax, ecx
je 0x4ab0ff
mov rcx, qword [rbp + 0x70]
call fcn.004059a0
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, [0x004ab210]
call fcn.004b11d0
mov rcx, qword [rbp + 0x58]
mov rdx, rsi
call sub.gdi32.dll_SelectObject
mov rbx, rax
test rbx, rbx
setne cl
lea rdx, [0x004ab278]
call fcn.004b11d0
mov rcx, qword [rbp + 0x48]
mov rdx, qword [rbp + 0x58]
xor r8, r8
xor r9, r9
call fcn.004a9370
mov rcx, qword [rbp + 0x58]
mov rdx, rbx
call sub.gdi32.dll_SelectObject
mov rcx, qword [rbp + 0x48]
call fcn.004a9270
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 0x4ab155
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