Function at 0x14001832d
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x148
mov rax, qword [0x1400b67d0]
mov r15, rcx
xor ecx, ecx
cmp byte [rax + 0x556], 0
mov qword [rsp + 0x68], rcx
jne 0x140018367
cmp dword [0x1400fff40], 0
je 0x1400188f2
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x80]
lea r9, [0x14008ee64]
or r8, 0xffffffffffffffff
mov edx, 0x40
mov rcx, rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.msvcrt.dll_clearerr]
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x68]
mov byte [rsp + 0xbf], 0
call fcn.1400385f0
mov ebx, eax
test eax, eax
je 0x1400188f2
xor r12d, r12d
mov esi, 1
lea r14, [0x1400cff00]
movabs rdi, 0x7e0000007e03ff
cmp r12d, dword [0x1400cff08]
jae 0x140018514
mov r13d, r12d
xor edx, edx
lea r8, [r13*8]
mov rax, qword [r14]
mov dword [rsp + 0x50], edx
mov qword [rsp + 0x48], r8
mov rbp, qword [rax + r8]
mov rcx, rbp
call fcn.1400797e8
mov edx, dword [rsp + 0x50]
mov r8, qword [rsp + 0x48]
cmp edx, eax
jae 0x140018423
mov eax, edx
add rbp, rax
cmp byte [rbp], 0x5c
jne 0x14001841f
mov byte [rbp], 0x2f
inc edx
jmp 0x1400183eb
mov rcx, qword [rsp + 0x68]
lea rdx, [rbp + 2]
call fcn.140079820
mov rbp, rax
test rax, rax
je 0x14001850c
test esi, esi
je 0x140018452
mov rdx, qword [rsp + 0x40]
lea rcx, str.Updating__s:
call fcn.140038472
mov rax, qword [r14]
lea rcx, [0x14008ee77]
lea rsi, [rsp + 0x70]
mov rdx, qword [rax + r13*8]
add rdx, 2
call fcn.140038472
mov rax, qword [r14]
mov r8, rsi
xor ecx, ecx
sub rbp, qword [rsp + 0x68]
mov rdx, qword [rax + r13*8]
call fcn.140017480
mov rax, qword [rsp + 0x68]
test rbp, rbp
jle 0x14001849a
cmp byte [rax + rbp - 1], 0xa
je 0x14001849a
dec rbp
jmp 0x140018489
mov al, byte [rax + rbp]
sub eax, 0x30
cmp al, 0x36
ja 0x1400184aa
bt rdi, rax
jb 0x1400184c3
mov r8d, 0x880
lea rdx, str.hash.c
lea rcx, str.IS_HEXASCII_md5_data_pos__
jmp 0x14001854b
lea rdx, [rbp + 1]
add rbp, 0x21
mov al, byte [rsi]
mov ecx, eax
shr cl, 4
lea r8d, [rcx + 0x57]
cmp cl, 9
ja 0x1400184df
lea r8d, [rcx + 0x30]
mov rcx, qword [rsp + 0x68]
and eax, 0xf
mov byte [rcx + rdx - 1], r8b
lea ecx, [rax + 0x57]
cmp al, 9
ja 0x1400184f6
lea ecx, [rax + 0x30]
mov rax, qword [rsp + 0x68]
inc rsi
mov byte [rax + rdx], cl
add rdx, 2
cmp rbp, rdx
jne 0x1400184cb
xor esi, esi
inc r12d
jmp 0x1400183d1
cmp dword [0x1400fff40], 0
je 0x1400188d3
lea esi, [rbx + 0x400]
mov rcx, rsi
call fcn.140079730
mov r12, rax
test rax, rax
jne 0x140018551
mov r8d, 0x88b
lea rdx, str.hash.c
lea rcx, str.new_data___NULL
call qword [sym.imp.msvcrt.dll_memmove]
mov r9, qword [0x1400cff10]
test r9, r9
je 0x140018585
lea r8, str._md5sum_totalbytes__0x_llx_n
mov rdx, rsi
mov rcx, rax
call fcn.140016ef2
mov rcx, r12
call fcn.1400797e8
lea r14d, [rbx + rax]
add rax, r12
mov qword [rsp + 0x50], rax
jmp 0x14001858d
mov qword [rsp + 0x50], rax
mov r14d, ebx
lea rax, [rsp + 0x100]
mov rbp, qword [rsp + 0x68]
mov r13d, 0x259
mov qword [rsp + 0x48], rax
or r8, 0xffffffffffffffff
lea rax, [rsp + 0xc0]
lea rsi, [r13*8]
mov edx, 0x40
mov qword [rsp + 0x40], rax
mov rax, qword [str.h_r_t_]
lea r9, str._sefi_boot_s
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsi + rax - 0x12c0]
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x28], rax
call qword [sym.imp.msvcrt.dll_clearerr]
mov byte [rsp + 0xff], 0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1400187be
mov rax, qword [str.h_r_t_]
xor edx, edx
mov r8d, 0xa
mov r9, qword [rsi + rax - 0x12c0]
lea rax, [rsp + 0x64]
mov dword [rsp + 0x28], edx
mov rdx, r13
mov qword [rsp + 0x20], rax
mov rax, qword [0x1400b66e0]
mov rcx, qword [rax]
call fcn.1400371fc
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x58], rax
call fcn.1400797e8
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
lea rdx, [rax + 1]
mov ecx, edx
rep movsb byte [rdi], byte [rsi]
cmp rdx, 0x40
jne 0x14001866c
mov eax, 0x3f
mov byte [rsp + rax + 0x100], 0
mov rcx, qword [rsp + 0x48]
call fcn.1400797e8
or r9, 0xffffffffffffffff
mov rcx, qword [rsp + 0x48]
lea r8, str._original.efi
mov byte [rsp + rax + 0xfc], 0
mov edx, 0x40
call qword [0x14011cbb0]
cmp qword [rsp + 0x58], 0
jne 0x1400186bf
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
lea rcx, str.Could_not_rename:__s___s
jmp 0x1400187b9
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.140016ea3
test eax, eax
je 0x1400186a9
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
lea rcx, str.Renamed:__s___s
call fcn.140038472
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], rax
mov r8d, 1
mov edx, 0xc0000000
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.DLL_DeleteCriticalDeleteFileW]
mov rsi, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
jbe 0x140018740
call fcn.14003893c
mov rdx, qword [rsp + 0x40]
lea rcx, str.Could_not_create__s:__s.
mov r8, rax
call fcn.140038472
jmp 0x140018786
mov r8d, dword [rsp + 0x64]
mov rdx, qword [rsp + 0x58]
xor r9d, r9d
mov rcx, rsi
mov dword [rsp + 0x20], 4
call fcn.140039485
mov rdi, qword [sym.imp.KERNEL32.DLL_CreateDirectorCreateEventACreateFileA]
test eax, eax
jne 0x140018797
call fcn.14003893c
mov rdx, qword [rsp + 0x40]
lea rcx, str.Could_not_write__s:__s.
mov r8, rax
call fcn.140038472
mov rcx, rsi
call rdi
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call fcn.140016ea3
jmp 0x1400187be
mov rcx, rsi
call rdi
mov ecx, dword [rsp + 0x64]
xor r8d, r8d
xor edx, edx
call fcn.140038d8b
mov rdx, qword [rsp + 0x40]
lea rcx, str.Created:__s___s_
mov r8, rax
call fcn.140038472
inc r13
cmp r13, 0x262
jne 0x1400185a5
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
lea rdx, str._._efi_boot_boot
call qword [0x14011cda0]
mov r13, rax
test rax, rax
je 0x1400188ac
mov r15, qword [str.h_r_t_]
lea rax, [r15 + 0x48]
mov qword [rsp + 0x58], rax
lea rax, [r13 + 0xc]
mov qword [rsp + 0x40], rax
mov rcx, qword [r15 + 8]
call fcn.1400797e8
lea rax, [r13 + rax + 0xc]
cmp byte [rax], 0xa
jne 0x140018898
mov byte [rax], 0
mov rcx, qword [rsp + 0x40]
mov rdx, qword [r15 + 8]
call qword [0x14011c7e8]
mov rdi, qword [r15 + 8]
mov qword [rsp + 0x48], rdi
test eax, eax
jne 0x140018888
mov rcx, rdi
mov rsi, rbp
add r14d, 9
call fcn.1400797e8
mov rdx, r13
mov rdi, qword [rsp + 0x50]
sub rdx, rbp
lea ecx, [rdx + rax + 8]
lea rdx, str._original.efi_n
rep movsb byte [rdi], byte [rsi]
mov rcx, rdi
call fcn.1400797d8
mov rcx, qword [rsp + 0x48]
lea rax, [rdi + 0xe]
mov qword [rsp + 0x50], rax
call fcn.1400797e8
lea rbp, [r13 + rax + 0xd]
mov rcx, qword [rsp + 0x48]
call fcn.1400797e8
mov byte [r13 + rax + 0xc], 0xa
add r15, 8
cmp qword [rsp + 0x58], r15
jne 0x14001880f
jmp 0x1400187d8
mov rax, qword [rsp + 0x68]
mov ecx, ebx
mov rdi, qword [rsp + 0x50]
mov rsi, rbp
mov ebx, r14d
add rcx, rax
sub rcx, rbp
rep movsb byte [rdi], byte [rsi]
mov rcx, rax
call fcn.1400796c8
mov qword [rsp + 0x68], r12
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x80]
mov r8d, ebx
call fcn.1400386d1
mov rcx, qword [rsp + 0x68]
call fcn.1400796c8
lea rcx, [0x1400cff00]
call fcn.140036e20
nop
add rsp, 0x148
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret