Function at 0x1086349
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 [0x111027c]
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, 0x10087a4
cmp esi, edi
jne 0x1086385
push 0x100885c
push 0xc2
push ebx
call fcn.0107b644
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x108638a
sub eax, edx
sar eax, 1
cmp eax, 0xfd
jb 0x10863af
push 0x1008834
push 0xc3
push ebx
call fcn.0107b644
cmp dword [ebp + 0xc], 2
jae 0x10863c5
push 0x1008824
push 0xc4
push ebx
call fcn.0107b644
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10863ef
test byte [eax + 0x1c], 1
je 0x10863ef
cmp byte [eax + 0x19], 4
jb 0x10863ef
push 0x10085c8
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
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 0x10085d8
push edi
push esi
mov edi, 0x1008810
push edi
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.01025c20
add esp, 0x30
mov dword [ebp - 0x418], eax
test eax, eax
jl 0x1086622
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1086494
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x108664c
test byte [eax + 0x1c], 1
je 0x1086627
cmp byte [eax + 0x19], 4
jb 0x1086627
lea ecx, [ebp - 0x20c]
push ecx
push 0x10085c8
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
jmp 0x1086622
push ebx
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x10085d8
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x420]
push edi
push esi
push eax
call fcn.01025c20
add esp, 0x24
mov dword [ebp - 0x418], eax
test eax, eax
jl 0x1086622
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1086518
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x108651d
test byte [eax + 0x1c], 1
je 0x108651d
cmp byte [eax + 0x19], 3
jb 0x108651d
push dword [ebp - 0x418]
lea ecx, [ebp - 0x20c]
push ecx
push 0x10085c8
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
mov eax, dword [0x111024c]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x41c], ecx
test ecx, ecx
jbe 0x1086627
jmp 0x108653a
mov edi, 0x1008810
mov esi, 0x104
mov eax, dword [ebp - 0x41c]
push 0x10085d8
dec eax
push eax
push dword [ebp - 0x420]
lea eax, [ebp - 0x414]
push edi
push esi
push eax
call fcn.01025c20
add esp, 0x18
mov dword [ebp - 0x418], eax
test eax, eax
jl 0x1086622
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 0x1086591
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10865d0
lea eax, [ebp - 0x20c]
push eax
call fcn.01086064
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 0x1086530
jmp 0x1086622
test eax, eax
jle 0x10865de
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x418], eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x108664c
test byte [eax + 0x1c], 1
je 0x1086627
cmp byte [eax + 0x19], 3
jb 0x1086627
push dword [ebp - 0x418]
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x414]
push ecx
push 0x10085c8
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010198ad
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x108664c
test byte [eax + 0x1c], 1
je 0x108664c
cmp byte [eax + 0x19], 4
jb 0x108664c
push 0x10085c8
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f798
leave
ret 8