Function at 0x101b05c
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x1025318]
cmp eax, 0x1025318
je 0x101b08b
test dword [eax + 0x1c], 0x20000000
je 0x101b08b
push 0x1003968
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100e9b8
push esi
push edi
push 1
push 0x15a
push 0x1003a74
lea ecx, [ebp - 0x48]
call fcn.0101a2c6
xor edi, edi
mov eax, 0x1004590
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov eax, 0x165
cmp dword [ebp + 8], edi
jne 0x101b0dd
mov dword [ebp - 0x48], 0x80070057
mov word [ebp - 0x42], ax
jmp 0x101b28a
mov esi, dword [ebp + 0xc]
mov word [ebp - 0x44], ax
mov eax, 0x166
cmp esi, 0x7fffffff
jae 0x101b0cd
mov word [ebp - 0x44], ax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x48], edi
call fcn.0101ac3d
mov dword [ebp - 0x48], eax
cmp eax, edi
mov eax, 0x16d
jl 0x101b0d4
mov ecx, dword [ebp - 8]
mov word [ebp - 0x44], ax
cmp ecx, edi
jne 0x101b132
add eax, 5
mov dword [ebp - 0x48], edi
mov word [ebp - 0x44], ax
jmp 0x101b28a
lea eax, [esi - 1]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
push ebx
neg eax
lea ebx, [esi - 1]
cmp ebx, eax
mov dword [ebp - 0xc], eax
jl 0x101b289
mov dword [ebp + 0xc], esi
sub dword [ebp + 0xc], ecx
mov ecx, ebx
neg ecx
mov dword [ebp - 8], ecx
mov esi, 0x1003988
mov edi, 0x1003a60
jmp 0x101b168
mov ecx, dword [ebp - 8]
cmp ebx, dword [ebp + 0xc]
jl 0x101b1c5
push esi
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.01021bdd
add esp, 0x14
mov dword [ebp - 0x48], eax
test eax, eax
mov eax, 0x181
jl 0x101b285
push dword [ebp - 0x18]
mov word [ebp - 0x44], ax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x101b248
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x101b257
mov eax, 0x185
and dword [ebp - 0x48], 0
mov word [ebp - 0x44], ax
jmp 0x101b248
test ebx, ebx
jl 0x101b1cf
mov ecx, ebx
mov eax, edi
jmp 0x101b1d4
mov eax, 0x1003a48
push esi
push ecx
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.01021bdd
add esp, 0x14
mov dword [ebp - 0x48], eax
test eax, eax
mov eax, 0x191
jl 0x101b285
push esi
push dword [ebp - 4]
mov word [ebp - 0x44], ax
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.01021bdd
add esp, 0x14
mov dword [ebp - 0x48], eax
test eax, eax
mov eax, 0x196
jl 0x101b285
push 1
push dword [ebp - 0x24]
mov word [ebp - 0x44], ax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x101b245
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x101b26f
mov eax, 0x19b
jmp 0x101b1b8
dec dword [ebp - 4]
dec ebx
inc dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jge 0x101b165
jmp 0x101b289
test eax, eax
jle 0x101b265
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x48], eax
mov eax, 0x185
jmp 0x101b285
test eax, eax
jle 0x101b27d
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x48], eax
mov eax, 0x19b
mov word [ebp - 0x42], ax
pop ebx
mov esi, dword [ebp - 0x48]
lea ecx, [ebp - 0x24]
call fcn.0102174b
lea ecx, [ebp - 0x18]
call fcn.0102174b
lea ecx, [ebp - 0x48]
call fcn.0101a59c
pop edi
mov eax, esi
pop esi
leave
ret 8