Function at 0x498f48
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x200
mov eax, dword [0x50e7dc]
xor eax, ebp
mov dword [ebp + 0x68], eax
mov eax, dword [ebp + 0x7c]
push ebx
mov ebx, dword [ebp + 0x78]
push esi
push edi
mov edi, dword [ebp + 0x74]
xor esi, esi
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x170], eax
cmp dword [edi + 0x28], esi
je 0x4991d4
lea ecx, [ebp - 0x16c]
call fcn.0041c503
push esi
lea ecx, [ebp - 8]
mov dword [ebp + 0x10], 7
call fcn.00405ece
lea eax, [ebp - 8]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x194], esp
push ebx
call fcn.00404bd0
lea ecx, [ebp - 0x16c]
call fcn.0041c51d
push dword [ebp - 0x170]
lea ecx, [ebp + 0x14]
call fcn.00404bd0
push eax
lea ecx, [ebp - 8]
call fcn.00404cf8
mov ebx, eax
neg ebx
push esi
sbb bl, bl
push 1
lea ecx, [ebp + 0x14]
inc bl
call fcn.004058b3
test bl, bl
je 0x4991bc
push str.Toolbar
add edi, 0x14
push edi
push 0x4d5480
lea eax, [ebp - 0x190]
push str.COMMONAPPDATA
push eax
call fcn.0040479d
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0041011e
add esp, 0xc
push eax
lea eax, [ebp + 0x14]
push eax
call fcn.00406441
add esp, 0xc
push eax
lea eax, [ebp + 0x30]
push eax
call fcn.0041011e
add esp, 0xc
xor edi, edi
push esi
inc edi
push edi
lea ecx, [ebp + 0x14]
call fcn.004058b3
push esi
push edi
lea ecx, [ebp - 0x24]
call fcn.004058b3
push esi
push edi
lea ecx, [ebp - 0x190]
call fcn.004058b3
cmp dword [ebp + 0x48], 8
mov eax, dword [ebp + 0x34]
jae 0x499065
lea eax, [ebp + 0x34]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x499086
lea eax, [ebp + 0x30]
push esi
push eax
call fcn.0042991c
lea eax, [ebp + 0x30]
push eax
call fcn.0042a3dc
add esp, 0xc
push str.Commands.ini
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp + 0x4c]
push eax
call fcn.0041011e
mov eax, dword [ebp + 0x50]
add esp, 0xc
cmp dword [ebp + 0x64], 8
jae 0x4990a7
lea eax, [ebp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 0x64], 8
mov eax, dword [ebp + 0x50]
jae 0x4990ba
lea eax, [ebp + 0x50]
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x68]
call fcn.00431b5d
lea eax, [ebp + 0x4c]
push eax
lea ecx, [ebp - 0x68]
call fcn.00431bbf
test al, al
je 0x49919e
push str.Commands
lea ecx, [ebp - 0x40]
call fcn.00404bd0
push 0x4ceed4
lea ecx, [ebp + 0x14]
call fcn.00404bd0
push 0x4ceecc
lea ecx, [ebp - 0x24]
call fcn.00404bd0
push dword [ebp - 0x174]
lea ecx, [ebp - 0x190]
call fcn.00404bd0
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x68]
call fcn.004320f6
push esi
push edi
lea ecx, [ebp - 0x190]
call fcn.004058b3
push dword [ebp - 0x170]
lea ecx, [ebp - 0x190]
call fcn.00404bd0
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x68]
call fcn.004320f6
push esi
push edi
lea ecx, [ebp - 0x190]
call fcn.004058b3
push esi
push edi
lea ecx, [ebp - 0x24]
call fcn.004058b3
push esi
push edi
lea ecx, [ebp + 0x14]
call fcn.004058b3
push esi
push edi
lea ecx, [ebp - 0x40]
call fcn.004058b3
lea ecx, [ebp - 0x68]
call fcn.00431b96
push esi
push edi
lea ecx, [ebp + 0x4c]
call fcn.004058b3
push esi
push edi
lea ecx, [ebp + 0x30]
call fcn.004058b3
jmp 0x4991bf
xor edi, edi
inc edi
push esi
push edi
lea ecx, [ebp - 8]
call fcn.004058b3
lea ecx, [ebp - 0x16c]
call fcn.00434d74
mov ecx, dword [ebp + 0x68]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0049f533
add ebp, 0x6c
leave
ret 0xc