Function at 0x105e24a
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 0x105e2d0
test byte [eax + 0x1c], 2
je 0x105e2d0
cmp byte [eax + 0x19], 5
jb 0x105e2d0
push ebx
push 0x51
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
push edi
call fcn.0105ca05
mov edi, eax
mov dword [ebp - 0x464], edi
test edi, edi
jne 0x105e315
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105e30e
test byte [eax + 0x1c], 2
je 0x105e30e
cmp byte [eax + 0x19], 2
jb 0x105e30e
push edi
push ebx
push 0x52
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
mov eax, edi
jmp 0x105e4a0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x105e3d4
test al, 0x10
je 0x105e3d4
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x1005494
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x105e381
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x460], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105e48f
test byte [eax + 0x1c], 2
je 0x105e48f
cmp byte [eax + 0x19], 2
jb 0x105e48f
push dword [ebp - 0x460]
push ebx
push 0x54
jmp 0x105e484
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 0x105e417
call edi
mov dword [ebp - 0x460], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105e44d
test byte [eax + 0x1c], 2
je 0x105e44d
cmp byte [eax + 0x19], 2
jb 0x105e44d
push dword [ebp - 0x460]
push ebx
push 0x55
jmp 0x105e442
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x460], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105e48f
test byte [eax + 0x1c], 2
je 0x105e48f
cmp byte [eax + 0x19], 2
jb 0x105e48f
push dword [ebp - 0x460]
push ebx
push 0x53
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
jmp 0x105e48f
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
jne 0x105e44d
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105e44d
test byte [eax + 0x1c], 2
je 0x105e44d
cmp byte [eax + 0x19], 2
jb 0x105e44d
call edi
push eax
mov eax, dword [0x1075004]
push ebx
push 0x56
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x105e48f
call edi
mov dword [ebp - 0x460], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105e48f
test byte [eax + 0x1c], 2
je 0x105e48f
cmp byte [eax + 0x19], 2
jb 0x105e48f
push dword [ebp - 0x460]
push ebx
push 0x57
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
push dword [ebp - 0x464]
call fcn.0105c21c
mov eax, dword [ebp - 0x460]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0105b7af
leave
ret 4