Function at 0x100db0dd
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 0x100db355
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x100db355
cmp dword [esi + 0x10], 0
je 0x100db355
mov eax, dword [ebp + 8]
dec eax
push edi
sub eax, ebx
jne 0x100db227
cmp dword [esi], 4
jae 0x100db227
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 0x100db293
push edi
mov ecx, eax
call fcn.1010978e
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x100db291
mov ecx, dword [edi + 0x2c]
lea eax, [ecx + edi]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x100db293
mov eax, dword [ecx + 0x134]
test eax, eax
je 0x100db17b
mov edi, dword [ecx + 0x138]
add edi, eax
jmp 0x100db17d
xor edi, edi
test edi, edi
je 0x100db205
push 0x2e
push edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov dword [ebp - 0x10], eax
pop ecx
pop ecx
test eax, eax
je 0x100db205
mov ecx, dword [esi + 0x10]
and dword [ebp - 0xc], 0
call fcn.1010badf
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100db1e4
push eax
mov edx, edi
lea ecx, [ebp - 0xc]
call fcn.1010abbc
test eax, eax
je 0x100db1e4
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 0x100db1ec
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x100db1ec
mov edi, dword [ebp - 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100db1fa
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x100db205
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [ebp - 8]
test edi, edi
je 0x100db213
mov ecx, edi
call fcn.101097ba
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x100db21f
call fcn.10109762
test ebx, ebx
je 0x100db306
mov edx, dword [esi + 0x14]
push esi
call fcn.1010e10d
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x100db2fc
push 1
mov edx, ebx
xor ecx, ecx
call fcn.1010e541
test eax, eax
je 0x100db2f2
mov eax, dword [ebx + 4]
lea edi, [ebx + 0x14]
test eax, eax
je 0x100db2e6
mov ebx, dword [ebp - 4]
dec eax
cmp dword [edi + 0x10], 0
mov dword [ebp - 8], eax
je 0x100db2d9
cmp dword [edi + 0x24], 0
je 0x100db29d
push dword [ebp + 0x14]
mov edx, dword [ebp + 8]
mov ecx, edi
push esi
push 3
call fcn.100d7369
cmp eax, 0x80004001
je 0x100db2d6
xor ebx, ebx
test eax, eax
setns bl
jmp 0x100db2d6
mov edi, eax
xor ebx, ebx
mov dword [ebp - 4], ebx
jmp 0x100db208
test byte [edi + 0x3d], 0x20
je 0x100db2a8
mov ecx, dword [edi + 0x74]
jmp 0x100db2b7
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 0x100db2d9
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 0x100db261
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 0x18]
xor edx, edx
mov ecx, ebx
inc edx
call fcn.1010e506
jmp 0x100db300
xor edx, edx
mov ecx, ebx
inc edx
call fcn.1010e506
and dword [ebp - 4], 0
cmp dword [ebp + 8], 2
jne 0x100db34f
cmp dword [esi], 4
jae 0x100db34f
mov eax, dword [0x100078b0]
mov ebx, 0x100078b0
jmp 0x100db34b
push dword [ebx + 4]
mov ecx, dword [esi + 0x10]
mov edx, eax
call fcn.100db01c
mov edi, eax
test edi, edi
je 0x100db346
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100db33f
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 0x100db317
mov eax, dword [ebp - 4]
pop edi
jmp 0x100db357
xor eax, eax
pop esi
pop ebx
leave
ret 0x10