Function at 0x1401937d0
Capabilities:
Delete file
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x448]
sub rsp, 0x520
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r14d, r9d
mov r15d, r8d
mov r12, rdx
mov r13, rcx
xor ebx, ebx
mov esi, ebx
test rdx, rdx
je 0x140193afa
test r8d, r8d
je 0x140193afa
lea rax, vtable.CSABArchiveFile.0
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x78], rbx
mov qword [rbp - 0x80], rbx
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.14000b0b0
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x70], rbx
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x78]
call fcn.14000b0b0
mov qword [rbp - 0x78], rax
mov dword [rsp + 0x70], ebx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x58], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
mov r8d, r15d
mov rdx, r12
lea rcx, [rsp + 0x50]
call fcn.1401916e0
mov dword [rsp + 0x58], 3
mov r8, qword [rsp + 0x68]
test r8, r8
je 0x14019399c
mov ecx, ebx
mov rdx, qword [rbp - 0x78]
mov rax, qword [rdx]
cmp rax, rdx
je 0x14019399c
test ecx, ecx
je 0x1401938c7
inc ecx
mov rax, qword [rax]
cmp rax, rdx
jne 0x1401938b4
jmp 0x14019399c
mov rcx, qword [rax + 0x10]
mov eax, dword [rcx + 8]
cmp eax, 0xffffffff
je 0x14019399c
cmp eax, dword [rsp + 0x70]
jae 0x14019399c
add rax, r8
mov r8d, dword [rax]
add r8, rax
add rax, 4
mov qword [rsp + 0x48], rbx
mov rdx, rbx
mov qword [rsp + 0x40], rbx
cmp rax, r8
jae 0x14019399c
movzx ecx, byte [rax]
inc rax
cmp cl, 2
je 0x140193932
cmp cl, 0xff
jne 0x140193936
mov ecx, dword [rax]
mov dword [rsp + 0x48], ecx
mov ecx, dword [rax + 4]
mov dword [rsp + 0x40], ecx
add rax, 8
mov rbx, rax
mov rdx, qword [rsp + 0x40]
add rax, rdx
jmp 0x140193936
add rax, 8
cmp rax, r8
jb 0x140193904
test rbx, rbx
je 0x14019399c
test rdx, rdx
je 0x14019399c
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14019399c
call fcn.140247068
mov rdi, rax
sub qword [rsp + 0x40], 5
lea r8, [rbx + 5]
mov qword [rsp + 0x28], 5
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.140001020
test eax, eax
jne 0x14019398f
mov ebx, dword [rsp + 0x48]
mov dword [rsp + 0x58], eax
jmp 0x1401939a9
mov edx, 1
mov rcx, rdi
call fcn.140247060
mov ebx, dword [rbp + 0x458]
mov rdi, qword [rbp + 0x458]
test rdi, rdi
je 0x140193af0
test ebx, ebx
je 0x140193af0
mov esi, 1
test r14d, r14d
je 0x140193a57
mov r8, qword [r13 + 0x28]
mov edx, 0x410
lea rcx, [rbp + 0x10]
call fcn.140253604
lea rdx, str.update.dat
lea rcx, [rbp + 0x10]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140193a57
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x458]
mov r8d, r15d
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rbp + 0x458], r15d
je 0x140193a57
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rax, vtable.CSABMD5.0
mov qword [rbp - 0x30], rax
mov r8d, ebx
mov rdx, rdi
lea rcx, [rbp - 0x30]
call fcn.140190660
nop
mov r8, 0xffffffffffffffff
lea rdx, [rbp - 0x18]
mov rcx, r13
call fcn.14000af20
lea rax, vtable.CSABByteString.0
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x48], 0
mov ecx, 1
call fcn.140247068
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], 1
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.14000af20
nop
mov r8d, ebx
mov rdx, rdi
lea rcx, [rbp - 0x60]
call fcn.14000af20
mov rdx, qword [rbp - 0x58]
mov rcx, r13
call fcn.140194ed0
mov rcx, rdi
call fcn.140247060
nop
mov edx, 1
mov rcx, qword [rbp - 0x58]
call fcn.140247060
nop
lea rcx, [rsp + 0x50]
call fcn.14018e8d0
mov eax, esi
lea r11, [rsp + 0x520]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret