Function at 0x59d030
Capabilities:
Capture screenshot

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x158
mov rbp, rsp
mov qword [rbp + 0x68], rbp
mov qword [rbp + 0x180], rcx
mov qword [rbp + 0x188], rdx
mov qword [rbp + 0x190], r8
mov qword [rbp + 0x198], r9
mov rax, qword [rbp + 0x1a0]
mov qword [rbp + 0x1a0], rax
mov qword [rbp + 0x120], 0
mov rax, qword [rbp + 0x198]
cmp dword [rax + 0x20], 0
je 0x59d0a6
mov rax, qword [rbp + 0x198]
cmp dword [rax + 0x24], 0
je 0x59d93d
mov rax, qword [rbp + 0x198]
cmp dword [rax + 0x28], 0
je 0x59d93d
mov rax, qword [rbp + 0x198]
cmp dword [rax + 0x20], 0
jne 0x59d0d5
mov rax, qword [rbp + 0x198]
cmp dword [rax + 4], 0
je 0x59d93d
mov rax, qword [rbp + 0x198]
cmp dword [rax + 8], 0
je 0x59d93d
mov rcx, qword [rbp + 0x180]
call fcn.0059c920
mov dword [rbp + 0xc8], 0
cmp qword [rbp + 0x180], 0
je 0x59d117
mov rcx, qword [rbp + 0x180]
mov edx, 0x68
lea r8, [rbp + 0xa8]
call sub.gdi32.dll_GetObjectW
cmp eax, 0x20
jge 0x59d117
call fcn.00595350
xor ecx, ecx
call sub.user32.dll_GetDC
mov rcx, rax
call fcn.005954e0
mov qword [rbp + 0x118], rax
mov rcx, qword [rbp + 0x118]
call sub.gdi32.dll_CreateCompatibleDC
mov rcx, rax
call fcn.005954e0
mov qword [rbp + 0x138], rax
nop
mov rax, qword [rbp + 0x198]
cmp dword [rax + 0x20], 0x28
jae 0x59d1ee
mov rax, qword [rbp + 0x198]
mov rcx, qword [rbp + 0x198]
movzx rax, word [rax + 0x10]
or ax, word [rcx + 0x12]
cmp ax, 1
jne 0x59d1b9
mov rax, qword [rbp + 0x198]
mov ecx, dword [rax + 4]
mov rax, qword [rbp + 0x198]
mov edx, dword [rax + 8]
mov r8d, 1
mov r9d, 1
mov qword [rsp + 0x20], 0
call sub.gdi32.dll_CreateBitmap
mov rcx, rax
call fcn.005954e0
mov qword [rbp + 0x120], rax
jmp 0x59d54b
mov rcx, qword [rbp + 0x118]
mov rax, qword [rbp + 0x198]
mov edx, dword [rax + 4]
mov rax, qword [rbp + 0x198]
mov r8d, dword [rax + 8]
call sub.gdi32.dll_CreateCompatibleBitmap
mov rcx, rax
call fcn.005954e0
mov qword [rbp + 0x120], rax
jmp 0x59d54b
mov ecx, 0x42c
call fcn.004092c0
mov qword [rbp + 0x148], rax
nop
mov rax, qword [rbp + 0x198]
mov dword [rax + 0x20], 0x28
mov rax, qword [rbp + 0x198]
mov word [rax + 0x2c], 1
mov rax, qword [rbp + 0x198]
cmp word [rax + 0x2e], 0
jne 0x59d25c
mov rcx, qword [rbp + 0x118]
mov edx, 0xc
call sub.gdi32.dll_GetDeviceCaps
mov ebx, eax
mov rcx, qword [rbp + 0x118]
mov edx, 0xe
call sub.gdi32.dll_GetDeviceCaps
mov rcx, qword [rbp + 0x198]
imul bx, ax
mov word [rcx + 0x2e], bx
mov rdi, qword [rbp + 0x148]
mov rax, qword [rbp + 0x198]
lea rsi, [rax + 0x20]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
mov rax, qword [rbp + 0x198]
mov rcx, qword [rbp + 0x198]
mov ecx, dword [rcx + 0x24]
mov dword [rax + 4], ecx
mov rax, qword [rbp + 0x198]
mov rcx, qword [rbp + 0x198]
mov ecx, dword [rcx + 0x28]
mov dword [rax + 8], ecx
mov rax, qword [rbp + 0x198]
cmp word [rax + 0x2e], 8
ja 0x59d3f0
mov rax, qword [rbp + 0x198]
cmp word [rax + 0x2e], 1
jne 0x59d2f5
cmp qword [rbp + 0x180], 0
je 0x59d2d4
cmp qword [rbp + 0xc0], 0
jne 0x59d2f5
mov rax, qword [rbp + 0x148]
mov dword [rax + 0x28], 0
mov rax, qword [rbp + 0x148]
mov dword [rax + 0x2c], 0xffffff
jmp 0x59d447
cmp qword [rbp + 0x190], 0
je 0x59d321
mov rcx, qword [rbp + 0x190]
mov rax, qword [rbp + 0x148]
lea rdx, [rax + 0x28]
mov r8d, 0xff
call fcn.00596140
jmp 0x59d447
cmp qword [rbp + 0x180], 0
je 0x59d447
mov rcx, qword [rbp + 0x138]
mov rdx, qword [rbp + 0x180]
call sub.gdi32.dll_SelectObject
mov qword [rbp + 0x128], rax
cmp dword [rbp + 0xc8], 0
jbe 0x59d387
cmp qword [rbp + 0xc0], 0
je 0x59d387
mov rcx, qword [rbp + 0x138]
xor edx, edx
mov r8d, pe_nt_image_headers64
mov rax, qword [rbp + 0x148]
lea r9, [rax + 0x28]
call sub.gdi32.dll_GetDIBColorTable
mov rcx, qword [rbp + 0x198]
mov dword [rcx + 0x40], eax
jmp 0x59d3db
mov rax, qword [rbp + 0x198]
mov eax, dword [rax + 0x28]
movsxd rcx, eax
shr rcx, 0x20
xor eax, ecx
mov rdx, qword [rbp + 0x138]
mov r8, qword [rbp + 0x180]
xor r9, r9
sub eax, ecx
mov qword [rsp + 0x20], 0
mov rcx, qword [rbp + 0x148]
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 rcx, qword [rbp + 0x138]
mov rdx, qword [rbp + 0x128]
call sub.gdi32.dll_SelectObject
jmp 0x59d447
mov rax, qword [rbp + 0x198]
movzx rax, word [rax + 0x2e]
cmp ax, 0x10
je 0x59d408
cmp ax, 0x20
jne 0x59d447
mov rax, qword [rbp + 0x198]
mov eax, dword [rax + 0x30]
test eax, 3
je 0x59d447
mov rcx, qword [rbp + 0x198]
call fcn.0059cfe0
mov rax, qword [rbp + 0x198]
lea rcx, [rax + 0x48]
mov rax, qword [rbp + 0x148]
lea rdx, [rax + 0x28]
mov r8d, 0xc
call fcn.004096a0
mov rcx, qword [rbp + 0x118]
mov rdx, qword [rbp + 0x148]
xor r8, r8
lea r9, [rbp + 0x98]
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call sub.gdi32.dll_CreateDIBSection
mov rcx, rax
call fcn.005954e0
mov qword [rbp + 0x120], rax
cmp qword [rbp + 0x98], 0
jne 0x59d493
call fcn.00595420
cmp qword [rbp + 0x180], 0
je 0x59d52c
mov rax, qword [rbp + 0x198]
mov ecx, dword [rbp + 0xac]
cmp ecx, dword [rax + 0x24]
jne 0x59d52c
mov rax, qword [rbp + 0x198]
mov ecx, dword [rbp + 0xb0]
cmp ecx, dword [rax + 0x28]
jne 0x59d52c
mov rax, qword [rbp + 0x198]
cmp word [rax + 0x2e], 8
jbe 0x59d52c
mov rax, qword [rbp + 0x198]
mov eax, dword [rax + 0x28]
movsxd rcx, eax
shr rcx, 0x20
xor eax, ecx
mov rdx, qword [rbp + 0x138]
mov r8, qword [rbp + 0x180]
xor r9, r9
sub eax, ecx
mov rcx, qword [rbp + 0x98]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp + 0x148]
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
jmp 0x59d53b
nop
mov rcx, qword [rbp + 0x148]
call fcn.004092f0
jmp 0x59d54b
xor ecx, ecx
mov rdx, qword [rbp + 0x68]
call fcn.0059d950
jmp 0x59d932
mov rcx, qword [rbp + 0x120]
call fcn.005954e0
mov rcx, qword [rbp + 0x138]
mov rdx, qword [rbp + 0x120]
xchg ebp, eax
and byte [rcx], al
add byte [rax], al
xor ecx, ecx
mov rdx, qword [rbp + 0x68]
call fcn.0059da00