Function at 0x140004665
Capabilities:
Copy file

Disassembly:
jmp 0x1400256d0
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x228
mov qword [rsp + 0x170], 0xfffffffffffffffe
lea rcx, [rsp + 0x98]
call fcn.1400037e7
nop
lea rcx, [rsp + 0x180]
call fcn.14017a490
nop
movsxd rax, dword [rsp + 0x238]
mov rcx, qword [rsp + 0x230]
add rcx, 0x150
mov rdx, rax
call fcn.140004dc2
lea r8, [0x1402177d0]
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140005506
nop
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x30]
call fcn.140002b08
lea r8, [0x140217714]
mov rdx, rax
lea rcx, [rsp + 0x28]
call qword [sym.imp.MSVCR120D.dll__wfopen_s]
cmp qword [rsp + 0x28], 0
jne 0x1400257b6
mov dword [rsp + 0x64], 0
lea rcx, [rsp + 0x30]
call fcn.1400053e9
nop
lea rcx, [rsp + 0x180]
call fcn.14000309e
nop
lea rcx, [rsp + 0x98]
call fcn.140004179
nop
mov rcx, qword [rsp + 0x240]
call fcn.1400035f8
mov eax, dword [rsp + 0x64]
jmp 0x140025f3f
xor r8d, r8d
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x180]
call fcn.14017a920
mov byte [rsp + 0x26], al
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.MSVCR120D.dll_fclose]
movzx eax, byte [rsp + 0x26]
test eax, eax
jne 0x140025828
mov dword [rsp + 0x70], 0
lea rcx, [rsp + 0x30]
call fcn.1400053e9
nop
lea rcx, [rsp + 0x180]
call fcn.14000309e
nop
lea rcx, [rsp + 0x98]
call fcn.140004179
nop
mov rcx, qword [rsp + 0x240]
call fcn.1400035f8
mov eax, dword [rsp + 0x70]
jmp 0x140025f3f
lea rdx, [0x1402177f0]
lea rcx, [rsp + 0x180]
call fcn.14000420a
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x14002588e
mov dword [rsp + 0x60], 0
lea rcx, [rsp + 0x30]
call fcn.1400053e9
nop
lea rcx, [rsp + 0x180]
call fcn.14000309e
nop
lea rcx, [rsp + 0x98]
call fcn.140004179
nop
mov rcx, qword [rsp + 0x240]
call fcn.1400035f8
mov eax, dword [rsp + 0x60]
jmp 0x140025f3f
lea rdx, [0x140217810]
mov rcx, qword [rsp + 0x48]
call fcn.14000420a
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140003d4b
lea rcx, [rsp + 0x40]
call fcn.1400054a7
test rax, rax
jne 0x140025953
mov ecx, 0x90
call sub.MSVCR120D.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x1400258f1
lea rdx, [0x140217820]
mov rcx, qword [rsp + 0x78]
call fcn.140178b10
mov qword [rsp + 0x88], rax
jmp 0x1400258fd
mov qword [rsp + 0x88], 0
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xd8], rax
mov rdx, qword [rsp + 0xd8]
lea rcx, [rsp + 0x160]
call fcn.140003d4b
lea r8, [rsp + 0x160]
lea rdx, [rsp + 0x178]
lea rcx, [rsp + 0x40]
call fcn.140002360
lea rcx, [rsp + 0x40]
call fcn.14000179e
mov rdx, rax
mov rcx, qword [rsp + 0x48]
call fcn.140177560
mov dword [rsp + 0x20], 0
jmp 0x140025967
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov qword [rsp + 0xc8], rax
mov rcx, qword [rsp + 0x240]
call fcn.140003c10
mov rcx, qword [rsp + 0xc8]
cmp rcx, rax
jae 0x140025e27
mov rax, qword [rsp + 0x230]
add rax, 0x150
xor edx, edx
mov rcx, rax
call fcn.140004dc2
add rax, 0xf8
lea rdx, [rsp + 0x1f0]
mov rcx, rax
call fcn.1400022f7
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0xe8], rax
mov eax, dword [rsp + 0x20]
mov edx, eax
mov rcx, qword [rsp + 0x240]
call fcn.140003148
mov qword [rsp + 0xb8], rax
mov rcx, qword [rsp + 0x230]
add rcx, 0x150
xor edx, edx
call fcn.140004dc2
add rax, 0xf8
mov rcx, qword [rsp + 0xb8]
mov r8, rcx
lea rdx, [rsp + 0x208]
mov rcx, rax
call fcn.140001d7f
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x158], rax
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x158]
call fcn.1400017d0
mov byte [rsp + 0x24], al
lea rcx, [rsp + 0x208]
call fcn.14000614a
nop
lea rcx, [rsp + 0x1f0]
call fcn.14000614a
movzx eax, byte [rsp + 0x24]
test eax, eax
je 0x140025a83
jmp 0x14002595d
mov ecx, 0x90
call sub.MSVCR120D.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x140025abe
lea rdx, [0x140217148]
mov rcx, qword [rsp + 0x80]
call fcn.140178b10
mov qword [rsp + 0x90], rax
jmp 0x140025aca
mov qword [rsp + 0x90], 0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0xf8], rax
mov rdx, qword [rsp + 0xf8]
lea rcx, [rsp + 0x38]
call fcn.140003d4b
mov eax, dword [rsp + 0x20]
mov edx, eax
mov rcx, qword [rsp + 0x240]
call fcn.140003148
mov rcx, rax
call fcn.140002b08
mov rdx, rax
lea rcx, [rsp + 0x98]
call fcn.1400055ec
mov qword [rsp + 0x168], rax
lea rcx, [rsp + 0x38]
call fcn.1400054a7
mov rcx, qword [rsp + 0x168]
mov r8, rcx
lea rdx, [0x140217154]
mov rcx, rax
call fcn.140178f70
mov eax, dword [rsp + 0x20]
mov edx, eax
mov rcx, qword [rsp + 0x240]
call fcn.140003148
add rax, 0x10
mov rcx, rax
call fcn.140002b08
mov rdx, rax
lea rcx, [rsp + 0x98]
call fcn.1400055ec
mov qword [rsp + 0x108], rax
lea rcx, [rsp + 0x38]
call fcn.1400054a7
mov rcx, qword [rsp + 0x108]
mov r8, rcx
lea rdx, [0x140217160]
mov rcx, rax
call fcn.140178f70
mov eax, dword [rsp + 0x20]
mov edx, eax
mov rcx, qword [rsp + 0x240]
call fcn.140003148
cmp dword [rax + 0x1c], 0
je 0x140025bd7
lea rcx, [rsp + 0x38]
call fcn.1400054a7
lea r8, [0x14021715c]
lea rdx, [0x140217170]
mov rcx, rax
call fcn.140178f70
lea rcx, [rsp + 0x38]
call fcn.14000179e
mov qword [rsp + 0x150], rax
lea rcx, [rsp + 0x40]
call fcn.1400054a7
mov rcx, qword [rsp + 0x150]
mov rdx, rcx
mov rcx, rax
call fcn.140177560
mov eax, dword [rsp + 0x20]
mov edx, eax
mov rcx, qword [rsp + 0x240]
call fcn.140003148
mov qword [rsp + 0x128], rax
mov ecx, dword [rsp + 0x20]
mov edx, ecx
mov rcx, qword [rsp + 0x240]
call fcn.140003148
mov qword [rsp + 0x140], rax
movsxd rcx, dword [rsp + 0x238]
mov rdx, qword [rsp + 0x230]
add rdx, 0x150
mov qword [rsp + 0x118], rdx
mov rdx, rcx
mov rcx, qword [rsp + 0x118]
call fcn.140004dc2
add rax, 0xf8
mov rcx, qword [rsp + 0x140]
mov rdx, rcx
mov rcx, rax
call fcn.1400057a4
mov rcx, qword [rsp + 0x128]
mov rdx, rcx
mov rcx, rax
call fcn.140004791
mov eax, dword [rsp + 0x20]
mov edx, eax
mov rcx, qword [rsp + 0x240]
call fcn.140003148
cmp dword [rax + 0x18], 0
je 0x140025e22
mov eax, dword [rsp + 0x20]
mov edx, eax
mov rcx, qword [rsp + 0x240]
call fcn.140003148
mov qword [rsp + 0xe0], rax
movsxd rcx, dword [rsp + 0x238]
mov rdx, qword [rsp + 0x230]
add rdx, 0x150
mov qword [rsp + 0xc0], rdx
mov rdx, rcx
mov rcx, qword [rsp + 0xc0]
call fcn.140004dc2
lea r8, [0x14021716c]
mov rdx, rax
lea rcx, [rsp + 0x100]
call fcn.140005506
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xe0]
mov r8, rax
mov rdx, qword [rsp + 0xf0]
lea rcx, [rsp + 0x58]
call fcn.1400054fc
nop
lea rcx, [rsp + 0x100]
call fcn.1400053e9
lea rcx, [rsp + 0x58]
call fcn.140002b08
mov qword [rsp + 0x110], rax
mov ecx, dword [rsp + 0x20]
mov edx, ecx
mov rcx, qword [rsp + 0x240]
call fcn.140003148
add rax, 8
mov rcx, rax
call fcn.140002b08
mov r8d, 1
mov rcx, qword [rsp + 0x110]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [rsp + 0x20]
mov edx, eax
mov rcx, qword [rsp + 0x240]
call fcn.140003148
mov qword [rsp + 0x130], rax
movsxd rcx, dword [rsp + 0x238]
mov rdx, qword [rsp + 0x230]
add rdx, 0x150
mov qword [rsp + 0x120], rdx
mov rdx, rcx
mov rcx, qword [rsp + 0x120]
call fcn.140004dc2
add rax, 0xf8
mov rcx, qword [rsp + 0x130]
mov rdx, rcx
mov rcx, rax
call fcn.1400057a4
add rax, 8
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.140001451
nop
lea rcx, [rsp + 0x58]
call fcn.1400053e9
jmp 0x14002595d
lea rcx, [rsp + 0x30]
call fcn.140002b08
lea r8, [0x14021717c]
mov rdx, rax
lea rcx, [rsp + 0x28]
call qword [sym.imp.MSVCR120D.dll__wfopen_s]
cmp qword [rsp + 0x28], 0
jne 0x140025e93
mov dword [rsp + 0x6c], 0
lea rcx, [rsp + 0x30]
call fcn.1400053e9
nop
lea rcx, [rsp + 0x180]
call fcn.14000309e
nop
lea rcx, [rsp + 0x98]
call fcn.140004179
nop
mov rcx, qword [rsp + 0x240]
call fcn.1400035f8
mov eax, dword [rsp + 0x6c]
jmp 0x140025f3f
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x180]
call fcn.14017aca0
mov byte [rsp + 0x25], al
movzx eax, byte [rsp + 0x25]
test eax, eax
jne 0x140025ef4
mov dword [rsp + 0x50], 0
lea rcx, [rsp + 0x30]
call fcn.1400053e9
nop
lea rcx, [rsp + 0x180]
call fcn.14000309e
nop
lea rcx, [rsp + 0x98]
call fcn.140004179
nop
mov rcx, qword [rsp + 0x240]
call fcn.1400035f8
mov eax, dword [rsp + 0x50]
jmp 0x140025f3f
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.MSVCR120D.dll_fclose]
mov dword [rsp + 0x68], 1
lea rcx, [rsp + 0x30]
call fcn.1400053e9
nop
lea rcx, [rsp + 0x180]
call fcn.14000309e
nop
lea rcx, [rsp + 0x98]
call fcn.140004179
nop
mov rcx, qword [rsp + 0x240]
call fcn.1400035f8
mov eax, dword [rsp + 0x68]
add rsp, 0x228
ret