Function at 0x1400166ea
Capabilities:
Create directory
Move file

Disassembly:
jmp 0x1400251f0
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
mov eax, 0x14d8
call fcn.14001622b
sub rsp, rax
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x3aa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x14f8]
mov rax, qword [0x140073348]
xor rax, rbp
mov qword [rbp + 0x1498], rax
lea rcx, [0x14007cdd2]
call fcn.140016b68
mov dword [rbp + 4], 0xc0000022
mov qword [rbp + 0xd78], 0
mov qword [rbp + 0xde8], 0
mov dword [rbp + 0xe24], 0
mov dword [rbp + 0xe44], 0
mov rax, qword [0x140073c18]
cmp dword [rax + 8], 0x23f0
jae 0x140025290
mov dword [rbp + 0x1494], 1
jmp 0x14002529a
mov dword [rbp + 0x1494], 0
mov eax, dword [rbp + 0x1494]
mov dword [rbp + 0xe64], eax
mov rax, qword [0x140073c18]
add rax, 0x68
mov rdx, rax
lea rcx, [rbp + 0x8b0]
call fcn.1400161f9
lea rdx, str.assemblyNativeImages_
lea rcx, [rbp + 0x8b0]
call fcn.140016af0
cmp dword [rbp + 0xe64], 0
je 0x1400252f1
lea rdx, str.v2.0.50727
lea rcx, [rbp + 0x8b0]
call fcn.140016af0
jmp 0x140025304
lea rdx, str.v4.0.30319
lea rcx, [rbp + 0x8b0]
call fcn.140016af0
lea rdx, [0x14004d608]
lea rcx, [rbp + 0x8b0]
call fcn.140016af0
xor r9d, r9d
lea r8, [rbp + 0xe08]
lea rdx, [rbp + 0xde8]
lea rcx, [0x14004ddd8]
call fcn.140016753
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jge 0x140025348
mov eax, dword [rbp + 0x24]
mov dword [rbp + 4], eax
jmp 0x1400255c8
mov edx, 0x80
lea rcx, [rbp + 0xce0]
call fcn.140016825
mov edx, InitCommonControls
lea rcx, [rbp + 0xdb8]
call fcn.140016825
lea rdx, [rbp + 0xdb8]
lea rcx, [0x14004ddd8]
call fcn.140016aaa
test eax, eax
jne 0x140025386
jmp 0x1400255c8
lea r8, [rbp + 0xce0]
mov edx, InitCommonControls
lea rcx, [rbp + 0xdb8]
call fcn.140016974
lea r9, [rbp + 0xd78]
mov r8d, 1
mov edx, 4
lea rcx, [rbp + 0x8b0]
call fcn.140016c4e
test eax, eax
jne 0x1400253c5
jmp 0x1400255c8
lea r9, str.D:PAI_A_OICI_FA___WD_
mov r8d, 1
mov edx, 4
lea rcx, [rbp + 0x8b0]
call fcn.140016c49
test eax, eax
jne 0x1400253ec
jmp 0x1400255c8
mov dword [rbp + 0xe24], 1
lea rdx, [rbp + 0x8b0]
lea rcx, [rbp + 0x50]
call fcn.1400161f9
lea rdx, str.MMCEx
lea rcx, [rbp + 0x50]
call fcn.140016af0
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x480]
call fcn.1400161f9
lea rdx, [0x14004de30]
lea rcx, [rbp + 0x480]
call fcn.140016af0
mov r8d, 9
lea rdx, [rbp + 0x480]
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x140025459
jmp 0x1400255c8
mov dword [rbp + 0xe44], 1
xor edx, edx
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140025485
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140025485
jmp 0x1400255c8
lea rcx, [rbp + 0x50]
call fcn.140016122
lea rdx, [rbp + 0xce0]
lea rcx, [rbp + 0x50]
call fcn.140016af0
xor edx, edx
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400254c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1400254c0
jmp 0x1400255c8
lea rcx, [rbp + 0x50]
call fcn.140016122
lea rcx, [rbp + 0x50]
call fcn.1400162a3
mov qword [rbp + 0xd98], rax
lea rdx, str.MMCEx.ni.dll
lea rcx, [rbp + 0x50]
call fcn.140016af0
mov r8d, dword [rbp + 0x14c8]
mov rdx, qword [rbp + 0x14c0]
lea rcx, [rbp + 0x50]
call fcn.14001612c
test eax, eax
jne 0x140025509
jmp 0x1400255c8
mov rax, qword [rbp + 0xd98]
shl rax, 1
mov qword [rbp + 0x1488], rax
cmp qword [rbp + 0x1488], 0x410
jae 0x140025529
jmp 0x14002552e
call fcn.140016857
xor eax, eax
mov rcx, qword [rbp + 0x1488]
mov word [rbp + rcx + 0x50], ax
lea rdx, str.MMCEx.ni.dll.aux
lea rcx, [rbp + 0x50]
call fcn.140016af0
mov r8d, dword [rbp + 0xe08]
mov rdx, qword [rbp + 0xde8]
lea rcx, [rbp + 0x50]
call fcn.14001612c
test eax, eax
jne 0x140025569
jmp 0x1400255c8
mov rax, qword [0x140073c18]
add rax, 0x272
mov rdx, rax
lea rcx, [rbp + 0x50]
call fcn.1400161f9
lea rdx, str.mmc.exe
lea rcx, [rbp + 0x50]
call fcn.140016af0
mov dword [rsp + 0x20], 0x2ee0
mov r9d, 5
xor r8d, r8d
lea rdx, str.wf.msc
lea rcx, [rbp + 0x50]
call fcn.14001689d
test eax, eax
je 0x1400255be
mov dword [rbp + 4], 0
xor eax, eax
test eax, eax
jne 0x1400252a6
cmp dword [rbp + 0xe44], 0
je 0x140025647
lea rdx, [rbp + 0x8b0]
lea rcx, [rbp + 0x50]
call fcn.1400161f9
lea rdx, str.MMCEx
lea rcx, [rbp + 0x50]
call fcn.140016af0
lea rcx, [rbp + 0x50]
call fcn.140016a69
lea rdx, [0x14004de30]
lea rcx, [rbp + 0x50]
call fcn.140016af0
lea rdx, [rbp + 0x8b0]
lea rcx, [rbp + 0x480]
call fcn.1400161f9
lea rdx, str.MMCEx
lea rcx, [rbp + 0x480]
call fcn.140016af0
mov r8d, 9
lea rdx, [rbp + 0x480]
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp qword [rbp + 0xd78], 0
je 0x140025685
cmp dword [rbp + 0xe24], 0
je 0x140025678
mov r9, qword [rbp + 0xd78]
mov r8d, 1
mov edx, 4
lea rcx, [rbp + 0x8b0]
call fcn.140016c49
mov rcx, qword [rbp + 0xd78]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
cmp qword [rbp + 0xde8], 0
je 0x14002569b
mov rcx, qword [rbp + 0xde8]
call fcn.140016c1c
cmp dword [rbp + 4], 0
jge 0x1400256a6
call fcn.14001615e
mov eax, dword [rbp + 4]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.OLEAUT32.dll_VariantClear
call fcn.1400169a6
mov rax, rdi
mov rcx, qword [rbp + 0x1498]
xor rcx, rbp
call fcn.1400165b9
lea rsp, [rbp + 0x14a8]
pop rdi
pop rbp
ret