Function at 0x100fac5c
Capabilities:
Delete file
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x101a4c2c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
inc ebx
cmp dword [ebp + 0xc], 3
push esi
mov dword [ebp - 0x10], ebx
jne 0x100faee2
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x100faee2
cmp dword [esi + 0x10], 0
je 0x100faee2
mov eax, dword [ebp + 8]
dec eax
push edi
sub eax, ebx
jne 0x100fadb4
cmp dword [esi], 4
jae 0x100fadb4
mov ecx, esi
xor edi, edi
call fcn.10112fbe
mov ecx, dword [esi + 0x10]
mov edx, eax
call fcn.1010b4d0
mov dword [ebp - 0x18], eax
test eax, eax
je 0x100fae20
push edi
mov ecx, eax
call fcn.1010b537
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x100fae1e
mov ecx, dword [edi + 0x2c]
lea eax, [ecx + edi]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x100fae20
mov eax, dword [ecx + 0x134]
test eax, eax
je 0x100fad04
mov edi, dword [ecx + 0x138]
add edi, eax
jmp 0x100fad06
xor edi, edi
test edi, edi
je 0x100fad92
push 0x2e
push edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov dword [ebp - 0x14], eax
pop ecx
pop ecx
test eax, eax
je 0x100fad92
mov ecx, dword [esi + 0x10]
and dword [ebp - 0xc], 0
call fcn.1010d8e3
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x100fad71
and dword [ebp - 0xc], 0
lea ecx, [ebp - 0xc]
push eax
mov edx, edi
call fcn.1010c9ae
mov edi, dword [ebp - 0xc]
test eax, eax
je 0x100fad74
mov edx, dword [ebp - 0x14]
mov ecx, edi
push 0x10024f08
call fcn.100dc84c
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100fad79
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x100fad79
mov edi, dword [ebp - 0xc]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100fad87
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x100fad92
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [ebp - 8]
test edi, edi
je 0x100fada0
mov ecx, edi
call fcn.1010b565
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x100fadac
call fcn.1010b509
test ebx, ebx
je 0x100fae93
mov edx, dword [esi + 0x14]
push esi
call fcn.10110158
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x100fae89
push 1
mov edx, ebx
xor ecx, ecx
call fcn.101105a7
test eax, eax
je 0x100fae7f
mov eax, dword [ebx + 4]
lea edi, [ebx + 0x14]
test eax, eax
je 0x100fae73
mov ebx, dword [ebp - 0x10]
dec eax
cmp dword [edi + 0x10], 0
mov dword [ebp - 8], eax
je 0x100fae66
cmp dword [edi + 0x24], 0
je 0x100fae2a
push dword [ebp + 0x14]
mov edx, dword [ebp + 8]
mov ecx, edi
push esi
push 3
call fcn.100d8a93
cmp eax, 0x80004001
je 0x100fae63
xor ebx, ebx
test eax, eax
setns bl
jmp 0x100fae63
mov edi, eax
xor ebx, ebx
mov dword [ebp - 0x10], ebx
jmp 0x100fad95
test byte [edi + 0x3d], 0x20
je 0x100fae35
mov ecx, dword [edi + 0x74]
jmp 0x100fae44
push 0xd
pop edx
mov ecx, edi
call fcn.10110711
mov ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x100fae66
push dword [ebp + 0x14]
push esi
push 3
push dword [ebp + 8]
call dword [0x101a77c4]
call dword [ebp - 0xc]
neg eax
sbb eax, eax
and ebx, eax
mov eax, dword [ebp - 8]
add edi, 0x78
test eax, eax
jne 0x100fadee
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x18]
xor edx, edx
mov ecx, ebx
inc edx
call fcn.1011056a
jmp 0x100fae8d
xor edx, edx
mov ecx, ebx
inc edx
call fcn.1011056a
and dword [ebp - 0x10], 0
cmp dword [ebp + 8], 2
jne 0x100faedc
cmp dword [esi], 4
jae 0x100faedc
mov eax, dword [0x10007c10]
mov ebx, 0x10007c10
jmp 0x100faed8
push dword [ebx + 4]
mov ecx, dword [esi + 0x10]
mov edx, eax
call fcn.100dc84c
mov edi, eax
test edi, edi
je 0x100faed3
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100faecc
push 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
add ebx, 8
mov eax, dword [ebx]
test eax, eax
jne 0x100faea4
mov eax, dword [ebp - 0x10]
pop edi
jmp 0x100faee4
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10166ce0
mov esp, ebp
pop ebp
ret 0x10