Function at 0x405db0
Capabilities:
Check if file exists
Delete file
Read .ini file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x49f600
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c13e0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
lea esi, [eax + 8]
xor ebx, ebx
cmp dword [esi], ebx
jne 0x405dfc
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x30]
push esi
push str.CLSID_IPCS_DEEPSCAN.2
call edx
test eax, eax
je 0x4060ff
mov edi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
push ebp
push 0x104
mov byte [edi + 0x214], bl
add edi, 0x216
push edi
push ebx
push str.open
push str.autorun
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405e72
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x405e72
mov eax, dword [esi]
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
cmp dword [esp + 0x1c], 3
jbe 0x405e72
mov eax, dword [esi]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x48]
push edi
push eax
call edx
test eax, eax
jne 0x405e72
mov eax, dword [esp + 0x3c]
mov byte [eax + 0x214], 1
mov dword [esp + 0x14], ebx
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x38], ebx
mov eax, dword [esi]
mov ecx, dword [eax]
push ebp
push 1
push eax
mov eax, dword [ecx + 0x18]
call eax
cmp eax, ebx
mov eax, dword [esp + 0x14]
jl 0x4060eb
cmp eax, ebx
je 0x4060eb
lea edx, [esp + 0x18]
mov dword [esp + 0x18], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
cmp eax, ebx
jl 0x405ecf
cmp dword [esp + 0x18], ebx
je 0x405ecf
mov esi, dword [esi]
mov edi, dword [esp + 0x14]
call fcn.00406120
test eax, eax
jne 0x405ee0
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x14]
jmp 0x4060f3
xor edi, edi
cmp dword [esp + 0x18], ebx
jle 0x405f7e
mov ebp, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], ebx
mov ecx, dword [eax]
push edi
push eax
mov eax, dword [ecx + 0x18]
call eax
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x405f6f
cmp byte [esi + 0x3e], bl
jne 0x405f6f
mov al, byte [esi + 0x34]
cmp al, 0xff
je 0x405f6f
cmp al, 0x50
jge 0x405f6f
movsx ecx, al
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jbe 0x405f43
mov ecx, dword [esp + 0x44]
mov dword [ecx], 1
cmp eax, 5
jae 0x405f52
cmp eax, 3
jb 0x405f6f
cmp byte [esi + 0x38], bl
jne 0x405f6f
push 8
lea eax, [esi + 8]
push ebx
push eax
push eax
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x10]
push 0x4a7458
push eax
call ebp
inc edi
cmp edi, dword [esp + 0x18]
jl 0x405ef2
mov ebp, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
cmp dword [edi], ebx
je 0x405ffc
push 0x20
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x405fae
call fcn.00402f60
test eax, eax
je 0x405fae
push ebp
call fcn.00403a30
call fcn.00403000
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push str.IDS_LONG_STRING_0013
push str.IDS_UPAN_KE_YI_WEN_JIAN
mov byte [eax + 0x213], 1
mov eax, dword [eax + 0x440]
push str.IDS_YI_QING_CHU
push eax
mov edx, ebp
call fcn.004061b0
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x405ff2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 1
jmp 0x406101
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push ebx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
jl 0x4060dd
cmp dword [esp + 0x20], ebx
je 0x4060dd
mov dword [esp + 0x40], ebx
mov esi, dword [esp + 0x38]
mov byte [esp + 0x30], 1
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x30]
lea eax, [esp + 0x40]
push eax
push str.CLSID_IPCS_MISC.1
call edx
test eax, eax
je 0x4060c9
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x4060cd
mov edx, dword [esp + 0x20]
mov edx, dword [edx + 0x10]
mov ecx, dword [eax]
push ebx
push ebx
push edx
push eax
mov eax, dword [ecx + 0x38]
call eax
cmp eax, 1
jne 0x4060c9
push 0x20
push ebp
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x406092
call fcn.00402f60
test eax, eax
je 0x406092
push ebp
call fcn.00403a30
call fcn.00403000
mov eax, dword [esp + 0x3c]
mov byte [eax + 0x213], 1
mov eax, dword [eax + 0x440]
mov edx, ebp
mov ecx, esi
call fcn.00406360
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x405fda
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x405fda
mov eax, dword [esp + 0x40]
mov byte [esp + 0x30], bl
cmp eax, ebx
je 0x4060dd
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x14]
jmp 0x4060f3
mov dword [esp + 0x30], 0xffffffff
cmp eax, ebx
je 0x4060ff
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x10