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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c16d0
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.00490840
mov dword [ebp - 4], 1
mov dword [ebx + 0x3c], 0xf
mov dword [ebx + 0x38], 0
mov byte [ebx + 0x28], 0
mov byte [ebp - 4], 2
lea eax, [ebx + 0x48]
push eax
call fcn.0047b2b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2b8]
push ecx
call fcn.0049e9f3
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 0x47a3b4
lea edi, [ebp - 0x2b0]
mov dword [ebp - 0x2b0], 3
call fcn.0047ae10
mov esi, dword [ebp - 0x2b0]
cmp esi, 0xff
jne 0x479ef6
push 0
push 0x4ccc6a
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], 0
mov byte [ebp - 0x234], 0
call fcn.004159b0
mov byte [ebp - 4], 4
push esi
push esi
push esi
push 0x2a
lea ecx, [ebp - 0x234]
push ecx
mov esi, ebx
call fcn.0047a3e0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x220], 0x10
jb 0x479ed6
mov edx, dword [ebp - 0x234]
push edx
call fcn.0049b30a
add esp, 4
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], 0
mov byte [ebp - 0x234], 0
jmp 0x47a3b4
push 2
push 0x4d8b9c
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x274], 0xf
mov dword [ebp - 0x278], 0
mov byte [ebp - 0x288], 0
call fcn.004159b0
mov byte [ebp - 4], 5
push 7
mov eax, 0x4d8ba0
lea ecx, [ebp - 0x288]
call fcn.00413090
push str.debug.txt
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x26c]
push ecx
call fcn.0046e440
add esp, 0xc
mov byte [ebp - 4], 6
cmp dword [ebp - 0x258], 0x10
mov eax, dword [ebp - 0x26c]
jae 0x479f6d
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 edi, eax
cmp edi, 0xffffffff
jne 0x47a15e
mov dword [ebp - 0x2ac], 0
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, edi
je 0x479fb0
lea edx, [ebp - 0x2ac]
push edx
push eax
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
xor eax, eax
cmp dword [ebp - 0x2ac], eax
je 0x47a15e
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 0x47a056
mov esi, dword [ebp - 0x2a8]
test esi, esi
je 0x47a056
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x216]
push eax
mov word [ebp - 0x218], dx
call fcn.004a2b10
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x47a049
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp - 0x218]
call fcn.004139e0
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.00419240
add esp, 0xc
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 8
jb 0x47a07f
mov esi, dword [eax]
jmp 0x47a081
mov esi, eax
test esi, esi
je 0x47a0ba
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x47a098
xor esi, esi
jmp 0x47a0ba
lea edi, [eax + eax]
mov eax, edi
call fcn.004a6710
mov eax, esi
mov edx, 3
mov ecx, edi
mov esi, esp
mov dword [ebp - 0x2b4], esp
call fcn.0041ab50
mov esi, eax
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47a0c0
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x288]
call fcn.004159b0
mov byte [ebp - 4], 7
lea esi, [ebp - 0x250]
call fcn.00410c70
push str.debug.txt
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x250]
push ecx
call fcn.0046e440
add esp, 0xc
mov byte [ebp - 4], 9
mov edi, eax
lea esi, [ebp - 0x26c]
call fcn.00412f30
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x250]
call fcn.0040fb80
cmp dword [ebp - 0x258], 0x10
mov eax, dword [ebp - 0x26c]
jae 0x47a131
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 - 0x234]
call fcn.00410c70
mov esi, dword [ebp - 0x2b0]
lea ecx, [ebp - 0x250]
call fcn.0047fe90
mov byte [ebp - 4], 0xa
mov edx, eax
lea ecx, [ebp - 0x2a4]
call fcn.0046eed0
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x23c], 8
jb 0x47a196
mov edx, dword [ebp - 0x250]
push edx
call fcn.0049b30a
add esp, 4
xor eax, eax
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], 0
mov word [ebp - 0x250], ax
cmp edi, 0xffffffff
je 0x47a249
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x258], 0x10
mov eax, dword [ebp - 0x26c]
jae 0x47a1d8
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 - 0x250]
push eax
call fcn.0047b4b0
add esp, 0xc
mov byte [ebp - 4], 0xd
push esi
push esi
push esi
push 0x15
push eax
mov esi, ebx
call fcn.0047a3e0
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x23c], 0x10
jb 0x47a229
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.0049b30a
add esp, 4
mov dword [ebp - 0x23c], 0xf
mov dword [ebp - 0x240], 0
mov byte [ebp - 0x250], 0
jmp 0x47a314
mov eax, 0x4d8bc4
lea ecx, [ebp - 0x234]
call fcn.00410c10
mov byte [ebp - 4], 0xe
push 6
mov eax, str._fxlog
lea ecx, [ebp - 0x234]
call fcn.004137b0
cmp dword [ebp - 0x224], 0
je 0x47a2db
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x47a28d
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x47a2db
lea edx, [ebp - 0x2a4]
push edx
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x250]
push ecx
call fcn.0047b4b0
add esp, 0xc
mov byte [ebp - 4], 0xf
push esi
push esi
push esi
push 0x16
push eax
mov esi, ebx
call fcn.0047a3e0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x250]
call fcn.0040fb80
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x220], 8
jb 0x47a2f7
mov edx, dword [ebp - 0x234]
push edx
call fcn.0049b30a
add esp, 4
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
mov byte [ebp - 4], 6
mov edi, 0x10
cmp dword [ebp - 0x290], edi
jb 0x47a334
mov ecx, dword [ebp - 0x2a4]
push ecx
call fcn.0049b30a
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 0x47a36b
mov edx, dword [ebp - 0x26c]
push edx
call fcn.0049b30a
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 0x47a39d
mov eax, dword [ebp - 0x288]
push eax
call fcn.0049b30a
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 - 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.0049b315
mov esp, ebp
pop ebp
ret