Function at 0x140085334
Capabilities:
Create directory
Get file size
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x658]
sub rsp, 0x730
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x620], rax
mov rdi, rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x43c
mov rcx, qword [rcx + 0xc0]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rdi + 0xc8]
mov edx, 0x3f7
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov r14d, 1
mov edx, r14d
mov rcx, rax
call qword [sym.imp.USER32.dll_EnableWindow]
mov rcx, qword [rdi + 0xc8]
mov edx, r14d
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov edx, r14d
mov rcx, rax
call qword [sym.imp.USER32.dll_EnableWindow]
mov rcx, qword [rdi + 0xc8]
lea edx, [r14 + 1]
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov edx, r14d
mov rcx, rax
call qword [sym.imp.USER32.dll_EnableWindow]
mov rax, qword [rdi + 0xc8]
mov qword [rax + 0xd8], rdi
lea esi, [r14 + 0x5b]
mov edx, esi
lea rcx, [rdi + 0x48]
call fcn.1400ea6c0
lea r12, [rdi + 0x58]
mov edx, esi
mov rcx, r12
call fcn.1400ea6c0
lea rdx, [0x14012da68]
cmp qword [rdi + 0x50], 0
cmovne rdx, qword [rdi + 0x50]
mov r8d, esi
mov byte [rsp + 0x20], r14b
lea rcx, [rbp + 0x30]
call fcn.1400ee030
nop
xor ebx, ebx
movsxd rsi, dword [rdi + 0x78]
test rsi, rsi
jle 0x14008547d
mov rax, qword [rdi + 0x88]
mov rcx, qword [rax + rbx*8]
lea rdx, [0x14012da68]
cmp qword [rcx + 8], 0
cmovne rdx, qword [rcx + 8]
lea rcx, [rbp + 0x30]
call fcn.1400ee560
add rbx, r14
cmp rbx, rsi
jl 0x140085450
lea rdx, [0x14012da68]
cmp qword [r12 + 8], 0
cmovne rdx, qword [r12 + 8]
mov rcx, qword [rdi + 0xc8]
add rcx, 0x48
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, qword [rdi + 0xc8]
add rcx, 0x48
mov rax, qword [rcx]
mov rdx, qword [rbp + 0xc8]
call qword [rax + 0x38]
mov edx, 0x40010
lea rcx, [rbp - 8]
call fcn.140024ca0
nop
and qword [rbp - 0x48], 0
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], r14
xor esi, esi
mov qword [rbp - 0x30], rsi
lea rax, vtable.micro::utils::QBuffer.0
mov qword [rbp - 0x50], rax
cmp dword [rdi + 0x90], 5
jne 0x14008552d
mov ebx, 0x80000
mov qword [rsp + 0x78], rbx
mov ecx, ebx
call qword [sym.imp.msvcrt.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__]
mov rsi, rax
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.msvcrt.dll_memmove]
xor ecx, ecx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], rbx
or r8d, 0xffffffff
lea rdx, str.Encode_error
lea rcx, [rbp - 0x80]
call fcn.1400e6fc8
nop
xor r14d, r14d
movsxd rax, dword [rbp + 0x58]
mov qword [rbp - 0x70], rax
lea r15, vtable.micro::utils::QString.0
test rax, rax
jle 0x14008593e
mov r13, qword [rbp - 0x78]
mov rax, qword [rbp + 0x68]
mov rcx, qword [rax + r14*8]
mov eax, dword [rcx]
shr eax, 4
test al, 1
je 0x1400855b5
mov rax, qword [rbp + 0x90]
mov r8, qword [rax + r14*8]
mov rdx, r12
lea rcx, [rbp - 0x68]
call fcn.140011d2c
lea rcx, [0x14012da68]
mov rax, qword [rbp - 0x60]
test rax, rax
cmovne rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
mov qword [rbp - 0x68], r15
lea rcx, [rbp - 0x68]
call fcn.1400e712c
jmp 0x140085931
lea rcx, [rbp + 0xe0]
call fcn.140046878
nop
mov rax, qword [rdi + 0xb0]
test rax, rax
je 0x1400855d4
mov r9d, dword [rax - 8]
jmp 0x1400855d7
xor r9d, r9d
lea r8, [0x14012da68]
test rax, rax
cmovne r8, rax
add r9d, r9d
mov edx, dword [rdi + 0x90]
lea rcx, [rbp + 0xe0]
call fcn.1400469d8
mov rax, qword [rbp + 0x68]
mov rbx, qword [rax + r14*8]
mov rcx, qword [rdi + 0xc8]
add rcx, 0x48
mov rax, qword [rcx]
lea rdx, [rbx + 0x2c]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov rax, qword [rbp + 0x90]
mov r15, qword [rax + r14*8]
lea rax, vtable.micro::files::QFile.0
mov qword [rsp + 0x38], rax
and qword [rsp + 0x40], 0
xor r8d, r8d
lea rdx, [rbx + 0x2c]
lea rcx, [rsp + 0x38]
call fcn.1400e82c4
cmp qword [rsp + 0x40], 0
jne 0x14008567c
lea rax, vtable.micro::files::QFile.0
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x38]
call fcn.1400e8500
nop
lea rcx, [rbp + 0xe0]
call fcn.140046968
lea r15, vtable.micro::utils::QString.0
jmp 0x140085931
mov r8, r15
mov rdx, r12
lea rcx, [rbp - 0x28]
call fcn.140011d2c
nop
mov r8d, 0x2e
mov rdx, rax
lea rcx, [rbp - 0x18]
call fcn.140031e3c
nop
lea r8, [rdi + 0x98]
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140011d2c
nop
lea r15, vtable.micro::utils::QString.0
mov qword [rbp - 0x18], r15
lea rcx, [rbp - 0x18]
call fcn.1400e712c
nop
mov qword [rbp - 0x28], r15
lea rcx, [rbp - 0x28]
call fcn.1400e712c
lea rdx, [0x14012da68]
mov rax, qword [rsp + 0x58]
test rax, rax
cmovne rdx, rax
mov rcx, qword [rdi + 0xc8]
add rcx, 0x48
mov rax, qword [rcx]
call qword [rax + 0x20]
lea rbx, vtable.micro::files::QFile.0
mov qword [rsp + 0x60], rbx
and qword [rsp + 0x68], 0
lea rdx, [0x14012da68]
mov rax, qword [rsp + 0x58]
test rax, rax
cmovne rdx, rax
mov r8d, 0x1000
lea rcx, [rsp + 0x60]
call fcn.1400e82c4
cmp qword [rsp + 0x68], 0
jne 0x140085778
mov qword [rsp + 0x60], rbx
lea rcx, [rsp + 0x60]
call fcn.1400e8500
nop
mov qword [rsp + 0x50], r15
lea rcx, [rsp + 0x50]
call fcn.1400e712c
nop
mov qword [rsp + 0x38], rbx
lea rcx, [rsp + 0x38]
call fcn.1400e8500
nop
lea rcx, [rbp + 0xe0]
call fcn.140046968
jmp 0x140085931
lea rdx, [rbp - 0x58]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
xor r12d, r12d
mov rbx, qword [rbp - 0x58]
and dword [rsp + 0x30], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, 0x40000
mov rdx, qword [rbp + 0x18]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_ReadFile]
mov r15d, dword [rsp + 0x30]
test r15, r15
je 0x1400858e3
add r12, r15
mov r8d, r15d
mov rdx, qword [rbp + 0x18]
lea rcx, [rbp + 0xe0]
cmp dword [rdi + 0x90], 5
jne 0x140085805
mov rax, qword [rsp + 0x78]
mov dword [rsp + 0x30], eax
cmp r12, rbx
sete al
mov byte [rsp + 0x28], al
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9, rsi
call fcn.140046a40
mov rdx, rsi
jmp 0x140085835
mov dword [rsp + 0x30], 0x40000
cmp r12, rbx
sete al
mov byte [rsp + 0x28], al
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9, rdx
call fcn.140046a40
test al, al
je 0x1400858b9
mov rdx, qword [rbp + 0x18]
and qword [rsp + 0x20], 0
and dword [rsp + 0x34], 0
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x30], eax
jne 0x1400858b9
mov rcx, qword [rdi + 0xc8]
add rcx, 0x48
mov rax, qword [rcx]
mov r8, rbx
mov rdx, r12
call qword [rax + 0x28]
mov rcx, qword [rdi + 0xc8]
add rcx, 0x48
mov rax, qword [rcx]
mov rdx, r15
call qword [rax + 0x40]
mov byte [rdi + 0x41], 1
lea rdx, [rdi + 0x30]
or r9d, 0xffffffff
xor r8d, r8d
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
test eax, eax
je 0x1400858b3
dec eax
jne 0x1400858e3
mov byte [rdi + 0x41], al
jmp 0x14008578e
mov byte [rdi + 0x40], 0
jmp 0x1400858e3
lea rdx, [0x14012da68]
test r13, r13
cmovne rdx, r13
mov rcx, qword [rdi + 0xc8]
xor r9d, r9d
lea r8, str.Message
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
lea rbx, vtable.micro::files::QFile.0
mov qword [rsp + 0x60], rbx
lea rcx, [rsp + 0x60]
call fcn.1400e8500
nop
lea r15, vtable.micro::utils::QString.0
mov qword [rsp + 0x50], r15
lea rcx, [rsp + 0x50]
call fcn.1400e712c
nop
mov qword [rsp + 0x38], rbx
lea rcx, [rsp + 0x38]
call fcn.1400e8500
nop
lea rcx, [rbp + 0xe0]
call fcn.140046968
lea r12, [rdi + 0x58]
inc r14
cmp r14, qword [rbp - 0x70]
jl 0x140085561
xor r9d, r9d
xor r8d, r8d
mov edx, 0x414
mov rcx, qword [rdi + 0xb8]
call qword [sym.imp.USER32.dll_SendMessageW]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x41e
mov rcx, qword [rdi + 0xc0]
call qword [sym.imp.USER32.dll_SendMessageW]
nop
mov qword [rbp - 0x80], r15
lea rcx, [rbp - 0x80]
call fcn.1400e712c
nop
test rsi, rsi
je 0x14008598c
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop
lea rax, vtable.micro::utils::QBaseArray.0
mov qword [rbp - 8], rax
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x1400859a7
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop
lea rcx, [rbp + 0x30]
call fcn.1400ee138
xor eax, eax
mov rcx, qword [rbp + 0x620]
xor rcx, rsp
call fcn.140001010
lea r11, [rsp + 0x730]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret