Function at 0x10057fc0
Capabilities:
Check if file exists
Delete file
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ddd23
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x1010e07c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [edi + 4]
push eax
mov dword [ebp - 0x2b8], edi
mov byte [edi], 0
mov dword [ebp - 0x2ac], eax
call fcn.1006a600
mov dword [ebp - 4], 1
xor ebx, ebx
mov esi, 0xf
mov dword [edi + 0x3c], esi
mov dword [edi + 0x38], ebx
mov byte [edi + 0x28], bl
mov byte [ebp - 4], 2
lea eax, [edi + 0x48]
push eax
call fcn.10059620
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2b0]
push ecx
call fcn.100b6a9e
mov edx, dword [ebp - 0x2b0]
mov eax, dword [ebp - 0x2ac]
add esp, 4
mov dword [edi + 0xf0], edx
mov dword [edi + 0xf4], eax
cmp byte [edi], bl
jne 0x10058507
push 2
push 0x100f4c40
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x278], ebx
mov byte [ebp - 0x288], bl
call fcn.100065d0
mov byte [ebp - 4], 5
push 7
push 0x100f4c44
lea ecx, [ebp - 0x288]
call fcn.10005a60
push str.debug.txt
lea ecx, [ebp - 0x288]
push ecx
lea edx, [ebp - 0x26c]
push edx
call fcn.10059a40
add esp, 0xc
mov byte [ebp - 4], 6
cmp dword [ebp - 0x258], 0x10
mov eax, dword [ebp - 0x26c]
jae 0x100580cd
lea eax, [ebp - 0x26c]
push ebx
push ebx
push 2
push ebx
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100582ad
mov dword [ebp - 0x2b4], ebx
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, esi
je 0x10058109
lea ecx, [ebp - 0x2b4]
push ecx
push eax
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
cmp dword [ebp - 0x2b4], ebx
je 0x100582ad
xor edx, edx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], dx
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x2b4]
lea eax, [ebp - 0x2ac]
push eax
push ebx
push ecx
push 5
push ebx
mov dword [ebp - 0x2ac], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
cmp eax, ebx
jl 0x100581ad
mov esi, dword [ebp - 0x2ac]
cmp esi, ebx
je 0x100581ad
push 0x206
lea eax, [ebp - 0x216]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x218], dx
call fcn.100b2ed0
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x100581a0
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x234]
call fcn.1000b820
mov eax, dword [ebp - 0x2ac]
push eax
call dword [sym.imp.SHELL32.dll_ILFree]
push str._fxlog_
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x250]
push edx
call fcn.1000f300
add esp, 0xc
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 8
jb 0x100581d6
mov ebx, dword [eax]
jmp 0x100581d8
mov ebx, eax
test ebx, ebx
jne 0x100581e0
xor eax, eax
jmp 0x10058209
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x100581f3
xor eax, eax
jmp 0x10058209
lea esi, [eax + eax]
mov eax, esi
call fcn.100b52c0
mov eax, esp
push 3
push esi
push ebx
push eax
call fcn.100082f0
mov ecx, eax
lea esi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x10058210
sub ecx, esi
push ecx
push eax
lea ecx, [ebp - 0x288]
call fcn.100065d0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x250]
call fcn.100041b0
push str.debug.txt
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x250]
push ecx
call fcn.10059a40
add esp, 0xc
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x26c]
call fcn.100058f0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x250]
call fcn.10003930
cmp dword [ebp - 0x258], 0x10
mov eax, dword [ebp - 0x26c]
jae 0x10058284
lea eax, [ebp - 0x26c]
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x234]
call fcn.100041b0
xor ebx, ebx
lea ecx, [ebp - 0x250]
call fcn.100654f0
mov byte [ebp - 4], 0xa
push eax
lea edx, [ebp - 0x2a4]
push edx
call fcn.1005ec60
add esp, 8
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x23c], 8
jb 0x100582e8
mov eax, dword [ebp - 0x250]
push eax
call fcn.100b2678
add esp, 4
xor ecx, ecx
mov eax, 7
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], cx
cmp esi, 0xffffffff
je 0x10058399
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x26c]
mov esi, 0x10
cmp dword [ebp - 0x258], esi
jae 0x1005832b
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [ebp - 0x2a4]
push edx
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x250]
push ecx
call fcn.10059b10
add esp, 0xc
mov byte [ebp - 4], 0xd
push 3
push 3
push 3
push 0x15
push eax
call fcn.100585a0
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x23c], esi
jb 0x1005837c
mov edx, dword [ebp - 0x250]
push edx
call fcn.100b2678
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x240], ebx
mov byte [ebp - 0x250], 0
jmp 0x1005847a
mov dword [ebp - 0x220], eax
push 2
xor eax, eax
push 0x100f4c68
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], ax
call fcn.10006a20
mov byte [ebp - 4], 0xe
push 6
push str._fxlog
lea ecx, [ebp - 0x234]
call fcn.1000cbb0
cmp dword [ebp - 0x224], ebx
je 0x10058442
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x100583f3
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x10058442
lea ecx, [ebp - 0x2a4]
push ecx
lea edx, [ebp - 0x288]
push edx
lea eax, [ebp - 0x250]
push eax
call fcn.10059b10
add esp, 0xc
mov byte [ebp - 4], 0xf
push 3
push 3
push 3
push 0x16
push eax
call fcn.100585a0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x250]
call fcn.10003930
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x220], 8
jb 0x1005845e
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.100b2678
add esp, 4
xor edx, edx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], dx
lea esi, [edx + 0xf]
mov byte [ebp - 4], 6
cmp dword [ebp - 0x290], 0x10
jb 0x10058496
mov eax, dword [ebp - 0x2a4]
push eax
call fcn.100b2678
add esp, 4
mov dword [ebp - 0x290], esi
mov dword [ebp - 0x294], ebx
mov byte [ebp - 0x2a4], 0
mov byte [ebp - 4], 5
cmp dword [ebp - 0x258], 0x10
jb 0x100584c5
mov ecx, dword [ebp - 0x26c]
push ecx
call fcn.100b2678
add esp, 4
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x25c], ebx
mov byte [ebp - 0x26c], 0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x274], 0x10
jb 0x100584f4
mov edx, dword [ebp - 0x288]
push edx
call fcn.100b2678
add esp, 4
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x278], ebx
mov byte [ebp - 0x288], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x2c8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100b2b2c
mov esp, ebp
pop ebp
ret