Function at 0x140103558
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xff0]
mov eax, 0x10f0
call fcn.140139ab0
sub rsp, rax
mov rax, qword [0x1401e7e78]
xor rax, rsp
mov qword [rbp + 0xfe0], rax
mov qword [rsp + 0x68], r8
mov rsi, rdx
mov qword [rsp + 0x70], rdx
mov rdi, rcx
mov qword [rsp + 0x78], rdx
xor r12d, r12d
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x44], r12d
mov rcx, rdx
call fcn.1400ffad8
mov dword [rsp + 0x48], 1
lea rcx, [rsp + 0x50]
call fcn.140120d54
nop
mov r13d, r12d
lea rcx, [rbp - 0x80]
call fcn.140050528
nop
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
lea rdx, [0x140167f50]
lea rcx, [rbp - 0x48]
call fcn.14000cfdc
lea rdx, [0x14019b0f8]
lea rcx, [rbp - 0x50]
call fcn.140070aa0
cmp qword [0x14021c5d8], r12
jne 0x140103619
xor r8d, r8d
lea rdx, str.CreateBatchFile_failed__gpConEmunullptr
jmp 0x14010452a
mov rdx, qword [rdi + 0x40]
lea r9, [rbp - 0x80]
lea r8, str.ConEmuUpdate.cmd
mov rdx, qword [rdx + 0x60]
mov rcx, rsi
call fcn.1400ffb80
test al, al
je 0x140104532
lea rcx, str._echo_off_r_n
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rcx, rsi
call fcn.1401000c8
mov rcx, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, ebx
lea rdx, str._echo_off_r_n
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14010451a
cmp ebx, dword [rsp + 0x40]
jne 0x14010451a
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x1000
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
or r9d, 0xffffffff
lea r8, str._r_nset_ConEmuInUpdateYES_r_n
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1401036d0
lea rcx, str._r_nset_ConEmuInUpdateYES_r_n
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdx, str.WideCharToMultiByte_failed__len_i
jmp 0x140104527
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rcx, rsi
call fcn.1401000c8
mov rcx, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, ebx
lea rdx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14010451a
cmp ebx, dword [rsp + 0x40]
jne 0x14010451a
lea rcx, str.cd__d__
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rcx, rsi
call fcn.1401000c8
mov rcx, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, ebx
lea rdx, str.cd__d__
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14010451a
cmp ebx, dword [rsp + 0x40]
jne 0x14010451a
mov r8, qword [0x14021c5d8]
add r8, 0xcfa
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x1000
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
or r9d, 0xffffffff
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1401037a5
mov rcx, qword [0x14021c5d8]
add rcx, 0xcfa
jmp 0x1401036be
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rcx, rsi
call fcn.1401000c8
mov rcx, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, ebx
lea rdx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14010451a
cmp ebx, dword [rsp + 0x40]
jne 0x14010451a
lea rcx, str.__r_necho_Current_folder_r_ncd_r_necho_._r_n_r_necho_Starting_update..._r_n
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rcx, rsi
call fcn.1401000c8
mov rcx, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, ebx
lea rdx, str.__r_necho_Current_folder_r_ncd_r_necho_._r_n_r_necho_Starting_update..._r_n
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14010451a
cmp ebx, dword [rsp + 0x40]
jne 0x14010451a
mov rcx, qword [rdi + 0x40]
call fcn.140108834
mov rcx, qword [rdi + 0x40]
cmp al, 1
jne 0x140103847
lea rdx, [rbp - 0x50]
call fcn.140108a08
jmp 0x14010384c
call fcn.140108810
mov r15, rax
mov qword [rsp + 0x60], rax
mov r14d, r12d
test r14d, r14d
je 0x14010387c
test r13, r13
je 0x140103a3d
lea rdx, [r13 + 1]
lea rcx, [rsp + 0x50]
call fcn.140121228
test rax, rax
je 0x140103a23
lea rcx, [rsp + 0x50]
call fcn.140058574
mov rbx, rax
mov r12, r15
movzx eax, word [r15]
xor r9d, r9d
test ax, ax
je 0x140103971
mov rsi, qword [rsp + 0x68]
lea r8d, [r9 + 0x25]
mov rdx, r12
cmp ax, r8w
je 0x1401038c7
test r14d, r14d
je 0x1401038bf
mov word [rbx], ax
add rbx, 2
jmp 0x140103955
inc r13
jmp 0x140103955
add r12, 2
movzx ecx, word [r12]
sub ecx, r8d
je 0x14010391d
sub ecx, 0xc
je 0x140103913
sub ecx, 1
je 0x140103903
sub ecx, 1
je 0x1401038fd
cmp ecx, 1
je 0x1401038f7
mov r12, rdx
test r14d, r14d
je 0x1401038bf
mov word [rbx], r8w
jmp 0x1401038b6
lea r8, [rbp - 0x48]
jmp 0x140103924
lea r8, [rbp - 0x50]
jmp 0x140103924
mov r8, qword [0x14021c5d8]
add r8, 0xcfa
jmp 0x140103916
mov r8, rsi
test r8, r8
je 0x14010394f
jmp 0x140103924
lea r8, [0x14019a954]
or r15, 0xffffffffffffffff
inc r15
cmp word [r8 + r15*2], r9w
jne 0x140103928
test r14d, r14d
je 0x14010394c
lea rdx, [r15 + 1]
mov rcx, rbx
call fcn.14000ab94
lea rbx, [rbx + r15*2]
xor r9d, r9d
jmp 0x14010394f
add r13, r15
mov r8d, 0x25
add r12, 2
movzx eax, word [r12]
test ax, ax
jne 0x1401038a5
mov rsi, qword [rsp + 0x70]
mov r15, qword [rsp + 0x60]
xor r12d, r12d
test r14d, r14d
je 0x14010397d
mov word [rbx], r12w
inc r14d
cmp r14d, 2
jl 0x140103857
lea rcx, [0x1401b136c]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rcx, rsi
call fcn.1401000c8
mov rcx, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, ebx
lea rdx, [0x1401b136c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14010451a
cmp ebx, dword [rsp + 0x40]
jne 0x14010451a
lea rcx, [rsp + 0x50]
call fcn.140058574
mov r8, rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov r15d, 0x1000
mov dword [rsp + 0x28], r15d
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
or r13, 0xffffffffffffffff
mov r9d, r13d
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x140103a76
lea rcx, [rsp + 0x50]
call fcn.140058574
mov rcx, rax
jmp 0x1401036be
lea ebx, [r13 + 1]
mov rcx, qword [rdi + 0x40]
call fcn.140108834
mov dword [rsp + 0x20], ebx
lea rdx, str.Invalid__s_update_command___s___allocation_of__i_bytes_failed
jmp 0x140103a52
mov rcx, qword [rdi + 0x40]
call fcn.140108834
mov dword [rsp + 0x20], r12d
lea rdx, str.Invalid__s_update_command___s_
lea r8, [0x1401b12a8]
cmp al, 1
lea rcx, [0x1401a5bf0]
mov r9, r15
cmove r8, rcx
mov rcx, rdi
call fcn.140106bfc
jmp 0x140104532
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rcx, rsi
call fcn.1401000c8
mov rcx, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, ebx
lea rdx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14010451a
cmp ebx, dword [rsp + 0x40]
jne 0x14010451a
lea rcx, str._r_ncall
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rcx, rsi
call fcn.1401000c8
mov rcx, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, ebx
lea rdx, str._r_ncall
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14010451a
cmp ebx, dword [rsp + 0x40]
jne 0x14010451a
lea rcx, [rsp + 0x50]
call fcn.140058574
mov r8, rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r15d
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9d, r13d
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x140103a11
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rcx, rsi
call fcn.1401000c8
mov rcx, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, ebx
lea rdx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14010451a
cmp ebx, dword [rsp + 0x40]
jne 0x14010451a
lea rcx, str._r_nif_errorlevel_1_goto_err_r_n
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rcx, rsi
call fcn.1401000c8
mov rcx, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, ebx
lea rdx, str._r_nif_errorlevel_1_goto_err_r_n
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14010451a
cmp ebx, dword [rsp + 0x40]
jne 0x14010451a
mov rax, qword [rdi + 0x40]
mov rcx, qword [rax + 0x58]
test rcx, rcx
je 0x140103cda
cmp word [rcx], r12w
je 0x140103cda
lea r14, [0x1401a2030]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rcx, rsi
call fcn.1401000c8
mov rcx, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, ebx
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14010451a
cmp ebx, dword [rsp + 0x40]
jne 0x14010451a
mov r8, qword [rdi + 0x40]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r15d
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9d, r13d
mov r8, qword [r8 + 0x58]
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x140103c5c
mov rcx, qword [rdi + 0x40]
mov rcx, qword [rcx + 0x58]
jmp 0x1401036be
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rcx, rsi
call fcn.1401000c8
mov rcx, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, ebx
lea rdx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14010451a
cmp ebx, dword [rsp + 0x40]
jne 0x14010451a
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rcx, rsi
call fcn.1401000c8
mov rcx, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, ebx
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14010451a
cmp ebx, dword [rsp + 0x40]
jne 0x14010451a
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r15d
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9d, r13d
lea r8, str._r_nset_ConEmuInUpdate_r_n
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x140103d17
lea rcx, str._r_nset_ConEmuInUpdate_r_n
jmp 0x1401036be
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rcx, rsi
call fcn.1401000c8
mov rcx, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, ebx
lea rdx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14010451a
cmp ebx, dword [rsp + 0x40]
jne 0x14010451a
lea rcx, str._r_necho_Starting_ConEmu..._r_n
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rcx, rsi
call fcn.1401000c8
mov rcx, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, ebx
lea rdx, str._r_necho_Starting_ConEmu..._r_n
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14010451a
cmp ebx, dword [rsp + 0x40]
jne 0x14010451a
xor edx, edx
mov rcx, qword [0x14021c5d8]
call fcn.140026dbc
mov rbx, rax
test rax, rax
je 0x140103ec4
cmp word [rax], r12w
je 0x140103ec4
lea rcx, str.cd__d__
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov r14d, eax
mov rcx, rsi
call fcn.1401000c8
mov rcx, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, r14d
lea rdx, str.cd__d__
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14010451a
cmp r14d, dword [rsp + 0x40]
jne 0x14010451a
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r15d
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9d, r13d
mov r8, rbx
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x140103e3e
mov rcx, rbx
jmp 0x1401036be
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rcx, rsi
call fcn.1401000c8
mov rcx, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, ebx
lea rdx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14010451a
cmp ebx, dword [rsp + 0x40]
jne 0x14010451a
lea rcx, str.__r_n
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rcx, rsi
call fcn.1401000c8
mov rcx, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, ebx
lea rdx, str.__r_n
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14010451a
cmp ebx, dword [rsp + 0x40]
jne 0x14010451a
lea rcx, str.start__ConEmu___
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rcx, rsi
call fcn.1401000c8
mov rcx, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, ebx
lea rdx, str.start__ConEmu___
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14010451a
cmp ebx, dword [rsp + 0x40]
jne 0x14010451a
mov r8, qword [0x14021c5d8]
add r8, 0xaf0
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r15d
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9d, r13d
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x140103f55
mov rcx, qword [0x14021c5d8]
add rcx, 0xaf0
jmp 0x1401036be
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rcx, rsi
call fcn.1401000c8
mov rcx, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, ebx
lea rdx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14010451a
cmp ebx, dword [rsp + 0x40]
jne 0x14010451a
lea r14, [0x1401b140c]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rcx, rsi
call fcn.1401000c8
mov rcx, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, ebx
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14010451a
cmp ebx, dword [rsp + 0x40]
jne 0x14010451a
cmp byte [rdi + 0x280], r12b
je 0x1401040e7
lea rcx, str._demote__run__
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rcx, rsi
call fcn.1401000c8
mov rcx, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, ebx
lea rdx, str._demote__run__
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14010451a
cmp ebx, dword [rsp + 0x40]
jne 0x14010451a
mov r8, qword [0x14021c5d8]
add r8, 0xaf0
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r15d
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9d, r13d
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x140103f42
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rcx, rsi
call fcn.1401000c8
mov rcx, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, ebx
lea rdx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14010451a
cmp ebx, dword [rsp + 0x40]
jne 0x14010451a
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rcx, rsi
call fcn.1401000c8
mov rcx, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, ebx
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14010451a
cmp ebx, dword [rsp + 0x40]
jne 0x14010451a
mov rcx, qword [0x14021c5d8]
add rcx, 0x7f0
call fcn.14012148c
test al, al
jne 0x1401041db
mov rcx, qword [0x14021c5d8]
add rcx, 0x7f0
call fcn.140058574
mov r8, rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r15d
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9d, r13d
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x140104155
mov rcx, qword [0x14021c5d8]
add rcx, 0x7f0
jmp 0x140103a16
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rcx, rsi
call fcn.1401000c8
mov rcx, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, ebx
lea rdx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14010451a
cmp ebx, dword [rsp + 0x40]
jne 0x14010451a
lea rcx, [0x1401aa12c]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rcx, rsi
call fcn.1401000c8
mov rcx, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, ebx
lea rdx, [0x1401aa12c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14010451a
cmp ebx, dword [rsp + 0x40]
jne 0x14010451a
mov rcx, qword [0x14021c5d8]
add rcx, 0x800
call fcn.14012148c
test al, al
jne 0x140104289
mov rcx, qword [0x14021c5d8]
add rcx, 0x800
call fcn.140058574
mov r8, rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r15d
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9d, r13d
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x140104249
mov rcx, qword [0x14021c5d8]
add rcx, 0x800
jmp 0x140103a16
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rcx, rsi
call fcn.1401000c8
mov rcx, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, ebx
lea rdx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14010451a
cmp ebx, dword [rsp + 0x40]
jne 0x14010451a
lea rcx, str._r_ngoto_fin_r_n
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rcx, rsi
call fcn.1401000c8
mov rcx, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, ebx
lea rdx, str._r_ngoto_fin_r_n
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14010451a
cmp ebx, dword [rsp + 0x40]
jne 0x14010451a
lea rcx, str._r_n:err_r_n
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rcx, rsi
call fcn.1401000c8
mov rcx, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, ebx
lea rdx, str._r_n:err_r_n
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14010451a
cmp ebx, dword [rsp + 0x40]
jne 0x14010451a
mov rcx, qword [rdi + 0x40]
call fcn.140108834
lea r15, str.echo__aInstallation_failed_a
lea rbx, str.echo__aExtraction_failed_a_r_n
mov rcx, rbx
cmp al, 1
cmove rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov r14d, eax
mov rcx, qword [rdi + 0x40]
call fcn.140108834
cmp al, 1
cmove rbx, r15
mov rcx, rsi
call fcn.1401000c8
mov rcx, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, r14d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14010451a
cmp r14d, dword [rsp + 0x40]
jne 0x14010451a
lea rcx, str._r_npause_r_n:fin_r_n
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rcx, rsi
call fcn.1401000c8
mov rcx, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, ebx
lea rdx, str._r_npause_r_n:fin_r_n
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14010451a
cmp ebx, dword [rsp + 0x40]
jne 0x14010451a
mov rax, qword [rdi + 0x40]
cmp byte [rax + 0x68], r12b
jne 0x1401044d2
lea rcx, str.del__
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rcx, rsi
call fcn.1401000c8
mov rcx, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, ebx
lea rdx, str.del__
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14010451a
cmp ebx, dword [rsp + 0x40]
jne 0x14010451a
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x1000
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9d, r13d
mov rbx, qword [rsp + 0x68]
mov r8, rbx
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x140103e36
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rcx, rsi
call fcn.1401000c8
mov rcx, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, ebx
lea rdx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14010451a
cmp ebx, dword [rsp + 0x40]
jne 0x14010451a
lea rcx, [0x1401b1498]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rcx, rsi
call fcn.1401000c8
mov rcx, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, ebx
lea rdx, [0x1401b1498]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14010451a
cmp ebx, dword [rsp + 0x40]
jne 0x14010451a
lea rcx, str.del___0___exit_r_n
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rcx, rsi
call fcn.1401000c8
mov rcx, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, ebx
lea rdx, str.del___0___exit_r_n
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14010451a
cmp ebx, dword [rsp + 0x40]
jne 0x14010451a
mov dword [rsp + 0x44], 1
jmp 0x140104532
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.WriteBatch_failed__code_u
mov r8d, eax
mov rcx, rdi
call fcn.140106ca4
mov rcx, rsi
call fcn.1400ffb4c
cmp dword [rsp + 0x44], r12d
jne 0x14010454c
mov dl, 1
mov rcx, rsi
call fcn.1401000e4
nop
lea rcx, [rbp - 0x80]
call fcn.140050560
nop
lea rcx, [rsp + 0x50]
call fcn.140120ddc
mov rax, rsi
mov rcx, qword [rbp + 0xfe0]
xor rcx, rsp
call fcn.140139b10
mov rbx, qword [rsp + 0x1148]
add rsp, 0x10f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret