Function at 0x4166d1
Capabilities:
Get file attributes
Move file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0x10]
sub esp, 0x34c
push ebx
push esi
xor ebx, ebx
push edi
test eax, eax
je 0x4166ee
mov dword [eax], ebx
mov dword [eax + 4], ebx
push 0x20
pop ecx
mov dword [esp + 0x54], ebx
call fcn.00436b3a
push 0x498824
lea ecx, [esp + 0x30]
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 8]
add eax, 4
mov edx, eax
mov dword [esp + 0x80], eax
call fcn.0043ab55
mov esi, dword [esp + 0x30]
lea eax, [esp + 0x3c]
pop ecx
push ebx
push ebx
push eax
push esi
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
je 0x416f5f
push 0x4021
lea eax, [esp + 0x3c]
mov dword [esp + 0x84], 0x18
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x9c]
push 7
push eax
lea eax, [esp + 0x8c]
mov dword [esp + 0x90], ebx
push eax
push 0x100001
lea eax, [esp + 0x3c]
mov dword [esp + 0xa0], 0x40
push eax
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov edi, eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
test edi, edi
jne 0x416f5f
lea eax, [esp + 0x154]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x84], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x88], eax
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
add dword [esp + 0x30], 0xd71bc000
lea eax, [esp + 0x110]
push ebx
adc dword [esp + 0x38], 0xfffffa7f
push ebx
push 0xff
push 2
push 0x248
push eax
lea eax, [esp + 0xb0]
mov dword [esp + 0x24], ebx
push eax
push ebx
push ebx
push ebx
push dword [esp + 0x50]
call dword [sym.imp.ntdll.dll_ZwQueryDirectoryFile]
mov edi, 0x4c7
jmp 0x4169bf
test byte [esp + 0x148], 0x10
je 0x416994
mov edi, dword [esp + 0x14c]
lea ecx, [esp + 0x154]
mov edx, edi
call fcn.0044bd57
test al, al
jne 0x41698f
test dword [esp + 0x148], 0x400
je 0x41687c
test dword [esp + 0x150], 0x20000000
jne 0x41698f
test dword [esp + 0x148], 0x1100
jne 0x41698f
cmp word [esp + 0x154], 0x24
je 0x41698f
mov eax, edi
sub eax, 8
je 0x4168ce
dec eax
sub eax, 1
je 0x4168c5
sub eax, 6
je 0x4168bc
sub eax, 0x22
jne 0x4168eb
push 0x19
push str.System_Volume_Information
jmp 0x4168d5
push 8
push str.Recovery
jmp 0x4168d5
push 5
push str.Users
jmp 0x4168d5
push 4
push str.Boot
lea eax, [esp + 0x15c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x41698f
mov eax, dword [esp + 0x14c]
sub esp, 0x18
mov word [esp + 0x52], ax
mov word [esp + 0x50], ax
mov ebx, dword [esi - 0xc]
lea esi, [esp + 0x98]
push 6
pop ecx
mov edi, esp
movzx eax, ax
push dword [esp + 0x4c]
rep movsd dword es:[edi], dword [esi]
push dword [esp + 0x4c]
shr eax, 1
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ecx
mov esi, esp
lea ecx, [esp + 0x3c]
push 0x498824
push eax
push dword [esp + 0x70]
call fcn.0043a92d
push eax
lea edx, [esp + 0x60]
lea ecx, [esp + 0x4c]
call fcn.00431007
pop ecx
mov edx, eax
mov ecx, esi
call fcn.0043ab55
pop ecx
lea edx, [esp + 0x7c]
mov ecx, ebx
call fcn.004161d2
mov ecx, dword [esp + 0x44]
add esp, 0x2c
mov ebx, eax
add ecx, 0xfffffff0
mov dword [esp + 0xc], ebx
call fcn.0043c924
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.0043c924
mov edi, 0x4c7
cmp ebx, edi
je 0x4169c9
mov esi, dword [esp + 0x2c]
xor ebx, ebx
jmp 0x416994
mov edi, 0x4c7
push ebx
push ebx
push 0xff
push 2
push 0x248
lea eax, [esp + 0x124]
push eax
lea eax, [esp + 0xb0]
push eax
push ebx
push ebx
push ebx
push dword [esp + 0x50]
call dword [sym.imp.ntdll.dll_ZwQueryDirectoryFile]
test eax, eax
je 0x416833
jmp 0x4169cb
xor ebx, ebx
push dword [esp + 0x28]
call dword [sym.imp.ntdll.dll_NtClose]
cmp dword [esp + 0xc], edi
je 0x416f61
call fcn.0043c5cd
push eax
lea ecx, [esp + 0xc4]
call fcn.0043ac50
mov esi, dword [esp + 0x50]
mov ecx, ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x58], ebx
mov esi, dword [esi]
mov eax, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0xc], eax
cmp byte [eax + 0xd], 0
jne 0x416a3f
mov esi, ebx
mov ecx, dword [eax + 0x18]
sub ecx, dword [eax + 0x14]
sar ecx, 2
add esi, ecx
lea ecx, [esp + 0xc]
call fcn.0042f6ed
mov eax, dword [esp + 0xc]
cmp byte [eax + 0xd], 0
je 0x416a17
mov dword [esp + 0x58], esi
mov ecx, ebx
mov esi, dword [esp + 0x18]
mov dword [esp + 0x18], esi
jmp 0x416f44
mov eax, dword [esi + 0x18]
sub eax, dword [esi + 0x14]
and eax, 0xfffffffc
cmp eax, 4
jne 0x416a60
inc ecx
mov dword [esp + 0x1c], ecx
jmp 0x416f33
push 0x18
pop ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.00436b3a
push 0x30
pop ecx
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esp + 0x48], eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call fcn.00436b3a
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov ecx, dword [esi + 0x18]
mov edi, dword [esi + 0x14]
mov dword [esp + 0x40], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x14], edi
cmp edi, ecx
je 0x416f0f
mov eax, dword [esp + 0x1c]
imul ecx, eax, 0x64
inc eax
add ecx, 0x64
cmp dword [ebp + 0x14], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x64], ecx
je 0x416af6
mov eax, ecx
xor edx, edx
div dword [esp + 0x58]
push dword [ebp + 0x18]
push ebx
push eax
push 0x9478
call dword [ebp + 0x14]
push dword [ebp + 0x18]
push ebx
push dword [edi]
push 0x9479
call dword [ebp + 0x14]
mov ecx, dword [edi]
lea eax, [esp + 0xb8]
push eax
lea edx, [esp + 0xfc]
call fcn.0044bda2
test eax, eax
jne 0x416ef2
lea eax, [esp + 0xb8]
push eax
lea eax, [esp + 0xe8]
push eax
lea ecx, [esp + 0x50]
call fcn.00435451
mov eax, dword [esp + 0xec]
mov dword [esp + 0x10], eax
cmp byte [eax + 0xd], 0
jne 0x416b57
add eax, 0x10
push eax
lea eax, [esp + 0xbc]
push eax
call fcn.00435da7
test al, al
mov eax, dword [esp + 0x10]
je 0x416b5b
mov eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x48]
jne 0x416ef2
mov ecx, dword [edi]
lea eax, [esp + 0xa8]
push 0x10
push eax
mov edx, 0x8003
call fcn.0044b192
pop ecx
pop ecx
test eax, eax
jne 0x416ef2
push edi
lea ecx, [esp + 0xc4]
call fcn.0043b599
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
call fcn.00434d90
cmp byte [esp + 0x24], 0
je 0x416bcd
lea eax, [esp + 0xb8]
push eax
lea eax, [esp + 0xf4]
push eax
lea ecx, [esp + 0x50]
call fcn.00434cfa
jmp 0x416ef2
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x20]
cmp eax, dword [esp + 0xb8]
jne 0x416bed
mov eax, dword [ecx + 0x24]
cmp eax, dword [esp + 0xbc]
je 0x416ef2
mov edx, dword [edi]
mov ecx, dword [ecx + 0x28]
call fcn.00416511
test al, al
je 0x416ef2
cmp dword [ebp + 0x14], 0
je 0x416c13
push dword [ebp + 0x18]
push dword [edi]
push ebx
push 0x9089
call dword [ebp + 0x14]
push dword [edi]
mov eax, dword [esp + 0x24]
push dword [eax + 0x28]
lea eax, [esp + 0x70]
push 0x492ecc
push eax
call fcn.00449eea
add esp, 0x10
push dword [eax]
push 0x492ee0
push 4
call dword [sym.imp.CBSHost.dll_DismWriteLog]
mov ecx, dword [esp + 0x68]
lea ecx, [ecx - 0x10]
call fcn.0043c924
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x416ee1
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x28]
call fcn.0044ca36
test eax, eax
je 0x416c83
mov ecx, dword [edi]
call fcn.0044ca36
test eax, eax
jne 0x416c83
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x28]
call fcn.0044ca9c
test eax, eax
jne 0x416ef2
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x28]
call fcn.0044c45b
mov ecx, dword [edi]
mov dword [esp + 0x10], eax
call fcn.0044c45b
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], eax
cmp ecx, 0xffffffff
je 0x416ef2
cmp eax, 0xffffffff
je 0x416ef2
test al, 1
je 0x416d4c
push ebx
push ebx
lea eax, [esp + 0xa8]
push eax
push dword [edi]
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
jne 0x416cda
call dword [sym.imp.ntdll.dll_RtlGetLastNtStatus]
jmp 0x416d3c
mov edx, dword [esp + 0xc]
lea eax, [esp + 0xa0]
xor edx, 1
mov dword [esp + 0xc8], 0x18
lea ecx, [esp + 0xc8]
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], 0x40
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xdc], ebx
call fcn.0044c401
mov dword [esp + 0x6c], eax
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x416ef2
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
bt ecx, 0xb
jae 0x416e32
bt eax, 0xb
jb 0x416e32
mov eax, dword [esp + 0x20]
push ebx
push 0x2000000
push 3
push ebx
push ebx
push 0xc0000000
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
jne 0x416dcd
call fcn.0044bc4b
push eax
mov eax, dword [esp + 0x24]
push dword [eax + 0x28]
lea eax, [esp + 0x78]
push 0x492eec
push eax
call fcn.00449eea
add esp, 0x10
push dword [eax]
push 0x492ee0
push 4
call dword [sym.imp.CBSHost.dll_DismWriteLog]
mov ecx, dword [esp + 0x70]
lea ecx, [ecx - 0x10]
call fcn.0043c924
lea ecx, [esp + 0xc]
call fcn.0043ab9a
jmp 0x416ef2
push ebx
lea ecx, [esp + 0xe4]
push ecx
push ebx
push ebx
push 4
lea ecx, [esp + 0x88]
push ecx
push 0x9c040
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x416e29
call fcn.0044bc4b
push eax
mov eax, dword [esp + 0x24]
push dword [eax + 0x28]
lea eax, [esp + 0x80]
push str._s_NTFS
push eax
call fcn.00449eea
add esp, 0x10
push dword [eax]
push 0x492ee0
push 4
call dword [sym.imp.CBSHost.dll_DismWriteLog]
mov ecx, dword [esp + 0x78]
jmp 0x416db7
lea ecx, [esp + 0xc]
call fcn.0043ab9a
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.0043baa0
add eax, 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x7c]
push str._HardLinkBackup
mov eax, dword [eax]
push dword [eax - 0xc]
call fcn.004312e7
mov edi, dword [esp + 0x10]
mov ecx, edi
call fcn.0044b4fa
test eax, eax
je 0x416e77
lea ecx, [edi - 0x10]
call fcn.0043c924
mov edi, dword [esp + 0x14]
jmp 0x416ef2
mov eax, dword [esp + 0x14]
push 0x10
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [esp + 0x14]
push 0x11
push dword [eax]
mov eax, dword [esp + 0x28]
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x416e69
call fcn.0044bc4b
push eax
mov eax, dword [esp + 0x18]
push dword [eax]
mov eax, dword [esp + 0x28]
push dword [eax + 0x28]
lea eax, [esp + 0x68]
push 0x492f9c
push eax
call fcn.00449eea
add esp, 0x14
push dword [eax]
push 0x492ee0
push 4
call dword [sym.imp.CBSHost.dll_DismWriteLog]
mov ecx, dword [esp + 0x5c]
lea ecx, [ecx - 0x10]
call fcn.0043c924
jmp 0x416e69
mov eax, dword [esi + 0x10]
xor edx, edx
div dword [esp + 0x108]
add dword [ecx], eax
adc dword [ecx + 4], ebx
mov eax, dword [esp + 0x1c]
add edi, 4
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x14], edi
cmp edi, dword [esp + 0x60]
jne 0x416ac1
mov eax, dword [esp + 0x40]
push dword [eax + 4]
lea eax, [esp + 0x44]
push eax
mov ecx, eax
call fcn.004355e2
mov ecx, dword [esp + 0x40]
push 0x30
pop edx
call fcn.0043a508
lea ecx, [esp + 0x48]
call fcn.0042fcd7
lea ecx, [esp + 0x18]
call fcn.0042f6ed
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
cmp byte [esi + 0xd], 0
je 0x416a48
mov ecx, dword [esp + 0xc0]
lea ecx, [ecx - 0x10]
call fcn.0043c924
jmp 0x416f63
mov edi, ebx
mov ebx, edi
mov ecx, dword [esp + 0x2c]
lea ecx, [ecx - 0x10]
call fcn.0043c924
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0x50]
push dword [ecx + 4]
mov ecx, eax
push eax
call fcn.00435626
mov ecx, dword [esp + 0x50]
push 0x20
pop edx
call fcn.0043a508
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x14