Function at 0x14000e304
Capabilities:
Copy file
Delete file
Move file

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x6c8]
sub rsp, 0x7a0
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140092690]
xor rax, rsp
mov qword [rbp + 0x690], rax
mov r14d, r9d
mov ebx, r8d
mov edi, edx
mov rsi, rcx
lea rcx, [rbp - 0x10]
call qword [sym.imp.PsRegApi.dll_public:_void___cdecl_CRegApi::constructor_void____ptr64]
nop
mov r12, 0xffffffff80000002
cmp r14d, 1
jne 0x14000e384
lea rax, str.SoftwareIntelWireless.savFolders_
mov qword [rsp + 0x20], rax
mov r9, r12
lea r8, str.SoftwareIntelWirelessFolders_
mov rdx, r12
lea rcx, [rbp - 0x10]
call qword [sym.imp.PsRegApi.dll_public:_long_int___cdecl_CRegApi::CopyKey_struct_HKEY______ptr64__char_const____ptr64__struct_HKEY______ptr64__char_const____ptr64____ptr64]
mov r15d, Ordinal_265
mov r8d, r15d
xor edx, edx
lea rcx, [rbp + 0x140]
call sub.VCRUNTIME140.dll_memset
mov r8d, r15d
xor edx, edx
lea rcx, [rbp + 0x470]
call sub.VCRUNTIME140.dll_memset
mov dword [rsi + 0x210], edi
mov dword [rsi + 0x214], ebx
mov r9d, 0x20019
lea r8, str.SoftwareIntelWirelessFolders_
mov rdx, r12
lea rcx, [rbp - 0x10]
call qword [sym.imp.PsRegApi.dll_public:_long_int___cdecl_CRegApi::OpenKey_struct_HKEY______ptr64__char_const____ptr64__unsigned_long_int____ptr64]
mov edi, r15d
test eax, eax
jne 0x14000e85c
mov r8d, r15d
xor edx, edx
lea rcx, [rbp + 0x360]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x54], edi
xor r12d, r12d
xor edx, edx
jmp 0x14000e834
lea rcx, [rbp + 0x60]
call qword [sym.imp.PsRegApi.dll_public:_void___cdecl_CRegApi::constructor_void____ptr64]
nop
lea rdx, str.SoftwareIntelWirelessFolders_
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140.dll_Ordinal_310]
nop
lea rdx, [rbp + 0x360]
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140.dll_Ordinal_1674]
mov r9d, 0x20019
mov r8, qword [rsp + 0x48]
mov rdx, 0xffffffff80000002
lea rcx, [rbp + 0x60]
call qword [sym.imp.PsRegApi.dll_public:_long_int___cdecl_CRegApi::OpenKey_struct_HKEY______ptr64__char_const____ptr64__unsigned_long_int____ptr64]
test eax, eax
jne 0x14000e814
mov r8, rdi
xor edx, edx
lea rcx, [rbp + 0x250]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x50], edi
xor r15d, r15d
xor edx, edx
jmp 0x14000e7ec
lea rcx, [rbp + 0xd0]
call qword [sym.imp.PsRegApi.dll_public:_void___cdecl_CRegApi::constructor_void____ptr64]
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc140.dll_Ordinal_300]
nop
lea rdx, [0x140067a10]
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc140.dll_Ordinal_1674]
lea rdx, [rbp + 0x250]
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc140.dll_Ordinal_1674]
mov r9d, 0x20019
mov r8, qword [rsp + 0x78]
mov rdx, 0xffffffff80000002
lea rcx, [rbp + 0xd0]
call qword [sym.imp.PsRegApi.dll_public:_long_int___cdecl_CRegApi::OpenKey_struct_HKEY______ptr64__char_const____ptr64__unsigned_long_int____ptr64]
test eax, eax
jne 0x14000e7c9
mov r8, rdi
xor edx, edx
lea rcx, [rbp + 0x580]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x78], edi
lea r9, [rbp - 0x78]
lea r8, [rbp + 0x580]
lea rdx, str.Path
lea rcx, [rbp + 0xd0]
call qword [sym.imp.PsRegApi.dll_public:_long_int___cdecl_CRegApi::QueryValue_char_const____ptr64__char____ptr64__unsigned_long_int____ptr64____ptr64]
test eax, eax
jne 0x14000e7bc
mov r8, rdi
xor edx, edx
lea rcx, [rsi + 8]
call sub.VCRUNTIME140.dll_memset
or r9, 0xffffffffffffffff
lea r8, [rbp + 0x250]
mov rdx, rdi
lea rcx, [rsi + 8]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcpy_s]
lea rbx, [rsi + 0x10c]
mov r8, rdi
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
or r9, 0xffffffffffffffff
lea r8, [rbp + 0x360]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcpy_s]
and dword [rsp + 0x30], 0
mov dword [rsp + 0x28], edi
lea rax, [rbp + 0x140]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x360]
lea r8, [rbp + 0x250]
mov edx, dword [rsi + 0x210]
mov rcx, rsi
call fcn.14000fce0
mov ebx, eax
and dword [rsp + 0x30], 0
mov dword [rsp + 0x28], edi
lea rax, [rbp + 0x470]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x360]
lea r8, [rbp + 0x250]
mov edx, dword [rsi + 0x214]
mov rcx, rsi
call fcn.14000fce0
test ebx, ebx
je 0x14000e7bc
test eax, eax
je 0x14000e7bc
lea rcx, [rbp + 0x580]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea rdx, [rbp + 0x580]
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140.dll_Ordinal_310]
nop
lea rdx, str.WLANProfiles
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140.dll_Ordinal_1674]
lea rdx, [0x140067a10]
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140.dll_Ordinal_1674]
lea rdx, str.Profiles.enc
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140.dll_Ordinal_1674]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140.dll_Ordinal_300]
nop
lea rdx, str..tmp
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140.dll_Ordinal_2416]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
lea rax, [rbp - 0x50]
mov qword [rbp - 0x68], rax
lea rax, [rbp - 0x48]
mov qword [rbp - 0x60], rax
lea rdx, [rbp + 0x470]
lea rcx, [rbp - 0x50]
call qword [sym.imp.mfc140.dll_Ordinal_310]
mov rdi, rax
lea rdx, [rbp + 0x140]
lea rcx, [rbp - 0x48]
call qword [sym.imp.mfc140.dll_Ordinal_310]
mov rbx, rax
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x40]
call qword [sym.imp.mfc140.dll_Ordinal_300]
mov r10, qword [rsi]
mov dword [rsp + 0x20], r14d
mov r9, rdi
mov r8, rbx
mov rdx, rax
mov rcx, rsi
call qword [r10 + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x58]
cmp eax, 0x17
jne 0x14000e799
lea r8d, [rax - 0x16]
mov rdx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x14000e7a0
mov ebx, 0x104
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x140]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], ebx
lea rax, [rbp + 0x140]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x360]
lea r8, [rbp + 0x250]
mov edx, dword [rsi + 0x210]
mov rcx, rsi
call fcn.14000fce0
lea rax, [rsp + 0x60]
mov qword [rbp - 0x58], rax
lea rax, [rsp + 0x68]
mov qword [rbp - 0x60], rax
lea rdx, [rbp + 0x470]
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc140.dll_Ordinal_310]
mov rdi, rax
lea rdx, [rbp + 0x140]
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc140.dll_Ordinal_310]
mov rbx, rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc140.dll_Ordinal_300]
mov r10, qword [rsi]
mov dword [rsp + 0x20], r14d
mov r9, rdi
mov r8, rbx
mov rdx, rax
mov rcx, rsi
call qword [r10 + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14000e7a0
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
mov edi, 0x104
lea rcx, [rbp + 0xd0]
call qword [sym.imp.PsRegApi.dll_public:_long_int___cdecl_CRegApi::CloseKey_void____ptr64]
inc r15d
mov dword [rsp + 0x50], edi
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
nop
lea rcx, [rbp + 0xd0]
call qword [sym.imp.PsRegApi.dll_public_virtual:_void___cdecl_CRegApi::destructor_void____ptr64]
mov edx, r15d
lea r9, [rsp + 0x50]
lea r8, [rbp + 0x250]
lea rcx, [rbp + 0x60]
call qword [sym.imp.PsRegApi.dll_public:_long_int___cdecl_CRegApi::EnumKey_unsigned_long_int__char____ptr64__unsigned_long_int____ptr64____ptr64]
test eax, eax
je 0x14000e46f
lea rcx, [rbp + 0x60]
call qword [sym.imp.PsRegApi.dll_public:_long_int___cdecl_CRegApi::CloseKey_void____ptr64]
inc r12d
mov dword [rsp + 0x54], edi
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
nop
lea rcx, [rbp + 0x60]
call qword [sym.imp.PsRegApi.dll_public_virtual:_void___cdecl_CRegApi::destructor_void____ptr64]
mov edx, r12d
lea r9, [rsp + 0x54]
lea r8, [rbp + 0x360]
lea rcx, [rbp - 0x10]
call qword [sym.imp.PsRegApi.dll_public:_long_int___cdecl_CRegApi::EnumKey_unsigned_long_int__char____ptr64__unsigned_long_int____ptr64____ptr64]
test eax, eax
je 0x14000e3fc
lea rcx, [rbp - 0x10]
call qword [sym.imp.PsRegApi.dll_public:_long_int___cdecl_CRegApi::CloseKey_void____ptr64]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x38]
call fcn.14001178c
nop
lea rcx, [rbp - 0x70]
call qword [sym.imp.mfc140.dll_Ordinal_316]
nop
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x38]
call fcn.140011d14
and dword [rsp + 0x30], 0
mov dword [rsp + 0x28], edi
lea rax, [rbp + 0x140]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsi + 0x210]
mov rcx, rsi
call fcn.14000fce0
mov ebx, eax
and dword [rsp + 0x30], 0
mov dword [rsp + 0x28], edi
lea rax, [rbp + 0x470]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsi + 0x214]
mov rcx, rsi
call fcn.14000fce0
test ebx, ebx
je 0x14000e947
test eax, eax
je 0x14000e947
lea rax, [rsp + 0x70]
mov qword [rbp - 0x58], rax
lea rax, [rsp + 0x68]
mov qword [rbp - 0x60], rax
lea rdx, [rbp + 0x470]
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc140.dll_Ordinal_310]
mov rdi, rax
lea rdx, [rbp + 0x140]
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc140.dll_Ordinal_310]
mov rbx, rax
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc140.dll_Ordinal_300]
mov r10, qword [rsi]
mov dword [rsp + 0x20], r14d
mov r9, rdi
mov r8, rbx
mov rdx, rax
mov rcx, rsi
call qword [r10 + reloc.OLEAUT32.dll_VariantClear]
mov edi, 0x104
lea rcx, [rbp - 0x80]
call qword [sym.imp.mfc140.dll_Ordinal_316]
nop
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x38]
call fcn.140011eec
cmp dword [rsi + 0x214], 2
jne 0x14000e9a8
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140.dll_Ordinal_316]
nop
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x38]
call fcn.140011e9c
mov r8d, 1
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
jmp 0x14000ea7e
mov edx, dword [rsi + 0x210]
mov rcx, rsi
cmp edx, 3
jne 0x14000e9c7
mov r8d, edi
lea rdx, [rbp + 0x140]
call fcn.14000fdf4
jmp 0x14000e9e7
and dword [rsp + 0x30], 0
mov dword [rsp + 0x28], edi
lea rax, [rbp + 0x140]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
call fcn.14000fce0
mov ebx, eax
and dword [rsp + 0x30], 0
mov dword [rsp + 0x28], edi
lea rax, [rbp + 0x470]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsi + 0x214]
mov rcx, rsi
call fcn.14000fce0
test ebx, ebx
je 0x14000ea7e
test eax, eax
je 0x14000ea7e
lea rax, [rsp + 0x70]
mov qword [rbp - 0x58], rax
lea rax, [rsp + 0x68]
mov qword [rbp - 0x60], rax
lea rdx, [rbp + 0x470]
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc140.dll_Ordinal_310]
mov rdi, rax
lea rdx, [rbp + 0x140]
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc140.dll_Ordinal_310]
mov rbx, rax
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc140.dll_Ordinal_300]
mov r10, qword [rsi]
mov dword [rsp + 0x20], r14d
mov r9, rdi
mov r8, rbx
mov rdx, rax
mov rcx, rsi
call qword [r10 + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rbp - 0x80]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
nop
lea rcx, [rbp - 0x70]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
nop
lea rcx, [rbp - 0x38]
call fcn.1400117e4
nop
lea rcx, [rbp - 0x10]
call qword [sym.imp.PsRegApi.dll_public_virtual:_void___cdecl_CRegApi::destructor_void____ptr64]
mov eax, 1
mov rcx, qword [rbp + 0x690]
xor rcx, rsp
call fcn.140059ef0
lea r11, [rsp + 0x7a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret