Function at 0x100f90fc
Capabilities:
Delete file
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
inc ebx
cmp dword [ebp + 0xc], 3
push esi
mov dword [ebp - 4], ebx
jne 0x100f9374
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x100f9374
cmp dword [esi + 0x10], 0
je 0x100f9374
mov eax, dword [ebp + 8]
dec eax
push edi
sub eax, ebx
jne 0x100f9246
cmp dword [esi], 4
jae 0x100f9246
mov ecx, esi
xor edi, edi
call fcn.10110db7
mov ecx, dword [esi + 0x10]
mov edx, eax
call fcn.1010972b
mov dword [ebp - 0x18], eax
test eax, eax
je 0x100f92b2
push edi
mov ecx, eax
call fcn.1010978e
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x100f92b0
mov ecx, dword [edi + 0x2c]
lea eax, [ecx + edi]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x100f92b2
mov eax, dword [ecx + 0x134]
test eax, eax
je 0x100f919a
mov edi, dword [ecx + 0x138]
add edi, eax
jmp 0x100f919c
xor edi, edi
test edi, edi
je 0x100f9224
push 0x2e
push edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov dword [ebp - 0x10], eax
pop ecx
pop ecx
test eax, eax
je 0x100f9224
mov ecx, dword [esi + 0x10]
and dword [ebp - 0xc], 0
call fcn.1010badf
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100f9203
push eax
mov edx, edi
lea ecx, [ebp - 0xc]
call fcn.1010abbc
test eax, eax
je 0x100f9203
mov edi, dword [ebp - 0xc]
mov ecx, edi
mov edx, dword [ebp - 0x10]
push 0x10025358
call fcn.100db01c
mov dword [ebp - 0x10], eax
test eax, eax
je 0x100f920b
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x100f920b
mov edi, dword [ebp - 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100f9219
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x100f9224
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [ebp - 8]
test edi, edi
je 0x100f9232
mov ecx, edi
call fcn.101097ba
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x100f923e
call fcn.10109762
test ebx, ebx
je 0x100f9325
mov edx, dword [esi + 0x14]
push esi
call fcn.1010e10d
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x100f931b
push 1
mov edx, ebx
xor ecx, ecx
call fcn.1010e541
test eax, eax
je 0x100f9311
mov eax, dword [ebx + 4]
lea edi, [ebx + 0x14]
test eax, eax
je 0x100f9305
mov ebx, dword [ebp - 4]
dec eax
cmp dword [edi + 0x10], 0
mov dword [ebp - 8], eax
je 0x100f92f8
cmp dword [edi + 0x24], 0
je 0x100f92bc
push dword [ebp + 0x14]
mov edx, dword [ebp + 8]
mov ecx, edi
push esi
push 3
call fcn.100d7369
cmp eax, 0x80004001
je 0x100f92f5
xor ebx, ebx
test eax, eax
setns bl
jmp 0x100f92f5
mov edi, eax
xor ebx, ebx
mov dword [ebp - 4], ebx
jmp 0x100f9227
test byte [edi + 0x3d], 0x20
je 0x100f92c7
mov ecx, dword [edi + 0x74]
jmp 0x100f92d6
push 0xd
pop edx
mov ecx, edi
call fcn.1010e691
mov ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x100f92f8
push dword [ebp + 0x14]
push esi
push 3
push dword [ebp + 8]
call dword [0x101a27b8]
call dword [ebp - 0xc]
neg eax
sbb eax, eax
and ebx, eax
mov eax, dword [ebp - 8]
add edi, 0x78
test eax, eax
jne 0x100f9280
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 0x18]
xor edx, edx
mov ecx, ebx
inc edx
call fcn.1010e506
jmp 0x100f931f
xor edx, edx
mov ecx, ebx
inc edx
call fcn.1010e506
and dword [ebp - 4], 0
cmp dword [ebp + 8], 2
jne 0x100f936e
cmp dword [esi], 4
jae 0x100f936e
mov eax, dword [0x10007af0]
mov ebx, 0x10007af0
jmp 0x100f936a
push dword [ebx + 4]
mov ecx, dword [esi + 0x10]
mov edx, eax
call fcn.100db01c
mov edi, eax
test edi, edi
je 0x100f9365
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100f935e
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 0x100f9336
mov eax, dword [ebp - 4]
pop edi
jmp 0x100f9376
xor eax, eax
pop esi
pop ebx
leave
ret 0x10