Function at 0x1800049e0
Capabilities:
Check if file exists
Copy file

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5e8]
sub rsp, 0x6e0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rax, qword [0x180038010]
xor rax, rsp
mov qword [rbp + 0x5d0], rax
mov ebx, ecx
xor edi, edi
movups xmm0, xmmword [str..Harddisk0Partition1_]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [0x180030300]
movups xmmword [rsp + 0x78], xmm1
movups xmm0, xmmword [0x180030310]
movups xmmword [rbp - 0x78], xmm0
movzx eax, word [0x180030320]
mov word [rbp - 0x68], ax
mov r8d, 0x104
lea rdx, [rbp + 0x3c0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [rdi + 0x5c]
lea rcx, [rbp + 0x3c0]
call fcn.180010d20
mov word [rax], di
movsx eax, bl
add ax, 0x30
mov word [rbp - 0x80], ax
lea r8, [rbp + 0x3c0]
lea rdx, str._sRdvEsp.zip
lea rcx, [rbp - 0x60]
call fcn.1800043b0
lea r8, [rsp + 0x68]
lea rdx, str._sRdvEsp.zip
lea rcx, [rbp + 0x1b0]
call fcn.1800043b0
lea rcx, [rbp - 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180004cac
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180004c5e
lea rdx, [rbp + 0x1b0]
lea rcx, [rsp + 0x28]
call fcn.1800019c0
nop
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x48]
call fcn.1800019c0
lea rdx, [rsp + 0x48]
mov rdi, qword [rsp + 0x48]
mov r14, qword [rsp + 0x60]
cmp r14, 0x10
cmovae rdx, rdi
lea rcx, [rsp + 0x28]
mov rbx, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x40]
cmp rsi, 0x10
cmovae rcx, rbx
mov r8, qword [rsp + 0x38]
cmp r8, qword [rsp + 0x58]
jne 0x180004bd3
call fcn.180025e80
test eax, eax
jne 0x180004bd3
cmp r14, 0x10
jb 0x180004b82
lea rdx, [r14 + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x180004b70
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180004ce0
mov rcx, rdi
call fcn.18000f490
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x28]
movdqa xmm0, xmmword [0x180032830]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
cmp rsi, 0x10
jb 0x180004bcc
lea rdx, [rsi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x180004bc4
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180004ce6
mov rcx, rbx
call fcn.18000f490
xor eax, eax
jmp 0x180004cae
cmp r14, 0x10
jb 0x180004c14
lea rdx, [r14 + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x180004c02
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180004cec
mov rcx, rdi
call fcn.18000f490
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x28]
movdqa xmm0, xmmword [0x180032830]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
cmp rsi, 0x10
jb 0x180004c5e
lea rdx, [rsi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x180004c56
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180004cda
mov rcx, rbx
call fcn.18000f490
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x60]
call fcn.180004760
mov edi, eax
test eax, eax
jne 0x180004c9e
xor r8d, r8d
lea rdx, [rbp + 0x1b0]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x180004c9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.INTER_SetupUefiBootFiles_CopyFile_failed:__d_n
call fcn.180003280
mov edx, edi
lea rcx, str.INTER_UnZipToEsp_result:__d_n
call fcn.180003280
mov eax, edi
mov rcx, qword [rbp + 0x5d0]
xor rcx, rsp
call fcn.18000ed70
lea r11, [rsp + 0x6e0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.180013bd8
nop
call fcn.180013bd8
nop
call fcn.180013bd8
nop
call fcn.180013bd8
int3