Function at 0x140049984
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x5140
call fcn.1400d8110
sub rsp, rax
mov qword [rsp + 0xb0], 0xfffffffffffffffe
mov qword [rsp + 0x5180], rbx
mov rax, qword [0x1401006f0]
xor rax, rsp
mov qword [rsp + 0x5130], rax
mov r13b, r9b
mov r12, r8
mov qword [rsp + 0x50], r8
mov rbp, rdx
mov qword [rsp + 0x60], rdx
mov r15, rcx
mov r14d, 0x800
mov r8d, r14d
lea rdx, [rsp + 0x4130]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov r8, r14
lea rdx, [0x1400e4130]
lea rcx, [rsp + 0x4130]
call fcn.1400617d0
lea rcx, [rsp + 0x48]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
call fcn.14004b0ac
cmp eax, 0x600
setae bl
xor edi, edi
mov sil, dil
cmp bl, dil
je 0x140049ac0
lea rcx, [rsp + 0x2120]
call fcn.14004932c
cmp al, dil
je 0x14004a294
mov rdx, r14
lea rcx, [rsp + 0x2120]
call fcn.14006119c
mov r8, r14
lea rdx, str.WinRAR.lnk
lea rcx, [rsp + 0x2120]
call fcn.1400805dc
lea rcx, [rsp + 0x2120]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, edi
setne sil
lea rcx, [rsp + 0x68]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
lea r8, [rsp + 0x58]
lea edx, [rdi + 0x19]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea rdx, [rsp + 0x2120]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x58]
call qword [rax + 0x28]
jmp 0x140049ad6
lea rcx, [rsp + 0x2120]
call fcn.14004932c
cmp al, dil
je 0x14004a294
mov rdx, r14
lea rcx, [rsp + 0x2120]
call fcn.14006119c
mov r8, r14
lea rdx, str.WinRAR.lnk
lea rcx, [rsp + 0x2120]
call fcn.1400805dc
cmp byte [r15 + 0x14], dil
je 0x140049c0b
cmp r13b, dil
je 0x140049b27
lea rcx, [rsp + 0x2120]
call fcn.14003c3d4
cmp al, dil
jne 0x140049b27
cmp sil, dil
je 0x140049c18
mov ecx, 0x537
call fcn.140076080
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x2120]
lea rdx, [rsp + 0x4130]
mov cl, 1
call fcn.1400a3194
cmp al, dil
jne 0x140049c18
cmp bl, dil
je 0x140049c18
cmp r13b, dil
je 0x140049c18
lea rcx, [rsp + 0x2120]
call fcn.14003c3d4
cmp al, dil
je 0x140049b99
lea rcx, [rsp + 0x2120]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, edi
je 0x140049c18
lea rcx, [rsp + 0x2120]
call fcn.14004932c
cmp al, dil
je 0x14004a294
mov rdx, r14
lea rcx, [rsp + 0x2120]
call fcn.14006119c
mov r8, r14
lea rdx, str.WinRAR.lnk
lea rcx, [rsp + 0x2120]
call fcn.1400805dc
mov ecx, 0x537
call fcn.140076080
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x2120]
lea rdx, [rsp + 0x4130]
mov cl, 1
call fcn.1400a3194
jmp 0x140049c18
lea rcx, [rsp + 0x2120]
call fcn.14003be94
neg bl
sbb edx, edx
and edx, 0xb
add edx, 0xb
lea r8, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea rdx, [rsp + 0x2120]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x40]
call qword [rax + 0x28]
mov rdx, r14
lea rcx, [rsp + 0x2120]
call fcn.14006119c
mov r8, r14
lea rdx, str.WinRAR.lnk
lea rcx, [rsp + 0x2120]
call fcn.1400805dc
cmp byte [r15 + 0x15], dil
je 0x140049ccb
cmp r13b, dil
je 0x140049c96
lea rcx, [rsp + 0x2120]
call fcn.14003c3d4
cmp al, dil
je 0x140049cd8
mov ecx, 0x537
call fcn.140076080
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x2120]
lea rdx, [rsp + 0x4130]
mov cl, 1
call fcn.1400a3194
jmp 0x140049cd8
lea rcx, [rsp + 0x2120]
call fcn.14003be94
lea rcx, [0x1400e4130]
call fcn.1400c8250
mov qword [rsp + 0x90], rax
lea rcx, str.WinRAR.chm
call fcn.1400c8250
mov qword [rsp + 0x98], rax
lea rcx, str.Rar.txt
call fcn.1400c8250
mov qword [rsp + 0xa0], rax
mov ecx, 0x391
call fcn.140076080
mov rcx, rax
call fcn.1400c8250
mov qword [rsp + 0xa8], rax
lea rcx, [0x1400e4698]
call fcn.1400c8250
mov qword [rsp + 0x70], rax
mov ecx, 0x38e
call fcn.140076080
mov rcx, rax
call fcn.1400c8250
mov qword [rsp + 0x78], rax
mov ecx, 0x38f
call fcn.140076080
mov rcx, rax
call fcn.1400c8250
mov qword [rsp + 0x80], rax
mov ecx, 0x390
call fcn.140076080
mov rcx, rax
call fcn.1400c8250
mov qword [rsp + 0x88], rax
lea r8, [rsp + 0x40]
mov edx, 2
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea rdx, [rsp + 0x2120]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x40]
call qword [rax + 0x28]
mov rdx, r14
lea rcx, [rsp + 0x2120]
call fcn.14006119c
mov r8, r14
lea rdx, [0x1400e4698]
lea rcx, [rsp + 0x2120]
call fcn.1400805dc
mov r14d, 4
cmp r13b, dil
je 0x140049e07
lea rcx, [rsp + 0x2120]
call fcn.14003c3d4
cmp al, dil
je 0x140049ff8
cmp byte [r15 + 0x16], dil
je 0x140049feb
cmp rbp, rdi
je 0x140049e3c
lea rcx, [rsp + 0x2120]
lea rax, [rsp + 0x2120]
mov rdx, rbp
sub rdx, rax
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, 2
cmp ax, di
jne 0x140049e2c
lea rcx, [rsp + 0x2120]
call fcn.14003c3d4
cmp al, dil
je 0x140049f12
mov r9d, 0x802
lea r8, [rsp + 0x3120]
lea rdx, [0x1400e0250]
lea rcx, [rsp + 0x2120]
call fcn.1400611e8
lea rcx, [rsp + 0xc0]
call fcn.140040668
nop
lea rdx, [rsp + 0x3120]
lea rcx, [rsp + 0xc0]
call fcn.14004069c
lea rcx, [rsp + 0x20e0]
call fcn.140083b0c
lea rcx, [rsp + 0x20e8]
call fcn.140083b0c
lea rcx, [rsp + 0x20f0]
call fcn.140083b0c
xor r8d, r8d
lea rdx, [rsp + 0x10d0]
lea rcx, [rsp + 0xc0]
call fcn.140040880
cmp al, dil
je 0x140049f05
lea rcx, [rsp + 0x10d0]
call fcn.14003be94
xor r8d, r8d
lea rdx, [rsp + 0x10d0]
lea rcx, [rsp + 0xc0]
call fcn.140040880
cmp al, dil
jne 0x140049edb
lea rcx, [rsp + 0xc0]
call fcn.140040680
xor edx, edx
lea rcx, [rsp + 0x2120]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, edi
mov r12, rdi
mov rbp, qword [rsp + 0x50]
mov ebx, 0x800
mov r9, rbx
lea r8, [rsp + 0x3120]
mov rdx, qword [rsp + r12 + 0x70]
lea rcx, [rsp + 0x2120]
call fcn.1400611e8
mov r8, rbx
lea rdx, str..lnk
lea rcx, [rsp + 0x3120]
call fcn.1400805dc
mov r8, rbx
mov rdx, qword [rsp + r12 + 0x90]
lea rcx, [rsp + 0x4130]
call fcn.1400617d0
lea rcx, [rsp + 0x4130]
call fcn.14003c3d4
cmp al, dil
je 0x140049fd0
mov rbx, rdi
cmp esi, edi
cmove rbx, rbp
mov ecx, 0x537
call fcn.140076080
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x3120]
lea rdx, [rsp + 0x4130]
mov cl, 1
call fcn.1400a3194
mov ebx, 0x800
inc esi
add r12, 8
cmp esi, r14d
jb 0x140049f31
mov rbp, qword [rsp + 0x60]
mov r12, qword [rsp + 0x50]
jmp 0x140049ff8
lea rcx, [rsp + 0x2120]
call fcn.140049398
lea r8, [rsp + 0x40]
mov edx, 0x17
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, edi
jne 0x14004a268
lea rdx, [rsp + 0x2120]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x40]
call qword [rax + 0x28]
mov ebx, 0x800
mov rdx, rbx
lea rcx, [rsp + 0x2120]
call fcn.14006119c
mov r8, rbx
lea rdx, [0x1400e4698]
lea rcx, [rsp + 0x2120]
call fcn.1400805dc
cmp r13b, dil
je 0x14004a07c
lea rcx, [rsp + 0x2120]
call fcn.14003c3d4
cmp al, dil
je 0x14004a268
cmp byte [r15 + 0x16], dil
je 0x14004a25b
lea rcx, [rsp + 0x2120]
call fcn.14003c3d4
cmp al, dil
je 0x14004a15c
mov r9d, 0x802
lea r8, [rsp + 0x3120]
lea rdx, [0x1400e0250]
lea rcx, [rsp + 0x2120]
call fcn.1400611e8
lea rcx, [rsp + 0xc0]
call fcn.140040668
nop
lea rdx, [rsp + 0x3120]
lea rcx, [rsp + 0xc0]
call fcn.14004069c
lea rcx, [rsp + 0x20e0]
call fcn.140083b0c
lea rcx, [rsp + 0x20e8]
call fcn.140083b0c
lea rcx, [rsp + 0x20f0]
call fcn.140083b0c
xor r8d, r8d
lea rdx, [rsp + 0x10d0]
lea rcx, [rsp + 0xc0]
call fcn.140040880
cmp al, dil
je 0x14004a14f
lea rcx, [rsp + 0x10d0]
call fcn.14003be94
xor r8d, r8d
lea rdx, [rsp + 0x10d0]
lea rcx, [rsp + 0xc0]
call fcn.140040880
cmp al, dil
jne 0x14004a125
lea rcx, [rsp + 0xc0]
call fcn.140040680
xor edx, edx
lea rcx, [rsp + 0x2120]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp rbp, rdi
je 0x14004a1a6
lea rcx, [rsp + 0x2120]
call fcn.14003c3d4
cmp al, dil
je 0x14004a1a6
lea rcx, [rsp + 0x2120]
lea rax, [rsp + 0x2120]
sub rbp, rax
movzx eax, word [rcx]
mov word [rcx + rbp], ax
add rcx, 2
cmp ax, di
jne 0x14004a196
mov esi, edi
mov rbp, rdi
mov r9, rbx
lea r8, [rsp + 0x3120]
mov rdx, qword [rsp + rbp + 0x70]
lea rcx, [rsp + 0x2120]
call fcn.1400611e8
mov r8, rbx
lea rdx, str..lnk
lea rcx, [rsp + 0x3120]
call fcn.1400805dc
mov r8, rbx
mov rdx, qword [rsp + rbp + 0x90]
lea rcx, [rsp + 0x4130]
call fcn.1400617d0
lea rcx, [rsp + 0x4130]
call fcn.14003c3d4
cmp al, dil
je 0x14004a24a
mov rbx, rdi
cmp esi, edi
cmove rbx, r12
mov ecx, 0x537
call fcn.140076080
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x3120]
lea rdx, [rsp + 0x4130]
mov cl, 1
call fcn.1400a3194
mov ebx, 0x800
inc esi
add rbp, 8
cmp esi, r14d
jb 0x14004a1ab
jmp 0x14004a268
lea rcx, [rsp + 0x2120]
call fcn.140049398
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + rdi + 0x90]
call fcn.1400c7040
mov rcx, qword [rsp + rdi + 0x70]
call fcn.1400c7040
add rdi, 8
sub r14, 1
jne 0x14004a273
mov rcx, qword [rsp + 0x5130]
xor rcx, rsp
call fcn.1400c6350
mov rbx, qword [rsp + 0x5180]
add rsp, 0x5140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret