Function at 0x18005a4c0
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xe0
mov rax, qword [0x18007cd08]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov qword [rbp - 0x59], r8
mov r12, rdx
lea r8d, [rcx - 0x13]
mov dword [rsp + 0x34], ecx
mov dword [rsp + 0x30], r8d
mov r13, r9
mov edx, ecx
cmp ecx, r8d
jbe case.0x18005a55c.4
mov r14, qword [rbp - 0x79]
lea r8d, [rcx - 0xeb]
mov rsi, qword [rbp - 0x79]
xor edi, edi
mov r15, qword [rbp - 0x79]
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x38], r8d
lea ebx, [rdi + 0x65]
lea r9, [0x180000000]
mov r10d, 0x47
lea r11d, [r10 + 0x22]
cmp r8d, 0x27
ja case.default.0x18005a55c
movzx eax, byte [r9 + r8 + 0x5ab40]
mov ecx, dword [r9 + rax*4 + 0x5aaf0]
add rcx, r9
jmp rcx
mov r14, qword [r13]
jmp case.0x18005a55c.19
mov r8d, 4
mov word [rbp - 0x3a], r11w
lea rdx, str.code
lea rcx, [rbp - 0x41]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
mov edx, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x38]
mov dword [rbp - 0x35], 0x35322d
jmp case.0x18005a55c.19
mov r8d, 3
mov dword [rbp - 1], 0x6b
lea rdx, [0x180075044]
lea rcx, [rbp + 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov edx, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x38]
mov word [rbp + 7], bx
jmp case.0x18005a55c.19
mov r8d, 0xa
lea rdx, [rbp - 0x32]
lea ecx, [r8 - 4]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ultoa]
mov edx, dword [rsp + 0x34]
mov eax, 0x63
mov r8d, dword [rsp + 0x38]
mov word [rbp - 0x31], ax
mov eax, 0x6f
mov word [rbp - 0x30], ax
movzx eax, word [0x180075068]
mov word [rbp - 0x2f], ax
mov byte [rbp - 0x2d], 0x72
jmp case.0x18005a55c.19
mov r8d, 5
lea rdx, str.emPo
lea rcx, [rbp - 0x12]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov eax, dword [str.werS]
mov edx, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x38]
mov dword [rbp - 0xe], eax
mov eax, 0x74
mov word [rbp - 0xa], ax
mov eax, dword [str.atus]
mov dword [rbp - 9], eax
movzx eax, byte [0x180075080]
mov byte [rbp - 5], al
jmp case.0x18005a55c.19
mov r8d, 6
mov word [rbp - 0x18], bx
lea rdx, str.tSyst
lea rcx, [rbp - 0x17]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov edx, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x38]
jmp case.0x18005a55c.19
test r13, r13
je 0x18005a687
mov dword [r13], edi
mov rax, qword [r12]
test rax, rax
je 0x18005a69d
mov rax, qword [rax + 0x18]
test rax, rax
jne 0x18005aa04
mov ebx, 0xc8
mov eax, ebx
sub eax, 0xc5
je 0x18005a744
sub eax, 1
je 0x18005a719
sub eax, 1
je 0x18005a6e9
cmp eax, 1
jne 0x18005a74d
lea r8, [rbp - 0x61]
mov qword [rbp - 0x79], 0x28
lea rdx, [rbp - 0x79]
mov qword [rbp - 0x61], 1
mov ecx, 0x12b
call fcn.1800531b0
mov rsi, rax
jmp 0x18005a74d
test rsi, rsi
je 0x18005aa12
mov rax, qword [r12 + 0x28]
lea r8, [rbp - 0x79]
imul rax, qword [r12 + 0x20]
mov r9d, 0x58
xor edx, edx
xor ecx, ecx
mov qword [rbp - 0x79], rax
call fcn.18005dee0
mov qword [rsi], rax
jmp 0x18005a74d
cmp qword [rsi], rdi
jne 0x18005a74d
test r13, r13
je 0x18005a72b
mov dword [r13], 0x57
xor edx, edx
mov r8d, 0xeb
mov rcx, rsi
call fcn.18005e5f0
mov rax, qword [rbp - 0x71]
jmp 0x18005a9dd
mov rax, qword [r12 + 0x28]
mov qword [rsi + 0x10], rax
dec ebx
cmp ebx, 0xc4
ja 0x18005a6a2
mov edx, dword [rsp + 0x34]
mov ebx, 0x65
mov r8d, dword [rsp + 0x38]
jmp case.0x18005a55c.19
mov word [rbp - 0x19], r10w
jmp case.0x18005a55c.19
mov r8d, 3
lea rdx, [0x1800750d6]
lea rcx, [rbp - 0x29]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
mov r8d, 5
lea rdx, [0x180075127]
lea rcx, [rbp - 0x29]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
mov r8d, 2
lea rdx, [0x180075166]
lea rcx, [rbp - 0x29]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
mov edx, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x38]
jmp case.0x18005a55c.19
mov word [rbp - 0x1e], 0x30
mov ecx, 0x8b
nop word [rax + rax]
mov eax, ecx
sub eax, 0xf
je 0x18005a874
sub eax, 0x7c
je 0x18005a843
cmp eax, 0x32
je 0x18005a80c
add ecx, 0x4012
cmp ecx, 0xc036
jbe 0x18005a7e0
mov r15, qword [rbp - 0x69]
jmp case.0x18005a55c.19
lea r8, [rbp - 0x79]
mov qword [rbp - 0x61], 0x30
lea rdx, [rbp - 0x61]
mov qword [rbp - 0x79], 1
mov ecx, 0x12b
call fcn.1800531b0
mov edx, dword [rsp + 0x34]
mov r15, rax
mov r8d, dword [rsp + 0x38]
mov qword [rbp - 0x69], rax
jmp case.0x18005a55c.19
xor r8d, r8d
lea rcx, [rbp - 1]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rax
lea rdx, [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [rsp + 0x34]
mov r15, rax
mov r8d, dword [rsp + 0x38]
mov qword [rbp - 0x69], rax
jmp case.0x18005a55c.19
mov r8d, 0x43
lea rdx, [rbp - 1]
xor ecx, ecx
call fcn.180047aa0
mov eax, dword [rbp - 1]
add eax, dword [rbp - 0x19]
mov edx, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x38]
mov dword [rbp - 0x69], eax
mov r15, qword [rbp - 0x69]
mov dword [rbp - 1], eax
jmp case.0x18005a55c.19
cmp byte [rbp - 0x51], 1
sete byte [rbp - 0x71]
jmp case.0x18005a55c.19
mov r8d, 1
lea rdx, [0x180075172]
lea rcx, [rbp - 0x1f]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov edx, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x38]
mov byte [rbp - 0x1e], dil
jmp case.0x18005a55c.19
mov r8d, 3
mov word [rbp + 9], di
lea rdx, [0x1800751b8]
lea rcx, [rbp - 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat]
mov edx, dword [rsp + 0x34]
movabs rax, 0x6c006c0064002e
mov r8d, dword [rsp + 0x38]
mov qword [rbp + 0xf], rax
mov eax, 0x72
mov word [rbp - 0x41], ax
mov word [rbp + 0x17], di
jmp case.0x18005a55c.19
mov byte [rbp - 0x2c], dil
mov byte [rbp - 0x29], dil
jmp case.0x18005a55c.19
mov eax, 0x78
lea rdx, [0x1800751dc]
mov word [rbp - 0x40], ax
lea rcx, [rbp - 0x41]
mov eax, dword [str.vt_u]
mov r8d, 1
mov dword [rbp - 0x3f], eax
movzx eax, byte [0x1800751d8]
mov byte [rbp - 0x3b], al
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
mov edx, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x38]
jmp case.0x18005a55c.19
lea rcx, [rbp - 0x51]
call r15
test eax, eax
je 0x18005aa21
mov dword [rsp + 0x28], 1
lea rdx, [rbp - 0x41]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
lea rcx, [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_CopyFileExA]
mov edx, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x38]
jmp case.0x18005a55c.19
mov rax, qword [r12]
test rax, rax
je 0x18005aa2b
mov qword [rsi + 0x20], rax
mov rax, qword [r12]
mov qword [rax + 0x18], rsi
mov qword [r12], rsi
mov eax, dword [rsp + 0x30]
dec edx
dec r8d
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x38], r8d
cmp edx, eax
ja 0x18005a52d
mov rbx, qword [rbp - 0x71]
mov rax, rbx
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.18006edc0
mov rbx, qword [rsp + 0x120]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov qword [r12], rax
mov qword [rax + 8], rdi
mov rax, qword [rbp - 0x71]
jmp 0x18005a9dd
test r13, r13
je case.0x18005a55c.4
mov dword [r13], 0x56
jmp case.0x18005a55c.4
mov byte [rbp - 0x71], dil
mov rax, qword [rbp - 0x71]
jmp 0x18005a9dd
mov rax, qword [rbp - 0x71]
mov qword [r12], rsi
jmp 0x18005a9dd
test r14, r14
je 0x18005aae5
mov rbx, qword [rbp - 0x71]
mov r15, qword [rbp - 0x79]
mov r9, qword [rbp - 0x59]
nop word [rax + rax]
mov rax, qword [r9]
cmp rax, qword [r14 + 8]
jne 0x18005aad0
mov esi, 0x6c
nop
mov eax, esi
sub eax, 0x6c
je 0x18005aa8e
sub eax, 1
je 0x18005aa77
cmp eax, 1
je 0x18005a9da
jmp 0x18005aac3
mov r9, qword [r12]
xor edx, edx
mov rcx, r14
lea r8d, [rdx + 0x16]
call fcn.18005b3f0
mov rbx, r15
jmp 0x18005aac3
mov rdx, qword [r14 + 0x10]
xor r9d, r9d
mov qword [rsp + 0x28], rdi
mov r8d, 0x8e
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1800587a0
mov r9, r14
mov r8d, 0x46
mov rdx, r13
mov rcx, rax
call fcn.18005b3f0
mov r15, qword [r14]
inc esi
cmp esi, 0x6f
jb 0x18005aa60
mov r9, qword [rbp - 0x59]
jmp 0x18005aadc
jae 0x18005aad8
mov r14, qword [r14 + 0x10]
jmp 0x18005aadc
mov r14, qword [r14 + 0x18]
test r14, r14
jne 0x18005aa50
mov rax, rdi
jmp 0x18005a9dd