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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a01b5
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x4bf6bc]
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.004705f0
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.004627e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2b8]
push ecx
call fcn.0047f65c
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 0x4618d9
push 2
push 0x4b24bc
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x274], edi
mov dword [ebp - 0x278], esi
mov byte [ebp - 0x288], 0
call fcn.00407f60
mov byte [ebp - 4], 5
push 7
mov eax, 0x4b24c0
lea ecx, [ebp - 0x288]
call fcn.00407160
push str.debug.txt
lea ecx, [ebp - 0x288]
push ecx
lea edx, [ebp - 0x26c]
push edx
call fcn.004597e0
add esp, 0xc
mov byte [ebp - 4], 6
cmp dword [ebp - 0x258], 0x10
mov eax, dword [ebp - 0x26c]
jae 0x4614ad
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 0x461690
mov dword [ebp - 0x2ac], esi
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, edi
je 0x4614e9
lea ecx, [ebp - 0x2ac]
push ecx
push eax
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
cmp dword [ebp - 0x2ac], esi
je 0x461690
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 0x46158d
mov edi, dword [ebp - 0x2a8]
cmp edi, esi
je 0x46158d
push 0x206
lea eax, [ebp - 0x216]
xor edx, edx
push esi
push eax
mov word [ebp - 0x218], dx
call fcn.00483260
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
push edi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x461580
lea edx, [ebp - 0x250]
push edx
lea eax, [ebp - 0x218]
call fcn.0040d590
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.00410b30
add esp, 0xc
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 8
jb 0x4615b6
mov esi, dword [eax]
jmp 0x4615b8
mov esi, eax
test esi, esi
je 0x4615f1
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x4615cf
xor esi, esi
jmp 0x4615f1
lea edi, [eax + eax]
mov eax, edi
call fcn.00486a70
mov eax, esi
mov edx, 3
mov ecx, edi
mov esi, esp
mov dword [ebp - 0x2b4], esp
call fcn.0040a400
mov esi, eax
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4615f6
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x288]
call fcn.00407f60
mov byte [ebp - 4], 7
lea esi, [ebp - 0x234]
call fcn.00409f00
push str.debug.txt
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x234]
push ecx
call fcn.004597e0
add esp, 0xc
mov byte [ebp - 4], 9
mov edi, eax
lea esi, [ebp - 0x26c]
call fcn.00407000
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x234]
call fcn.00404fe0
cmp dword [ebp - 0x258], 0x10
mov eax, dword [ebp - 0x26c]
jae 0x461667
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.00409f00
xor esi, esi
lea ecx, [ebp - 0x234]
call fcn.00467070
mov byte [ebp - 4], 0xa
mov edx, eax
lea ecx, [ebp - 0x2a4]
call fcn.004687c0
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x220], 8
jb 0x4616c8
mov edx, dword [ebp - 0x234]
push edx
call fcn.0047bd91
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 0x46177c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x258], 0x10
mov eax, dword [ebp - 0x26c]
jae 0x461706
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.00462ab0
add esp, 0xc
mov byte [ebp - 4], 0xd
push 3
push 3
push 3
push 0x15
push eax
mov esi, ebx
call fcn.00461970
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x220], 0x10
jb 0x46175a
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.0047bd91
add esp, 4
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], 0
mov byte [ebp - 0x234], 0
xor esi, esi
jmp 0x461847
mov eax, 0x4b24e4
lea ecx, [ebp - 0x250]
call fcn.004058e0
mov byte [ebp - 4], 0xe
push 6
mov eax, str._fxlog
lea ecx, [ebp - 0x250]
call fcn.00409c50
cmp dword [ebp - 0x240], esi
je 0x461812
cmp dword [ebp - 0x23c], 8
mov eax, dword [ebp - 0x250]
jae 0x4617bf
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x461812
lea edx, [ebp - 0x2a4]
push edx
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x234]
push ecx
call fcn.00462ab0
add esp, 0xc
mov byte [ebp - 4], 0xf
push 3
push 3
push 3
push 0x16
push eax
mov esi, ebx
call fcn.00461970
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x234]
call fcn.00404fe0
xor esi, esi
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x23c], 8
jb 0x46182e
mov edx, dword [ebp - 0x250]
push edx
call fcn.0047bd91
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 0x461863
mov ecx, dword [ebp - 0x2a4]
push ecx
call fcn.0047bd91
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 0x461897
mov edx, dword [ebp - 0x26c]
push edx
call fcn.0047bd91
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 0x4618c6
mov eax, dword [ebp - 0x288]
push eax
call fcn.0047bd91
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.0047bd9c
mov esp, ebp
pop ebp
ret