Function at 0x1800358b0
Capabilities:
Copy file
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x4a0
mov rax, qword [0x180080920]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov r14, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x280]
call fcn.18004c900
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call fcn.18004c900
cmp byte [0x180081330], 0
je 0x180035938
lea rcx, [rsp + 0x70]
call fcn.18000d050
test al, al
je 0x180035938
lea r8, [rsp + 0x280]
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.18000d3f0
test al, al
jne 0x18003595b
mov r8d, 0x208
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.18004c900
mov rdx, r14
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xe0000000
lea r8d, [rdi + 1]
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180035bc7
mov qword [rsp + 0x58], rax
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r12d, eax
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor edx, edx
lea r8d, [rdi + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov r15, rax
test rax, rax
je 0x180035ba5
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
test rax, rax
je 0x180035ba5
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x20], 1
mov r9, rax
xor r8d, r8d
mov rdx, rbx
call fcn.180007830
test al, al
je 0x180035b92
movsxd rdx, dword [rsi + 0x3c]
add rdx, rsi
movzx eax, word [rdx + 0x18]
mov ecx, 0x10b
cmp ax, cx
je 0x180035a47
mov ecx, 0x20b
cmp ax, cx
jne 0x180035b92
mov edi, 1
movzx eax, word [rdx + 0x14]
lea rcx, [rdx + 0x18]
add rcx, rax
movzx eax, word [rdx + 6]
test edi, edi
jne 0x180035afe
nop
test eax, eax
je 0x180035a7c
mov dword [rcx + 0x24], 0xe0000020
add rcx, 0x28
mov qword [rsp + 0x60], rcx
dec eax
mov dword [rsp + 0x44], eax
jmp 0x180035a60
mov r9, rsi
mov r8, r15
mov edx, r12d
mov rcx, rbx
call fcn.18000dc30
cmp word [rsp + 0x70], 0
je 0x180035acc
xor r8d, r8d
mov rdx, r14
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov dl, 1
lea rcx, [rsp + 0x70]
test eax, eax
je 0x180035ac0
call fcn.18000d220
call fcn.18000d220
xor al, al
jmp 0x180035bd5
mov al, 1
jmp 0x180035bd5
nop
test eax, eax
je 0x180035b1c
mov dword [rcx + 0x24], 0xe0000020
add rcx, 0x28
mov qword [rsp + 0x60], rcx
dec eax
mov dword [rsp + 0x44], eax
jmp 0x180035b00
mov r9, rsi
mov r8, r15
mov edx, r12d
mov rcx, rbx
call fcn.18000dc30
cmp word [rsp + 0x70], 0
je 0x180035b66
xor r8d, r8d
mov rdx, r14
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov dl, 1
lea rcx, [rsp + 0x70]
test eax, eax
je 0x180035b5d
call fcn.18000d220
mov al, 1
jmp 0x180035bd5
call fcn.18000d220
xor al, al
jmp 0x180035bd5
mov al, 1
jmp 0x180035bd5
mov r9, rsi
mov r8, r15
mov edx, r12d
mov rcx, rbx
call fcn.18000dc30
jmp 0x180035bc7
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x180035bc7
test byte [rsp + 0x40], 2
jne 0x180035bc7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dl, 1
lea rcx, [rsp + 0x70]
call fcn.18000d220
xor al, al