Function at 0x140004c84
Capabilities:
Copy file
Create process on windows
Read .ini file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r13
push r14
lea rbp, [rax - 0xeb8]
sub rsp, 0xfa0
mov rax, qword [0x14003c008]
xor rax, rsp
mov qword [rbp + 0xe90], rax
mov rbx, qword [0x14003ec88]
lea rcx, [rbp + 0xa70]
mov r12d, 0x20a
xor edx, edx
mov r8d, r12d
call fcn.140010e20
mov r13d, 0x104
lea rdx, [0x14003eea0]
mov r8d, r13d
lea rcx, [rbp + 0xa70]
call fcn.140013fb8
mov r8d, r12d
lea rcx, [rbp + 0x20]
xor edx, edx
call fcn.140010e20
mov r8d, r13d
lea rdx, [0x14003eea0]
lea rcx, [rbp + 0x20]
call fcn.140013fb8
lea rdx, str.updater.ini
lea rcx, [rbp + 0x20]
call fcn.14000ac54
xor r14d, r14d
test eax, eax
jne 0x140004d34
xor al, al
jmp 0x14000505b
lea rax, [rbp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rdi, str.PostUpdateWin
mov rcx, rdi
mov dword [rsp + 0x20], 0x105
lea r9, [rbp + 0x650]
mov sil, 1
lea rdx, str.ExeRelPath
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x140004d2d
lea rax, [rbp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x860]
lea rdx, str.ExeArg
mov dword [rsp + 0x20], 0x105
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x140004d2d
lea rax, [rbp + 0x20]
mov rcx, rdi
mov qword [rsp + 0x28], rax
lea r9, [rbp]
lea r8, str.TRUE
mov dword [rsp + 0x20], 0xa
lea rdx, str.ExeAsync
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x140004d2d
lea rdx, [0x140034eb8]
lea rcx, [rbp + 0x650]
call fcn.1400105f8
test rax, rax
jne 0x140004d2d
mov r8, r12
lea rcx, [rbp + 0x230]
xor edx, edx
call fcn.140010e20
mov r8, r13
lea rdx, [0x14003eea0]
lea rcx, [rbp + 0x230]
call fcn.140013fb8
lea rdx, [rbp + 0x650]
lea rcx, [rbp + 0x230]
call fcn.14000ac54
test eax, eax
je 0x140004d2d
cmp byte [0x14003e19b], r14b
je 0x140004e4b
lea rdx, [rbp + 0x230]
call fcn.14000a150
test eax, eax
je 0x140004d2d
lea r8, str.uninstall.update
lea rdx, [rbp + 0x230]
lea rcx, [rbp + 0xc80]
call fcn.14000a804
test eax, eax
je 0x140004d2d
mov r8, r12
lea rcx, [rbp + 0x440]
xor edx, edx
call fcn.140010e20
mov r8, r13
lea rcx, [rbp + 0x440]
mov rdx, rbx
call fcn.140013fb8
lea rdx, str.update.log
lea rcx, [rbp + 0x440]
call fcn.14000ac54
test eax, eax
je 0x140004d2d
xor eax, eax
mov word [rbp - 0x20], r14w
lea rdx, str.argv0ignored
mov qword [rbp - 0x1e], rax
lea rcx, [rbp - 0x20]
mov qword [rbp - 0x16], rax
mov qword [rbp - 0xe], rax
lea r8d, [rax + 0xd]
mov word [rbp - 6], ax
call fcn.140013fb8
or rax, 0xffffffffffffffff
lea rcx, [rbp - 0x20]
mov rbx, rax
inc rbx
cmp word [rcx + rbx*2], r14w
jne 0x140004ee1
lea rcx, [rbp + 0x860]
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140004ef2
add rbx, rax
lea rcx, [rbx*2 + 2]
call fcn.140013358
mov rdi, rax
test rax, rax
je 0x140004d2d
mov r8, rbx
lea rdx, [rbp - 0x20]
mov rcx, rax
call fcn.140013fb8
lea rcx, [rdi - 2]
lea rcx, [rcx + 2]
cmp word [rcx], r14w
jne 0x140004f2b
lea r8, [rbp + 0x860]
xor edx, edx
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
inc rdx
test ax, ax
jne 0x140004f3e
cmp byte [0x14003e19b], r14b
jne 0x140004f8c
mov r8d, 6
lea rdx, str.false
lea rcx, [rbp]
call fcn.140018f14
test eax, eax
je 0x140004f8c
mov r8d, 2
lea rdx, [0x140035a6c]
lea rcx, [rbp]
call fcn.140018f14
test eax, eax
jne 0x140004f8f
mov sil, r14b
xor r8d, r8d
lea rdx, [rbp + 0xc80]
lea rcx, [rbp + 0x440]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
xor edx, edx
mov dword [rsp + 0x70], 0x68
lea rcx, [rsp + 0x78]
lea r8d, [rdx + 0x60]
call fcn.140010e20
lea rax, [0x140033a48]
mov qword [rsp + 0x50], r14
mov qword [rbp - 0x80], rax
lea rcx, [rbp + 0x230]
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x58], rax
xor r8d, r8d
mov qword [rsp + 0x60], rax
mov rdx, rdi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0xa70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
mov rcx, rdi
setne bl
call fcn.140013324
test bl, bl
je 0x140005059
test sil, sil
jne 0x140005043
mov rcx, qword [rsp + 0x50]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov rcx, qword [rbp + 0xe90]
xor rcx, rsp
call fcn.14000f700
lea r11, [rsp + 0xfa0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop rbp
ret