Function at 0x180151cb0
Capabilities:
Copy file
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x58]
sub rsp, 0x140
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1804610b0]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rbx, rdx
mov rdi, rcx
xor r14d, r14d
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r14w
lea r8d, [r14 + 0xc]
lea rdx, str.2345Skin.ini
lea rcx, [rsp + 0x40]
call fcn.180033930
nop
lea r8, [rsp + 0x40]
mov rdx, rbx
lea rcx, [rbp + 0x10]
call fcn.1801daa90
nop
lea rcx, [rsp + 0x40]
call fcn.1800338a0
cmp byte [rdi + 0xc0], r14b
je 0x180151e39
lea rbx, [rdi + 0x78]
lea rdx, [rbp + 0x10]
cmp qword [rbp + 0x28], 8
cmovae rdx, qword [rbp + 0x10]
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x180151d65
mov rcx, qword [rbx]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x180151e16
xor dil, dil
mov qword [rbp], r14
mov qword [rbp + 8], r14
mov qword [rbp], r14
mov qword [rbp + 8], 7
mov word [rbp - 0x10], r14w
lea rdx, [rbp - 0x10]
mov rcx, rbx
call fcn.1801f0cb0
movzx ebx, dil
mov ecx, 1
test al, al
cmovne ebx, ecx
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r14w
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x10]
call fcn.1801f0cb0
test al, al
jne 0x180151dda
test bl, bl
je 0x180151e1e
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rdx, qword [rbp - 0x30]
lea rcx, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae rcx, qword [rbp - 0x10]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x180151e1e
lea rcx, [rbp - 0x30]
call fcn.1800338a0
nop
lea rcx, [rbp - 0x10]
call fcn.1800338a0
mov dil, 1
jmp 0x180151fff
lea rcx, [rbp - 0x30]
call fcn.1800338a0
nop
lea rcx, [rbp - 0x10]
call fcn.1800338a0
xor dil, dil
jmp 0x180151fff
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r14w
lea r8d, [rax + 0x18]
lea rdx, str.RCIM_SKIN_RESOURCE_MUTEX
lea rcx, [rsp + 0x60]
call fcn.180033930
nop
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x48]
call fcn.18017f5d0
nop
lea rcx, [rsp + 0x60]
call fcn.1800338a0
mov dword [rsp + 0x30], r14d
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r14w
mov r8d, 0xc
lea rdx, str.2345Skin.ini
lea rcx, [rbp - 0x80]
call fcn.180033930
nop
lea r8, [rsp + 0x30]
lea rdx, [rbp - 0x80]
mov rcx, rdi
call fcn.180151190
mov rdi, rax
lea rcx, [rbp - 0x80]
call fcn.1800338a0
mov rsi, 0xffffffffffffffff
test rdi, rdi
je 0x180151f9f
mov qword [rsp + 0x38], r14
mov ecx, 8
call fcn.1802994e4
mov qword [rbp - 0x58], rax
mov qword [rax], rsi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 0x40000000
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x38]
call fcn.1801e1a50
mov rbx, qword [rsp + 0x38]
test al, al
jne 0x180151f46
xor dil, dil
jmp 0x180151f72
mov dword [rbp - 0x50], r14d
test rbx, rbx
je 0x180151f6f
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x180151f6f
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x50]
mov r8d, dword [rsp + 0x30]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dil, 1
test rbx, rbx
je 0x180151f9f
mov rcx, qword [rbx]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x180151f8d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r14
mov edx, 8
mov rcx, rbx
call fcn.180299904
mov qword [rsp + 0x38], r14
mov rbx, qword [rbp - 0x48]
test rbx, rbx
je 0x180151fc4
cmp byte [rbp - 0x38], 0
je 0x180151fc4
mov rcx, qword [rbx]
test rcx, rcx
je 0x180151fbc
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [rbx + 8], 0
mov byte [rbp - 0x38], 0
lea rcx, [rbp - 0x48]
call fcn.18003d460
nop
mov rbx, qword [rbp - 0x40]
test rbx, rbx
je 0x180151fff
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x180151fff
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x180151fff
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rbp + 0x10]
call fcn.1800338a0
movzx eax, dil
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.1802994c0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret