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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438ca5
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x448664]
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.004194b0
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.00416aa0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2b8]
push ecx
call fcn.0041dc0f
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 0x41587f
push 2
push 0x43de00
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x274], edi
mov dword [ebp - 0x278], esi
mov byte [ebp - 0x288], 0
call fcn.00406be0
mov byte [ebp - 4], 5
push 7
mov eax, 0x43de04
lea ecx, [ebp - 0x288]
call fcn.00407d30
lea ecx, [ebp - 0x288]
push ecx
lea edx, [ebp - 0x26c]
push edx
call fcn.00417c50
add esp, 8
mov byte [ebp - 4], 6
cmp dword [ebp - 0x258], 0x10
mov eax, dword [ebp - 0x26c]
jae 0x415458
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 0x415636
mov dword [ebp - 0x2ac], esi
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, edi
je 0x415494
lea ecx, [ebp - 0x2ac]
push ecx
push eax
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
cmp dword [ebp - 0x2ac], esi
je 0x415636
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 0x415538
mov edi, dword [ebp - 0x2a8]
cmp edi, esi
je 0x415538
push 0x206
lea eax, [ebp - 0x216]
xor edx, edx
push esi
push eax
mov word [ebp - 0x218], dx
call fcn.00422080
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
push edi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x41552b
lea edx, [ebp - 0x250]
push edx
lea eax, [ebp - 0x218]
call fcn.0040c1c0
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.0040d910
add esp, 0xc
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 8
jb 0x415561
mov esi, dword [eax]
jmp 0x415563
mov esi, eax
test esi, esi
je 0x41559c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x41557a
xor esi, esi
jmp 0x41559c
lea edi, [eax + eax]
mov eax, edi
call fcn.00426520
mov eax, esi
mov edx, 3
mov ecx, edi
mov esi, esp
mov dword [ebp - 0x2b4], esp
call fcn.004182a0
mov esi, eax
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4155a1
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x288]
call fcn.00406be0
mov byte [ebp - 4], 7
lea esi, [ebp - 0x234]
call fcn.004016d0
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x234]
push ecx
call fcn.00417c50
add esp, 8
mov byte [ebp - 4], 9
mov edi, eax
lea esi, [ebp - 0x26c]
call fcn.0040c940
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x234]
call fcn.004041a0
cmp dword [ebp - 0x258], 0x10
mov eax, dword [ebp - 0x26c]
jae 0x41560d
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.004016d0
xor esi, esi
lea ecx, [ebp - 0x234]
call fcn.00418830
mov byte [ebp - 4], 0xa
mov edx, eax
lea ecx, [ebp - 0x2a4]
call fcn.00418f60
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x220], 8
jb 0x41566e
mov edx, dword [ebp - 0x234]
push edx
call fcn.0041d491
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 0x415722
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x258], 0x10
mov eax, dword [ebp - 0x26c]
jae 0x4156ac
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.00417d00
add esp, 0xc
mov byte [ebp - 4], 0xd
push 3
push 3
push 3
push 0x15
push eax
mov esi, ebx
call fcn.00415910
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x220], 0x10
jb 0x415700
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.0041d491
add esp, 4
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], 0
mov byte [ebp - 0x234], 0
xor esi, esi
jmp 0x4157ed
mov eax, 0x43de28
lea ecx, [ebp - 0x250]
call fcn.00401690
mov byte [ebp - 4], 0xe
push 6
mov eax, str._fxlog
lea ecx, [ebp - 0x250]
call fcn.00405c70
cmp dword [ebp - 0x240], esi
je 0x4157b8
cmp dword [ebp - 0x23c], 8
mov eax, dword [ebp - 0x250]
jae 0x415765
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x4157b8
lea edx, [ebp - 0x2a4]
push edx
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x234]
push ecx
call fcn.00417d00
add esp, 0xc
mov byte [ebp - 4], 0xf
push 3
push 3
push 3
push 0x16
push eax
mov esi, ebx
call fcn.00415910
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x234]
call fcn.004041a0
xor esi, esi
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x23c], 8
jb 0x4157d4
mov edx, dword [ebp - 0x250]
push edx
call fcn.0041d491
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 0x415809
mov ecx, dword [ebp - 0x2a4]
push ecx
call fcn.0041d491
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 0x41583d
mov edx, dword [ebp - 0x26c]
push edx
call fcn.0041d491
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 0x41586c
mov eax, dword [ebp - 0x288]
push eax
call fcn.0041d491
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.0041cfa8
mov esp, ebp
pop ebp
ret