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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b48a0
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x4ff1a0]
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 ebx, ecx
lea eax, [ebx + 4]
push eax
mov dword [ebp - 0x2bc], ebx
mov byte [ebx], 0
mov dword [ebp - 0x2b4], eax
call fcn.00431d80
mov dword [ebp - 4], 1
mov esi, 0xf
mov dword [ebx + 0x3c], esi
mov dword [ebx + 0x38], 0
mov byte [ebx + 0x28], 0
mov byte [ebp - 4], 2
lea eax, [ebx + 0x48]
push eax
call fcn.0042eb00
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2b8]
push ecx
call fcn.00493beb
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 0x42d944
lea edi, [ebp - 0x2b0]
mov dword [ebp - 0x2b0], 3
call fcn.0042e480
mov edi, dword [ebp - 0x2b0]
cmp edi, 0xff
jne 0x42d462
push 0
push 0x4c419c
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], 0
mov byte [ebp - 0x234], 0
call fcn.0040ebe0
mov byte [ebp - 4], 4
push edi
push edi
push edi
push 0x2a
lea ecx, [ebp - 0x234]
push ecx
mov esi, ebx
call fcn.0042d9d0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x220], 0x10
jb 0x42d442
mov edx, dword [ebp - 0x234]
push edx
call fcn.00490458
add esp, 4
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], 0
mov byte [ebp - 0x234], 0
jmp 0x42d944
push 2
push 0x4e1ca0
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x278], 0
mov byte [ebp - 0x288], 0
call fcn.0040ebe0
mov byte [ebp - 4], 5
push 7
push 0x4e1ca4
lea ecx, [ebp - 0x288]
call fcn.00409870
push str.debug.txt
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x26c]
push ecx
call fcn.00408060
add esp, 0xc
mov byte [ebp - 4], 6
cmp dword [ebp - 0x258], 0x10
mov eax, dword [ebp - 0x26c]
jae 0x42d4d5
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
cmp esi, 0xffffffff
jne 0x42d6d1
mov dword [ebp - 0x2ac], 0
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, esi
je 0x42d518
lea edx, [ebp - 0x2ac]
push edx
push eax
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
xor eax, eax
cmp dword [ebp - 0x2ac], eax
je 0x42d6d1
xor ecx, ecx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], eax
mov word [ebp - 0x234], cx
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x2ac]
lea edx, [ebp - 0x2a8]
push edx
push eax
push ecx
push 5
push eax
mov dword [ebp - 0x2a8], eax
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
js 0x42d5be
mov esi, dword [ebp - 0x2a8]
test esi, esi
je 0x42d5be
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x216]
push eax
mov word [ebp - 0x218], dx
call fcn.004911e0
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x42d5b1
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x234]
call fcn.00410380
mov eax, dword [ebp - 0x2a8]
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.00410b20
add esp, 0xc
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 8
jb 0x42d5e7
mov edi, dword [eax]
jmp 0x42d5e9
mov edi, eax
test edi, edi
jne 0x42d5f1
xor esi, esi
jmp 0x42d626
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x42d604
xor esi, esi
jmp 0x42d626
lea esi, [eax + eax]
mov eax, esi
call fcn.004915f0
mov ecx, esi
mov edx, 3
mov eax, edi
mov esi, esp
mov dword [ebp - 0x2b4], esp
call fcn.0042ef30
mov esi, eax
mov ecx, esi
lea edx, [ecx + 1]
jmp 0x42d630
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42d630
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x288]
call fcn.0040ebe0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x250]
call fcn.0040f320
push str.debug.txt
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x250]
push ecx
call fcn.00408060
add esp, 0xc
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x26c]
call fcn.0040e5d0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x250]
call fcn.0040f350
cmp dword [ebp - 0x258], 0x10
mov eax, dword [ebp - 0x26c]
jae 0x42d6a4
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.0040f320
mov edi, dword [ebp - 0x2b0]
lea ecx, [ebp - 0x250]
call fcn.00429960
mov byte [ebp - 4], 0xa
push eax
lea edx, [ebp - 0x2a4]
push edx
call fcn.004188e0
add esp, 8
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x23c], 8
jb 0x42d70c
mov eax, dword [ebp - 0x250]
push eax
call fcn.00490458
add esp, 4
xor ecx, ecx
xor edx, edx
mov eax, 7
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x240], ecx
mov word [ebp - 0x250], dx
cmp esi, 0xffffffff
je 0x42d7c2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x258], 0x10
mov eax, dword [ebp - 0x26c]
jae 0x42d74d
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x288]
push ecx
lea edx, [ebp - 0x250]
push edx
call fcn.0042ee70
add esp, 0xc
mov byte [ebp - 4], 0xd
push edi
push edi
push edi
push 0x15
push eax
mov esi, ebx
call fcn.0042d9d0
mov byte [ebp - 4], 0xc
mov edi, 0x10
cmp dword [ebp - 0x23c], edi
jb 0x42d7a2
mov eax, dword [ebp - 0x250]
push eax
call fcn.00490458
add esp, 4
mov dword [ebp - 0x23c], 0xf
mov dword [ebp - 0x240], 0
mov byte [ebp - 0x250], 0
jmp 0x42d8a9
mov dword [ebp - 0x224], ecx
xor ecx, ecx
push 2
mov word [ebp - 0x234], cx
push 0x4e1cc8
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], eax
call fcn.0040e680
mov byte [ebp - 4], 0xe
push 6
push str._fxlog
lea ecx, [ebp - 0x234]
call fcn.00410dc0
cmp dword [ebp - 0x224], 0
je 0x42d86b
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x42d81d
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x42d86b
lea edx, [ebp - 0x2a4]
push edx
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x250]
push ecx
call fcn.0042ee70
add esp, 0xc
mov byte [ebp - 4], 0xf
push edi
push edi
push edi
push 0x16
push eax
mov esi, ebx
call fcn.0042d9d0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x250]
call fcn.0040f350
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x220], 8
jb 0x42d887
mov edx, dword [ebp - 0x234]
push edx
call fcn.00490458
add esp, 4
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
mov edi, 0x10
mov byte [ebp - 4], 6
cmp dword [ebp - 0x290], edi
jb 0x42d8c4
mov ecx, dword [ebp - 0x2a4]
push ecx
call fcn.00490458
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x290], esi
mov dword [ebp - 0x294], 0
mov byte [ebp - 0x2a4], 0
mov byte [ebp - 4], 5
cmp dword [ebp - 0x258], edi
jb 0x42d8fb
mov edx, dword [ebp - 0x26c]
push edx
call fcn.00490458
add esp, 4
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x25c], 0
mov byte [ebp - 0x26c], 0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x274], edi
jb 0x42d92d
mov eax, dword [ebp - 0x288]
push eax
call fcn.00490458
add esp, 4
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x278], 0
mov byte [ebp - 0x288], 0
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
lea esp, [ebp - 0x2d0]
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.004911d1
mov esp, ebp
pop ebp
ret