Function at 0x140049dc0
Capabilities:
Copy file
Set file attributes

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x4760]
mov eax, 0x4860
call fcn.140064980
sub rsp, rax
mov rax, qword [0x1400c24b8]
xor rax, rsp
mov qword [rbp + 0x4730], rax
mov qword [rsp + 0x4890], rsi
mov r8d, 0x200
mov qword [rsp + 0x4858], r12
mov qword [rsp + 0x4850], r13
mov r13, rcx
mov qword [rsp + 0x58], rdx
xor edx, edx
mov qword [rsp + 0x38], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x4848], r14
mov qword [rsp + 0x4840], r15
call fcn.140067170
mov r8b, 1
lea rcx, [rbp + 0x10]
xor edx, edx
call fcn.14000d410
xor esi, esi
mov r12d, eax
mov dword [rsp + 0x30], r12d
test eax, eax
je 0x140049fd0
mov r8d, r12d
lea rcx, [rbp - 0x70]
shl r8, 2
lea rbx, [rbp + 0x630]
xor edx, edx
mov edi, r12d
call fcn.140067170
nop dword [rax]
mov word [rbx], si
lea rbx, [rbx + 0x208]
sub rdi, 1
jne 0x140049e70
mov edx, 0x208
lea rcx, [rbp + 0x210]
call fcn.14004a720
xor r8d, r8d
lea r14, [rbp - 0x70]
mov r15, rsi
mov rdi, rsi
nop
mov rdx, qword [r13]
lea rax, [rdi + rdx]
test rax, rax
je 0x140049fb1
mov ecx, 0x104
cmp word [rax], 0
je 0x140049ec6
add rax, 2
sub rcx, 1
jne 0x140049eb6
mov eax, 0x104
sub rax, rcx
test rcx, rcx
cmove rax, r8
je 0x140049fb1
cmp rax, 4
jbe 0x140049fb1
add rax, r15
lea rbx, [rdx + rax*2]
lea rcx, [rbx - 8]
call qword [sym.imp.USER32.dll_CharLowerW]
xor edx, edx
lea r8, str..bmp
mov ecx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rbx + rcx*2 - 8]
inc rcx
cmp ax, word [r8 + rcx*2 - 2]
jne 0x140049f36
cmp rcx, 5
jne 0x140049f10
mov dword [r14], 2
lea r8, str._sNVWMON_d.bmp
jmp 0x140049f63
mov rax, rdx
lea rdx, str..jpg
movzx ecx, word [rbx + rax*2 - 8]
inc rax
cmp cx, word [rdx + rax*2 - 2]
jne 0x140049f82
cmp rax, 5
jne 0x140049f40
mov dword [r14], 1
lea r8, str._sNVWMON_d.jpg
lea rcx, [rbp + 0x630]
mov dword [rsp + 0x20], esi
add rcx, rdi
lea r9, [rbp + 0x210]
mov edx, 0x208
call fcn.140004da0
mov rcx, qword [r13]
mov edx, 0x80
add rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [r13]
lea rdx, [rbp + 0x630]
add rdx, rdi
add rcx, rdi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
xor r8d, r8d
inc esi
add rdi, 0x208
add r15, 0x104
add r14, 4
cmp esi, r12d
jb 0x140049ea0
jmp 0x140049fe1
mov edx, 0x208
lea rcx, [rbp + 0x210]
call fcn.14004a720
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rcx, rax
mov qword [rsp + 0x48], rax
mov rdi, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, 0x4e
mov rsi, rax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, 0x4f
mov ebx, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov edx, ebx
mov rcx, rdi
mov r8d, eax
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rdx, rax
mov qword [rsp + 0x40], rax
mov rcx, rsi
mov r13, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov qword [rsp + 0x50], rax
mov r14, rax
test r13, r13
je 0x14004a172
mov rbx, 0xffffffffffffffff
test r12d, r12d
je 0x14004a108
mov r13, qword [rsp + 0x38]
lea rax, [rbp - 0x70]
mov r12d, 0x2080
lea r15, [rbp - 0x70]
sub r12, rax
lea r14, [rbp + 0x10]
mov eax, dword [rsp + 0x30]
lea rdi, [rbp + 0x630]
mov qword [rsp + 0x30], rax
movups xmm0, xmmword [r14]
xor eax, eax
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], rax
mov r8, rbx
movaps xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x70], ax
inc r8
cmp word [rdi + r8*2], ax
jne 0x14004a0a1
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.14000a2d0
mov rax, qword [r13]
lea rcx, [rsp + 0x60]
mov r8d, dword [r15]
lea rdx, [rsp + 0x70]
add rax, r12
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rcx
mov rcx, r13
mov r9d, dword [rax + r15]
call fcn.140049760
add rdi, 0x208
add r14, 0x10
add r15, 4
sub qword [rsp + 0x30], 1
jne 0x14004a082
mov r13, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov r14, qword [rsp + 0x50]
mov rax, qword [rsp + 0x38]
lea r9, [rbp + 0x210]
lea r8, str._sPerMonitorWallpaper_d.bmp
mov edx, 0x208
lea rcx, [rbp + 0x420]
mov eax, dword [rax + 0x210]
mov dword [rsp + 0x20], eax
call fcn.140004da0
lea r8, [rbp + 0x420]
mov rdx, rsi
mov rcx, r13
call fcn.14004c700
lea rax, [rbp + 0x420]
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14004a150
mov rcx, qword [rsp + 0x58]
lea rdx, [rbp + 0x420]
mov r8, rbx
call fcn.14000a2d0
mov bl, 1
jmp 0x14004a174
xor bl, bl
mov r15, qword [rsp + 0x4840]
mov r12, qword [rsp + 0x4858]
test r14, r14
je 0x14004a195
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SelectObject]
mov r14, qword [rsp + 0x4848]
test r13, r13
je 0x14004a1ab
mov rcx, r13
call qword [sym.imp.GDI32.dll_DeleteObject]
mov r13, qword [rsp + 0x4850]
test rsi, rsi
je 0x14004a1c1
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rsi, qword [rsp + 0x4890]
test rdi, rdi
je 0x14004a1d9
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
movzx eax, bl
mov rcx, qword [rbp + 0x4730]
xor rcx, rsp
call fcn.140064920
add rsp, 0x4860
pop rdi
pop rbx
pop rbp
ret