Function at 0x105e60a
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x1075fb8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor esi, esi
lea eax, [ebp - 0x20a]
push esi
push eax
call sub.msvcrt.dll_memset
push 0x24c
lea eax, [ebp - 0x458]
push esi
push eax
mov dword [ebp - 0x45c], esi
call sub.msvcrt.dll_memset
add esp, 0x18
mov dword [ebp - 0x460], esi
mov eax, dword [0x1075004]
mov esi, 0x1075004
mov ebx, 0x1005484
cmp eax, esi
je 0x105e690
test byte [eax + 0x1c], 2
je 0x105e690
cmp byte [eax + 0x19], 5
jb 0x105e690
push ebx
push 0x51
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
push edi
call fcn.0105cdc5
mov edi, eax
mov dword [ebp - 0x464], edi
test edi, edi
jne 0x105e6d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105e6ce
test byte [eax + 0x1c], 2
je 0x105e6ce
cmp byte [eax + 0x19], 2
jb 0x105e6ce
push edi
push ebx
push 0x52
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
mov eax, edi
jmp 0x105e860
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x105e794
test al, 0x10
je 0x105e794
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x1005494
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x105e741
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x460], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105e84f
test byte [eax + 0x1c], 2
je 0x105e84f
cmp byte [eax + 0x19], 2
jb 0x105e84f
push dword [ebp - 0x460]
push ebx
push 0x54
jmp 0x105e844
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x105e7d7
call edi
mov dword [ebp - 0x460], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105e80d
test byte [eax + 0x1c], 2
je 0x105e80d
cmp byte [eax + 0x19], 2
jb 0x105e80d
push dword [ebp - 0x460]
push ebx
push 0x55
jmp 0x105e802
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x460], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105e84f
test byte [eax + 0x1c], 2
je 0x105e84f
cmp byte [eax + 0x19], 2
jb 0x105e84f
push dword [ebp - 0x460]
push ebx
push 0x53
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
jmp 0x105e84f
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
jne 0x105e80d
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105e80d
test byte [eax + 0x1c], 2
je 0x105e80d
cmp byte [eax + 0x19], 2
jb 0x105e80d
call edi
push eax
mov eax, dword [0x1075004]
push ebx
push 0x56
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x105e84f
call edi
mov dword [ebp - 0x460], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105e84f
test byte [eax + 0x1c], 2
je 0x105e84f
cmp byte [eax + 0x19], 2
jb 0x105e84f
push dword [ebp - 0x460]
push ebx
push 0x57
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
push dword [ebp - 0x464]
call fcn.0105c5dc
mov eax, dword [ebp - 0x460]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0105bb63
leave
ret 4