Function at 0x1086389
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x111127c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x420], esi
mov ebx, 0x1008794
cmp esi, edi
jne 0x10863c5
push 0x100884c
push 0xc2
push ebx
call fcn.0107b4be
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x10863ca
sub eax, edx
sar eax, 1
cmp eax, 0xfd
jb 0x10863ef
push 0x1008824
push 0xc3
push ebx
call fcn.0107b4be
cmp dword [ebp + 0xc], 2
jae 0x1086405
push 0x1008814
push 0xc4
push ebx
call fcn.0107b4be
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x108642f
test byte [eax + 0x1c], 1
je 0x108642f
cmp byte [eax + 0x19], 4
jb 0x108642f
push 0x10085b8
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov ebx, 0x208
push ebx
lea eax, [ebp - 0x414]
push edi
push eax
call sub.msvcrt.dll_memset
push ebx
lea eax, [ebp - 0x20c]
push edi
push eax
call sub.msvcrt.dll_memset
push 0x10085c8
push edi
push esi
mov edi, 0x1008800
push edi
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.01025c69
add esp, 0x30
mov dword [ebp - 0x418], eax
test eax, eax
jl 0x1086662
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10864d4
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x108668c
test byte [eax + 0x1c], 1
je 0x1086667
cmp byte [eax + 0x19], 4
jb 0x1086667
lea ecx, [ebp - 0x20c]
push ecx
push 0x10085b8
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
jmp 0x1086662
push ebx
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x10085c8
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x420]
push edi
push esi
push eax
call fcn.01025c69
add esp, 0x24
mov dword [ebp - 0x418], eax
test eax, eax
jl 0x1086662
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1086558
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x108655d
test byte [eax + 0x1c], 1
je 0x108655d
cmp byte [eax + 0x19], 3
jb 0x108655d
push dword [ebp - 0x418]
lea ecx, [ebp - 0x20c]
push ecx
push 0x10085b8
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
mov eax, dword [0x111124c]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x41c], ecx
test ecx, ecx
jbe 0x1086667
jmp 0x108657a
mov edi, 0x1008800
mov esi, 0x104
mov eax, dword [ebp - 0x41c]
push 0x10085c8
dec eax
push eax
push dword [ebp - 0x420]
lea eax, [ebp - 0x414]
push edi
push esi
push eax
call fcn.01025c69
add esp, 0x18
mov dword [ebp - 0x418], eax
test eax, eax
jl 0x1086662
push 1
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x10865d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1086610
lea eax, [ebp - 0x20c]
push eax
call fcn.010860a4
push ebx
lea eax, [ebp - 0x414]
push 0
mov ecx, 0x82
lea esi, [ebp - 0x414]
lea edi, [ebp - 0x20c]
push eax
rep movsd dword es:[edi], dword [esi]
call sub.msvcrt.dll_memset
add esp, 0xc
dec dword [ebp - 0x41c]
jne 0x1086570
jmp 0x1086662
test eax, eax
jle 0x108661e
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x418], eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x108668c
test byte [eax + 0x1c], 1
je 0x1086667
cmp byte [eax + 0x19], 3
jb 0x1086667
push dword [ebp - 0x418]
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x414]
push ecx
push 0x10085b8
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019a40
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x108668c
test byte [eax + 0x1c], 1
je 0x108668c
cmp byte [eax + 0x19], 4
jb 0x108668c
push 0x10085b8
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f5f8
leave
ret 8