Function at 0x140004c40
Capabilities:
Capture screenshot

Disassembly:
push rbx
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0xb8
mov rax, qword [0x14007e040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r14d, dword [rsp + 0x110]
mov r13d, ecx
mov dword [rsp + 0x54], ecx
mov edi, r9d
mov rcx, qword [0x14007e960]
mov esi, r8d
mov ebx, edx
mov dword [rsp + 0x50], r14d
call qword [sym.imp.USER32.dll_GetDC]
mov qword [rsp + 0x60], rax
mov r15, rax
test rax, rax
je 0x140004f2a
mov rcx, r15
mov qword [rsp + 0xf0], rbp
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rbp, rax
test rax, rax
jne 0x140004ccd
mov rcx, qword [0x14007e960]
mov rdx, r15
call qword [sym.imp.USER32.dll_ReleaseDC]
xor al, al
jmp 0x140004f22
mov r8d, r14d
mov qword [rsp + 0xb0], r12
mov edx, edi
mov rcx, r15
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov qword [rsp + 0x68], rax
mov r12, rax
mov rcx, rbp
test rax, rax
je 0x140004d4a
mov rdx, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov dword [rsp + 0x40], 0xcc0020
mov r9d, edi
mov dword [rsp + 0x38], esi
xor r8d, r8d
mov dword [rsp + 0x30], ebx
xor edx, edx
mov qword [rsp + 0x28], r15
mov rcx, rbp
mov dword [rsp + 0x20], r14d
mov qword [rsp + 0x58], rax
call qword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
jne 0x140004d67
mov rdx, qword [rsp + 0x58]
mov rcx, rbp
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, r12
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, rbp
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rcx, qword [0x14007e960]
mov rdx, r15
call qword [sym.imp.USER32.dll_ReleaseDC]
xor al, al
jmp 0x140004f1a
xor ecx, ecx
mov dword [rsp + 0x70], 0x28
mov eax, r14d
mov qword [rsp + 0x94], rcx
neg eax
mov dword [rsp + 0x74], edi
mov dword [rsp + 0x78], eax
xorps xmm0, xmm0
mov eax, r14d
mov qword [rsp + 0x7c], 0x180001
imul eax, edi
mov esi, 1
movdqu xmmword [rsp + 0x84], xmm0
lea eax, [rax + rax*2]
movsxd rcx, eax
call fcn.140039d80
mov rbx, rax
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x70]
mov r9d, r14d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, r12
mov qword [rsp + 0x20], rbx
mov rcx, rbp
call qword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
jne 0x140004e19
mov rdx, qword [rsp + 0x58]
mov rcx, rbp
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, r12
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, rbp
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rcx, qword [0x14007e960]
mov rdx, r15
call qword [sym.imp.USER32.dll_ReleaseDC]
xor r14b, r14b
jmp 0x140004f0e
movzx r12d, r13w
xor r14b, r14b
shr r12w, 8
xor r11d, r11d
shr r13d, 0x10
cmp dword [rsp + 0x50], r11d
jle 0x140004edc
mov r15d, dword [rsp + 0x54]
nop dword [rax]
test r14b, r14b
jne 0x140004ed7
xor r9d, r9d
test edi, edi
jle 0x140004ec2
movzx r10d, r15b
mov eax, esi
nop word [rax + rax]
movsxd rcx, eax
mov r8d, r10d
movzx edx, byte [rcx + rbx + 1]
sub r8d, edx
mov ecx, r8d
neg ecx
cmovs ecx, r8d
test ecx, ecx
jg 0x140004eb2
movsxd rcx, eax
movzx r8d, r12w
movzx edx, byte [rcx + rbx]
sub r8d, edx
mov ecx, r8d
neg ecx
cmovs ecx, r8d
test ecx, ecx
jg 0x140004eb2
movsxd rcx, eax
movzx r8d, r13b
movzx edx, byte [rcx + rbx - 1]
sub r8d, edx
mov ecx, r8d
neg ecx
cmovs ecx, r8d
test ecx, ecx
jle 0x140004ebf
inc r9d
add eax, 3
cmp r9d, edi
jl 0x140004e60
jmp 0x140004ec2
mov r14b, 1
lea r9d, [rdi + rdi*2]
inc r11d
add esi, r9d
cmp r11d, dword [rsp + 0x50]
jl 0x140004e40
mov r15, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, rbp
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, rbp
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rcx, qword [0x14007e960]
mov rdx, r15
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, rbx
call fcn.140039a10
movzx eax, r14b
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400399f0
add rsp, 0xb8
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
ret