Function at 0x140005144
Capabilities:
Check if file exists
Create process on windows
Create thread
Delete directory
Delete file
Get file attributes
Read file on windows
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x770]
sub rsp, 0x870
or dword [rbp + 0x7c0], 0xffffffff
lea rdx, [rbp + 0x160]
xor ebx, ebx
mov r12, rcx
mov rcx, qword [0x140045cc0]
mov r8d, 0x104
mov r13d, ebx
mov dword [rbp + 0x7b8], ebx
lea r14d, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea r8, [0x140031d50]
lea rdx, [rbp + 0x160]
lea rcx, [0x1400478b8]
call fcn.14001ad8c
test eax, eax
jne 0x140005a55
mov rcx, qword [0x1400478b8]
call fcn.1400027b8
mov rcx, qword [0x1400478b8]
lea r8d, [rbx + 2]
xor edx, edx
mov edi, eax
call fcn.14001a670
mov rcx, qword [0x1400478b8]
call fcn.14001b5e4
mov r15, rax
cmp word [r12], bx
jne 0x140005206
cmp rax, rdi
jne 0x140005206
mov rcx, qword [0x1400478b8]
call fcn.14001af04
xor eax, eax
jmp 0x140005a58
mov rcx, qword [0x1400478b8]
call fcn.14001af04
mov qword [0x1400478b8], rbx
cmp word [r12], bx
jne 0x14000544b
lea r8, [0x140031d50]
lea rdx, [rbp + 0x160]
lea rcx, [0x1400478b8]
lea r12, [rbp + 0x160]
call fcn.14001ad8c
test eax, eax
jne 0x14000543f
test edi, edi
je 0x1400051f3
mov ecx, 0x3e4
call fcn.1400196ac
mov rcx, qword [0x1400478b8]
xor r8d, r8d
mov rdx, rdi
mov rbx, rax
call fcn.14001a670
mov r9, qword [0x1400478b8]
mov esi, 0x3e4
mov r8d, esi
mov rdx, r14
mov rcx, rbx
call fcn.14001a2f0
cmp rax, rsi
jne 0x140005413
cmp byte [rbx], 0x44
jne 0x1400053f0
cmp byte [rbx + 1], 0x45
jne 0x1400053f0
cmp byte [rbx + 2], 0x43
jne 0x1400053f0
cmp byte [rbx + 3], 0x5a
jne 0x1400053f0
cmp byte [rbx + 4], 0x49
jne 0x1400053f0
cmp byte [rbx + 5], 0x50
jne 0x1400053f0
cmp byte [rbx + 7], 0x55
jne 0x1400053f0
lea rsi, [rbx + 0x210]
xor r15d, r15d
cmp word [rsi], r15w
jne 0x1400052f5
mov dword [rbx + 0x318], r15d
mov byte [rbx + 6], 0x33
jmp 0x14000535d
cmp byte [rbx + 6], 0x36
jne 0x14000535d
or ecx, 0xffffffff
call fcn.140006890
test eax, eax
jne 0x140005356
mov rcx, rbx
call fcn.140019698
mov rcx, qword [0x1400478b8]
call fcn.14001af04
mov rcx, qword [0x140045cc0]
lea r8, [rsp + 0x60]
mov r9d, 0x80
lea edx, [r9 - 0x6a]
call qword [sym.imp.USER32.dll_LoadStringW]
mov r9d, InitCommonControls
lea r8, str.ZIP_SFX
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x1400051ff
mov byte [0x140045cd6], 0x36
lea r8, [rbp + 0x160]
mov rdx, rbx
lea rcx, [0x140045cd8]
call fcn.1400033fc
mov rdx, rsi
mov dword [rbp + 0x7b8], eax
lea rcx, [0x140045ee0]
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [rbx + 0x310]
lea rdx, [rbx + 0x324]
mov dword [0x140045fe0], eax
lea rcx, [0x140045ff4]
mov eax, dword [rbx + 0x314]
mov dword [0x140045fe4], eax
mov eax, dword [rbx + 0x318]
mov dword [0x140045fe8], eax
mov eax, dword [rbx + 0x31c]
mov dword [0x140045fec], eax
mov eax, dword [rbx + 0x320]
mov dword [0x140045ff0], eax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rbx + 0x364]
lea rcx, [0x140046034]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, qword [0x1400478b8]
xor edx, edx
lea r8d, [rdx + 2]
call fcn.14001a670
mov rcx, qword [0x1400478b8]
call fcn.14001b5e4
mov r15, rax
jmp 0x140005419
add edi, 0xfffffc1c
mov rcx, rbx
call fcn.140019698
mov rcx, qword [0x1400478b8]
xor r8d, r8d
xor edx, edx
call fcn.14001a670
xor esi, esi
cmp qword [0x1400478b8], rsi
jne 0x1400054b5
jmp 0x14000544d
mov qword [0x1400478b8], rbx
jmp 0x1400051ff
xor esi, esi
lea r8, [0x140031d50]
mov rdx, r12
lea rcx, [0x1400478b8]
call fcn.14001ad8c
test eax, eax
jne 0x1400054a2
mov rcx, qword [0x1400478b8]
lea r8d, [rax + 2]
xor edx, edx
call fcn.14001a670
mov rcx, qword [0x1400478b8]
call fcn.14001b5e4
mov rcx, qword [0x1400478b8]
xor r8d, r8d
xor edx, edx
mov r15, rax
call fcn.14001a670
mov rax, qword [0x1400478b8]
jmp 0x1400054ac
mov rax, rsi
mov qword [0x1400478b8], rax
test rax, rax
je 0x1400051ff
mov rcx, r15
call fcn.140005d54
test rax, rax
jne 0x1400054fc
mov rcx, qword [0x140045cc0]
lea r8, [rsp + 0x60]
mov r9d, 0x80
lea edx, [rax + 0xd]
call qword [sym.imp.USER32.dll_LoadStringW]
mov r9d, InitCommonControls
lea r8, str.ZIP_SFX
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x1400051f3
cmp word [0x140046034], si
je 0x14000552a
mov r9d, 0x24
lea r8, [0x140045ff4]
lea rdx, [0x140046034]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x1400051f3
mov r8d, dword [0x140045ff0]
add edi, 0x3e4
test r8d, r8d
je 0x14000557d
mov rdx, qword [0x140045cc0]
mov r9, r15
mov rcx, qword [0x1400478b8]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], edi
call fcn.140002c6c
test eax, eax
jne 0x14000556c
cmp word [0x140045ee0], si
jne 0x1400051f3
mov rcx, qword [0x1400478b8]
xor r8d, r8d
mov edx, edi
call fcn.14001a670
lea r8, [rbp + 0x370]
mov rcx, r12
lea rdx, [rsp + 0x60]
call fcn.1400026c0
cmp word [0x140045cd8], si
lea rdi, [0x140045cd8]
jne 0x1400055af
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, 0x2e
lea rcx, [rbp + 0x370]
call fcn.140015e24
test rax, rax
je 0x1400055c8
mov word [rax], si
lea rcx, [rbp + 0x370]
call fcn.140002664
mov ebx, 0x5c
cmp dword [0x140045fec], esi
jne 0x1400055f6
lea rcx, [rbp + 0x370]
call fcn.140001eec
cmp eax, r14d
jne 0x1400051f3
mov rcx, rdi
call fcn.14000269c
mov rcx, rdi
call fcn.140002634
cmp word [0x140045cd8], si
mov rcx, rdi
jne 0x140005622
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x140005774
mov edx, ebx
call fcn.140015e24
test rax, rax
jne 0x14000565b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
lea rax, [0x140045cd6]
cmp word [rax + rcx*2], 0x3a
je 0x14000565b
mov rdx, rdi
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rcx, rdi
jmp 0x140005612
movzx eax, word [0x140045cd8]
cmp ax, bx
jne 0x140005679
cmp word [0x140045cda], bx
je 0x140005695
lea rdx, [0x140045cda]
jmp 0x14000564b
mov ecx, 0x2e
cmp ax, cx
jne 0x140005695
cmp word [0x140045cda], bx
jne 0x140005695
lea rdx, [0x140045cdc]
jmp 0x14000564b
lea rdx, [0x140031d58]
mov rcx, rdi
call fcn.140015c0c
cmp rax, rdi
jne 0x140005774
lea rdx, [0x140031d58]
mov edi, esi
lea rcx, [0x140045cd8]
call fcn.140015c0c
mov rbx, rax
test rax, rax
je 0x140005700
lea r13, [0x140045cd8]
lea rdx, [rbx + 4]
mov rcx, r13
add edi, r14d
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x140031d58]
lea rcx, [rbx + 4]
call fcn.140015c0c
mov rbx, rax
test rax, rax
jne 0x1400056d1
mov r13d, dword [rbp + 0x7b8]
lea rcx, [rsp + 0x60]
call fcn.140002634
lea rcx, [rsp + 0x60]
call fcn.140019100
mov rbx, rax
test edi, edi
jle 0x140005739
mov edx, 0x5c
mov rcx, rbx
call fcn.140015e24
xor ecx, ecx
test rax, rax
je 0x1400057a6
add esi, r14d
mov word [rax], cx
cmp esi, edi
jl 0x14000571b
mov rdx, rbx
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdi, [0x140045cd8]
mov rdx, rdi
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rbx
call fcn.140019698
xor esi, esi
lea rdx, [0x140031d60]
mov rcx, rdi
call fcn.14001aa68
mov rcx, rdi
mov rbx, rax
call fcn.1400192d4
mov rcx, rdi
cmp rbx, rax
je 0x1400057ca
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x1400055d4
lea rdi, [0x140045cd8]
mov rcx, rdi
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rbx
call fcn.140019698
xor esi, esi
jmp 0x1400055d4
call fcn.140002664
mov rcx, rdi
call fcn.1400025f4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000589d
cmp dword [0x140045fe0], esi
jne 0x140005847
mov rcx, qword [0x140045cc0]
lea r8, [rsp + 0x60]
mov r9d, 0x80
lea edx, [r9 - 0x72]
call qword [sym.imp.USER32.dll_LoadStringW]
mov r8, rdi
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x370]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r9d, 0x21
lea r8, str.ZIP_SFX
lea rdx, [rbp + 0x370]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, r14d
jne 0x140005a36
mov rcx, rdi
call fcn.1400023cc
test eax, eax
jne 0x14000589d
mov rcx, qword [0x140045cc0]
lea r8, [rbp + 0x370]
mov r9d, 0x80
lea edx, [rax + 0x11]
call qword [sym.imp.USER32.dll_LoadStringW]
mov r9d, InitCommonControls
lea r8, str.ZIP_SFX
lea rdx, [rbp + 0x370]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [0x1400478b8]
call fcn.14001af04
jmp 0x140005a36
mov rcx, r15
call fcn.140001f50
mov rcx, qword [0x1400460b8]
mov edx, 0x3ec
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov qword [0x140047d10], rax
movabs rax, 0x6666666666666667
xor r8d, r8d
imul r15
sar rdx, 0xc
mov r9, rdx
shr r9, 0x3f
add r9, rdx
mov edx, 0x406
call qword [sym.imp.USER32.dll_SendMessageW]
lea rax, [rbp + 0x7c8]
mov r9, r12
mov qword [rsp + 0x28], rax
lea r8, [0x14000496c]
xor edx, edx
mov dword [rsp + 0x20], esi
xor ecx, ecx
call fcn.14001abe0
mov rbx, rax
jmp 0x14000593e
mov rcx, qword [0x1400460b8]
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x14000593e
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x140005912
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rbp + 0x7c0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x140045ccc], esi
je 0x14000598a
mov r14d, esi
jmp 0x140005a36
cmp word [0x140045ee0], si
je 0x1400059f9
mov r8d, dword [0x140045fe8]
lea rcx, [0x140045ee0]
mov rdx, rdi
call fcn.1400064e4
cmp qword [0x1400460f8], rsi
je 0x140005a36
call fcn.140003264
jmp 0x1400059d9
mov edx, 0x80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.140003284
mov rbx, rax
test rax, rax
jne 0x1400059bd
test r13d, r13d
je 0x140005a36
mov rcx, rdi
call fcn.140004884
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140005a36
cmp dword [0x140045fe4], esi
je 0x140005a36
cmp dword [rbp + 0x7c0], esi
jne 0x140005a36
mov ecx, 0x40
call qword [sym.imp.USER32.dll_MessageBeep]
xor r9d, r9d
mov dword [rsp + 0x28], 0xa
mov r8, rdi
mov qword [rsp + 0x20], rsi
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rcx, qword [0x1400478b8]
call fcn.14001af04
cmp qword [0x1400460f8], rsi
je 0x140005a50
call fcn.14000318c
mov eax, r14d
jmp 0x140005a58
or eax, 0xffffffff
mov rbx, qword [rsp + 0x8b0]
add rsp, 0x870
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret