Function at 0x18002a4f0
Capabilities:
Copy file
Enumerate pe sections
Get file size
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x4d0
mov rax, qword [0x180080920]
xor rax, rsp
mov qword [rsp + 0x4c0], rax
mov r14d, r8d
mov r13d, edx
mov rbx, rcx
mov qword [rsp + 0x80], rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x2b0]
call fcn.18004c900
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0xa0]
call fcn.18004c900
xor r12d, r12d
cmp byte [0x180081330], r12b
je 0x18002a589
lea rcx, [rsp + 0xa0]
call fcn.18000d050
test al, al
je 0x18002a589
lea r8, [rsp + 0x2b0]
mov rdx, rbx
lea rcx, [rsp + 0xa0]
call fcn.18000d3f0
test al, al
jne 0x18002a5af
mov r8d, 0x208
xor edx, edx
lea rcx, [rsp + 0xa0]
call fcn.18004c900
mov rdx, rbx
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov esi, 1
mov r8d, esi
mov edx, 0xe0000000
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
mov qword [rsp + 0x78], rax
cmp rax, 0xffffffffffffffff
je 0x18002aa70
mov qword [rsp + 0x90], rax
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor edx, edx
lea r8d, [rsi + 0x3f]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x18002aa40
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
test rax, rax
je 0x18002aa47
mov qword [rsp + 0x88], rax
mov byte [rsp + 0x20], sil
mov r9, rax
xor r8d, r8d
mov rdx, r15
call fcn.180007830
test al, al
je 0x18002aa31
movsxd r10, dword [rdi + 0x3c]
add r10, rdi
mov qword [rsp + 0x70], r10
movzx eax, word [r10 + 0x18]
mov ecx, 0x10b
cmp ax, cx
jne 0x18002a6a1
mov esi, r12d
jmp 0x18002a6af
mov ecx, 0x20b
cmp ax, cx
jne 0x18002aa31
movzx eax, word [r10 + 0x14]
lea rbx, [r10 + 0x18]
add rbx, rax
movzx r15d, word [r10 + 6]
test esi, esi
jne 0x18002a882
mov esi, 0x200
test r14d, r14d
cmovne esi, r14d
mov dword [r10 + 0x3c], esi
nop dword [rax + rax]
test r15d, r15d
je 0x18002a7c5
mov r9d, dword [rbx + 0x14]
mov eax, dword [rbx + 0x10]
lea ecx, [rax + r9]
mov dword [rsp + 0x40], ecx
test eax, eax
je 0x18002a715
dec ecx
mov dword [rsp + 0x40], ecx
cmp byte [rcx + rdi], 0
jne 0x18002a715
cmp ecx, r9d
jbe 0x18002a715
dec ecx
mov dword [rsp + 0x40], ecx
jmp 0x18002a702
sub ecx, r9d
mov dword [rsp + 0x40], ecx
xor edx, edx
mov eax, ecx
div esi
mov r8d, eax
imul r8d, esi
mov dword [rsp + 0x40], r8d
cmp r8d, ecx
jae 0x18002a73b
add r8d, esi
mov dword [rsp + 0x40], r8d
test r12d, r12d
jne 0x18002a751
mov dword [r10 + 0x54], r9d
mov eax, dword [rbx + 0xc]
mov dword [r10 + 0x38], eax
mov dword [rbx + 0x10], r8d
jmp 0x18002a783
mov dword [rbx + 0x10], r8d
sub rbx, 0x28
mov qword [rsp + 0x58], rbx
mov eax, dword [rbx + 0x14]
add eax, dword [rbx + 0x10]
add rbx, 0x28
mov qword [rsp + 0x58], rbx
mov dword [rbx + 0x14], eax
lea rdx, [rdi + r9]
mov ecx, eax
add rcx, rdi
call fcn.18004c130
mov r10, qword [rsp + 0x70]
mov ecx, dword [rbx + 8]
mov r8d, dword [r10 + 0x38]
xor edx, edx
mov eax, ecx
div r8d
mov eax, ecx
sub eax, edx
mov dword [rsp + 0x48], eax
cmp eax, ecx
jae 0x18002a7a4
add eax, r8d
mov dword [rsp + 0x48], eax
mov dword [rbx + 8], eax
add rbx, 0x28
mov qword [rsp + 0x58], rbx
inc r12d
mov dword [rsp + 0x68], r12d
dec r15d
mov dword [rsp + 0x6c], r15d
jmp 0x18002a6e0
sub rbx, 0x28
mov qword [rsp + 0x58], rbx
test r13d, r13d
jne 0x18002a7db
mov r13d, dword [rbx + 0x14]
add r13d, dword [rbx + 0x10]
mov dword [rsp + 0x44], r13d
mov r9, rdi
mov r8, qword [rsp + 0x50]
mov edx, r13d
mov rcx, qword [rsp + 0x78]
call fcn.18000dc30
cmp word [rsp + 0xa0], 0
je 0x18002a843
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov dl, 1
lea rcx, [rsp + 0xa0]
test eax, eax
je 0x18002a834
call fcn.18000d220
mov eax, r13d
jmp 0x18002aa9a
call fcn.18000d220
mov eax, 0xffffffff
jmp 0x18002aa9a
mov eax, r13d
jmp 0x18002aa9a
mov esi, 0x200
test r14d, r14d
cmovne esi, r14d
mov dword [r10 + 0x3c], esi
test r15d, r15d
je 0x18002a977
mov r9d, dword [rbx + 0x14]
mov eax, dword [rbx + 0x10]
lea ecx, [rax + r9]
mov dword [rsp + 0x40], ecx
test eax, eax
je 0x18002a8c7
dec ecx
mov dword [rsp + 0x40], ecx
cmp byte [rcx + rdi], 0
jne 0x18002a8c7
cmp ecx, r9d
jbe 0x18002a8c7
dec ecx
mov dword [rsp + 0x40], ecx
jmp 0x18002a8b4
sub ecx, r9d
mov dword [rsp + 0x40], ecx
xor edx, edx
mov eax, ecx
div esi
mov r8d, eax
imul r8d, esi
mov dword [rsp + 0x40], r8d
cmp r8d, ecx
jae 0x18002a8ed
add r8d, esi
mov dword [rsp + 0x40], r8d
test r12d, r12d
jne 0x18002a903
mov dword [r10 + 0x54], r9d
mov eax, dword [rbx + 0xc]
mov dword [r10 + 0x38], eax
mov dword [rbx + 0x10], r8d
jmp 0x18002a935
mov dword [rbx + 0x10], r8d
sub rbx, 0x28
mov qword [rsp + 0x58], rbx
mov eax, dword [rbx + 0x14]
add eax, dword [rbx + 0x10]
add rbx, 0x28
mov qword [rsp + 0x58], rbx
mov dword [rbx + 0x14], eax
lea rdx, [rdi + r9]
mov ecx, eax
add rcx, rdi
call fcn.18004c130
mov r10, qword [rsp + 0x70]
mov ecx, dword [rbx + 8]
mov r8d, dword [r10 + 0x38]
xor edx, edx
mov eax, ecx
div r8d
mov eax, ecx
sub eax, edx
mov dword [rsp + 0x48], eax
cmp eax, ecx
jae 0x18002a956
add eax, r8d
mov dword [rsp + 0x48], eax
mov dword [rbx + 8], eax
add rbx, 0x28
mov qword [rsp + 0x58], rbx
inc r12d
mov dword [rsp + 0x68], r12d
dec r15d
mov dword [rsp + 0x6c], r15d
jmp 0x18002a892
sub rbx, 0x28
mov qword [rsp + 0x58], rbx
test r13d, r13d
jne 0x18002a98d
mov r13d, dword [rbx + 0x14]
add r13d, dword [rbx + 0x10]
mov dword [rsp + 0x44], r13d
mov r9, rdi
mov r8, qword [rsp + 0x50]
mov edx, r13d
mov rcx, qword [rsp + 0x78]
call fcn.18000dc30
cmp word [rsp + 0xa0], 0
je 0x18002a9f5
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov dl, 1
lea rcx, [rsp + 0xa0]
test eax, eax
je 0x18002a9e6
call fcn.18000d220
mov eax, r13d
jmp 0x18002aa9a
call fcn.18000d220
mov eax, 0xffffffff
jmp 0x18002aa9a
mov eax, r13d
jmp 0x18002aa9a
mov r9, rdi
mov r8, qword [rsp + 0x50]
mov edx, ebx
mov rcx, r15
jmp 0x18002aa7f
mov rdi, qword [rsp + 0x60]
jmp 0x18002aa4c
mov rdi, qword [rsp + 0x50]
lea rdx, [rsp + 0x50]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x18002aa75
test byte [rsp + 0x50], 2
jne 0x18002aa75
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18002aa75
mov rdi, qword [rsp + 0x60]
xor r9d, r9d
mov r8, rdi
xor edx, edx
xor ecx, ecx
call fcn.18000dc30
movzx edx, sil
lea rcx, [rsp + 0xa0]
call fcn.18000d220
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x4c0]
xor rcx, rsp
call fcn.180049ad0
add rsp, 0x4d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret