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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c1c35
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x4eb6b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebx + 4]
push eax
mov dword [ebp - 0x2bc], ebx
mov byte [ebx], 0
mov dword [ebp - 0x2b4], eax
call fcn.00483370
mov dword [ebp - 4], 1
mov edi, 0xf
xor esi, esi
mov dword [ebx + 0x3c], edi
mov dword [ebx + 0x38], esi
mov byte [ebx + 0x28], 0
mov byte [ebp - 4], 2
lea eax, [ebx + 0x48]
push eax
call fcn.00471df0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2b8]
push ecx
call fcn.004a028b
mov edx, dword [ebp - 0x2b8]
mov eax, dword [ebp - 0x2b4]
add esp, 4
cmp byte [ebx], 0
mov dword [ebx + 0xf0], edx
mov dword [ebx + 0xf4], eax
jne 0x470fb9
push 2
push 0x4d9378
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x274], edi
mov dword [ebp - 0x278], esi
mov byte [ebp - 0x288], 0
call fcn.004190e0
mov byte [ebp - 4], 5
push 7
mov eax, 0x4d937c
lea ecx, [ebp - 0x288]
call fcn.0041b3f0
push str.debug.txt
lea ecx, [ebp - 0x288]
push ecx
lea edx, [ebp - 0x26c]
push edx
call fcn.00471ff0
add esp, 0xc
mov byte [ebp - 4], 6
cmp dword [ebp - 0x258], 0x10
mov eax, dword [ebp - 0x26c]
jae 0x470b8d
lea eax, [ebp - 0x26c]
push esi
push esi
push 2
push esi
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x470d70
mov dword [ebp - 0x2ac], esi
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, edi
je 0x470bc9
lea ecx, [ebp - 0x2ac]
push ecx
push eax
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
cmp dword [ebp - 0x2ac], esi
je 0x470d70
xor edx, edx
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], esi
mov word [ebp - 0x250], dx
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x2ac]
lea eax, [ebp - 0x2a8]
push eax
push esi
push ecx
push 5
push esi
mov dword [ebp - 0x2a8], esi
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
cmp eax, esi
jl 0x470c6d
mov edi, dword [ebp - 0x2a8]
cmp edi, esi
je 0x470c6d
push 0x206
lea eax, [ebp - 0x216]
xor edx, edx
push esi
push eax
mov word [ebp - 0x218], dx
call fcn.004a4260
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
push edi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x470c60
lea edx, [ebp - 0x250]
push edx
lea eax, [ebp - 0x218]
call fcn.00426580
mov eax, dword [ebp - 0x2a8]
push eax
call dword [sym.imp.SHELL32.dll_ILFree]
push str._fxlog_
lea ecx, [ebp - 0x250]
push ecx
lea edx, [ebp - 0x234]
push edx
call fcn.0041d670
add esp, 0xc
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 8
jb 0x470c96
mov esi, dword [eax]
jmp 0x470c98
mov esi, eax
test esi, esi
je 0x470cd1
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x470caf
xor esi, esi
jmp 0x470cd1
lea edi, [eax + eax]
mov eax, edi
call fcn.004a8e60
mov eax, esi
mov edx, 3
mov ecx, edi
mov esi, esp
mov dword [ebp - 0x2b4], esp
call fcn.00423810
mov esi, eax
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x470cd6
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x288]
call fcn.004190e0
mov byte [ebp - 4], 7
lea esi, [ebp - 0x234]
call fcn.00426e80
push str.debug.txt
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x234]
push ecx
call fcn.00471ff0
add esp, 0xc
mov byte [ebp - 4], 9
mov edi, eax
lea esi, [ebp - 0x26c]
call fcn.00416060
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x234]
call fcn.00411a90
cmp dword [ebp - 0x258], 0x10
mov eax, dword [ebp - 0x26c]
jae 0x470d47
mov eax, esi
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov byte [ebp - 4], 6
lea esi, [ebp - 0x250]
call fcn.00426e80
xor esi, esi
lea ecx, [ebp - 0x234]
call fcn.00477070
mov byte [ebp - 4], 0xa
mov edx, eax
lea ecx, [ebp - 0x2a4]
call fcn.0046fd30
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x220], 8
jb 0x470da8
mov edx, dword [ebp - 0x234]
push edx
call fcn.0049ca60
add esp, 4
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], esi
mov word [ebp - 0x234], ax
cmp edi, 0xffffffff
je 0x470e5c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x258], 0x10
mov eax, dword [ebp - 0x26c]
jae 0x470de6
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x2a4]
push ecx
lea edx, [ebp - 0x288]
push edx
lea eax, [ebp - 0x234]
push eax
call fcn.004720c0
add esp, 0xc
mov byte [ebp - 4], 0xd
push 3
push 3
push 3
push 0x15
push eax
mov esi, ebx
call fcn.00470ff0
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x220], 0x10
jb 0x470e3a
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.0049ca60
add esp, 4
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], 0
mov byte [ebp - 0x234], 0
xor esi, esi
jmp 0x470f27
mov eax, 0x4d93a0
lea ecx, [ebp - 0x250]
call fcn.00412cf0
mov byte [ebp - 4], 0xe
push 6
mov eax, str._fxlog
lea ecx, [ebp - 0x250]
call fcn.00416700
cmp dword [ebp - 0x240], esi
je 0x470ef2
cmp dword [ebp - 0x23c], 8
mov eax, dword [ebp - 0x250]
jae 0x470e9f
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x470ef2
lea edx, [ebp - 0x2a4]
push edx
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x234]
push ecx
call fcn.004720c0
add esp, 0xc
mov byte [ebp - 4], 0xf
push 3
push 3
push 3
push 0x16
push eax
mov esi, ebx
call fcn.00470ff0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x234]
call fcn.00411a90
xor esi, esi
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x23c], 8
jb 0x470f0e
mov edx, dword [ebp - 0x250]
push edx
call fcn.0049ca60
add esp, 4
xor eax, eax
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], esi
mov word [ebp - 0x250], ax
mov byte [ebp - 4], 6
cmp dword [ebp - 0x290], 0x10
jb 0x470f43
mov ecx, dword [ebp - 0x2a4]
push ecx
call fcn.0049ca60
add esp, 4
mov edi, 0xf
mov dword [ebp - 0x290], edi
mov dword [ebp - 0x294], esi
mov byte [ebp - 0x2a4], 0
mov byte [ebp - 4], 5
cmp dword [ebp - 0x258], 0x10
jb 0x470f77
mov edx, dword [ebp - 0x26c]
push edx
call fcn.0049ca60
add esp, 4
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x25c], esi
mov byte [ebp - 0x26c], 0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x274], 0x10
jb 0x470fa6
mov eax, dword [ebp - 0x288]
push eax
call fcn.0049ca60
add esp, 4
mov dword [ebp - 0x274], edi
mov dword [ebp - 0x278], esi
mov byte [ebp - 0x288], 0
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
lea esp, [ebp - 0x2c8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049ca6b
mov esp, ebp
pop ebp
ret