Function at 0x405670
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45042f
mov eax, dword fs:[0]
push eax
sub esp, 0x4f4
mov eax, dword [0x460adc]
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
xor ebx, ebx
push 0x1fe
lea ecx, [ebp - 0x20e]
xor eax, eax
push ebx
mov dword [ebp - 4], ebx
push ecx
mov word [ebp - 0x210], ax
call fcn.00422fb0
add esp, 0xc
lea edx, [ebp - 0x4c0]
push edx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405717
mov ecx, dword [ebp - 0x4c0]
lea eax, [ebp - 0x210]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea edi, [ebp - 0x210]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x4056f2
mov edx, dword [ebp - 0x4c0]
mov ecx, 0x15
mov esi, str.MicrosoftInternet_ExplorerQuick_Launch
push edx
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0xffffffffffffffff
push ebx
lea ecx, [ebp + 8]
xor eax, eax
push ecx
mov edi, 7
lea ecx, [ebp - 0x448]
mov dword [ebp - 0x434], edi
mov dword [ebp - 0x438], ebx
mov word [ebp - 0x448], ax
call fcn.00402a70
push 4
push str..lnk
lea ecx, [ebp - 0x448]
mov byte [ebp - 4], 1
call fcn.00402950
mov edx, dword [0x46466c]
cmp edx, ebx
jne 0x405791
push 0x54
call fcn.00420ba1
add esp, 4
mov dword [ebp - 0x4dc], eax
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x405783
push eax
call fcn.004015a0
jmp 0x405785
xor eax, eax
mov edx, eax
mov byte [ebp - 4], 1
mov dword [0x46466c], edx
lea esi, [ebp - 0x480]
call fcn.00402170
mov esi, 8
mov byte [ebp - 4], 3
push esi
xor edx, edx
push str.tttq.exe
lea ecx, [ebp - 0x42c]
mov dword [ebp - 0x418], edi
mov dword [ebp - 0x41c], ebx
mov word [ebp - 0x42c], dx
call fcn.00403280
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x480]
mov byte [ebp - 4], 4
xor eax, eax
push ecx
lea ecx, [ebp - 0x464]
mov dword [ebp - 0x450], edi
mov dword [ebp - 0x454], ebx
mov word [ebp - 0x464], ax
call fcn.00402a70
push 1
push 0x456324
lea ecx, [ebp - 0x464]
mov byte [ebp - 4], 5
call fcn.00402950
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x42c]
push edx
lea ecx, [ebp - 0x464]
call fcn.00403170
cmp byte [ebp + 0x24], bl
je 0x40593c
xor eax, eax
mov word [ebp - 0x4b8], ax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x4a4], edi
mov dword [ebp - 0x4a8], ebx
lea edx, [eax + 2]
jmp 0x405850
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x405850
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x4b8]
call fcn.00403280
push 1
push 0x456324
lea ecx, [ebp - 0x4b8]
mov byte [ebp - 4], 6
call fcn.00402950
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x448]
push edx
lea ecx, [ebp - 0x4b8]
call fcn.00403170
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4dc], esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x4b8]
xor eax, eax
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push edx
mov word [ecx], ax
call fcn.00402a70
mov byte [ebp - 4], 7
cmp dword [0x464674], ebx
jne 0x4058f9
push 0x58
call fcn.00420ba1
add esp, 4
mov dword [ebp - 0x4c0], eax
mov byte [ebp - 4], 8
cmp eax, ebx
je 0x4058ee
push eax
call fcn.00408850
jmp 0x4058f0
xor eax, eax
mov byte [ebp - 4], 7
mov dword [0x464674], eax
mov byte [ebp - 4], 6
call fcn.00409090
cmp al, bl
je 0x405921
mov eax, dword [ebp - 0x4b8]
cmp dword [ebp - 0x4a4], esi
jae 0x40591a
lea eax, [ebp - 0x4b8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 5
cmp dword [ebp - 0x4a4], esi
jb 0x40593c
mov eax, dword [ebp - 0x4b8]
push eax
call fcn.004204e8
add esp, 4
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x1fe
lea edx, [ebp - 0x40e]
xor ecx, ecx
push ebx
push edx
mov esi, eax
mov word [ebp - 0x410], cx
call fcn.00422fb0
add esp, 0xc
xor eax, eax
cmp byte [ebp + 0x24], bl
push 0x100
setne al
lea ecx, [ebp - 0x410]
push ecx
add eax, 0x150a
push eax
push esi
call dword [sym.imp.USER32.dll_LoadStringW]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edx, edx
lea eax, [ebp - 0x410]
mov word [ebp - 0x49c], dx
mov dword [ebp - 0x488], edi
mov dword [ebp - 0x48c], ebx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4059b0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x49c]
call fcn.00403280
mov byte [ebp - 4], 9
cmp dword [ebp - 0x48c], ebx
je 0x405da0
lea ecx, [ebp - 0x4ac]
push ecx
push str.Shell.Application
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
mov dword [ebp - 0x4bc], ebx
lea edx, [ebp - 0x4bc]
push edx
push 0x4524c4
push 1
push ebx
push 0x4524d4
mov byte [ebp - 4], 0xa
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jne 0x405d8a
cmp dword [ebp - 0x46c], 8
mov edi, dword [ebp - 0x480]
jae 0x405a35
lea edi, [ebp - 0x480]
lea esi, [ebp - 0x4ec]
call fcn.004051f0
mov dword [ebp - 0x4c4], ebx
mov byte [ebp - 4], 0xc
mov esi, dword [ebp - 0x4ec]
mov ecx, dword [ebp - 0x4bc]
mov edx, dword [ecx]
lea eax, [ebp - 0x4c4]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [ebp - 0x4e8]
mov dword [eax + 4], esi
mov esi, dword [ebp - 0x4e4]
mov dword [eax + 8], esi
mov esi, dword [ebp - 0x4e0]
push ecx
mov ecx, dword [edx + 0x24]
mov dword [eax + 0xc], esi
call ecx
mov eax, dword [ebp - 0x4c4]
cmp eax, ebx
jne 0x405a9d
lea edx, [ebp - 0x4ec]
push edx
jmp 0x405d84
cmp dword [ebp - 0x418], 8
jb 0x405aba
mov ecx, dword [ebp - 0x42c]
cmp ecx, ebx
jne 0x405ac0
xor edi, edi
mov dword [ebp - 0x4d8], edi
jmp 0x405ae3
lea ecx, [ebp - 0x42c]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [ebp - 0x4d8], edi
cmp edi, ebx
jne 0x405add
mov eax, 0x8007000e
call fcn.004051b0
mov eax, dword [ebp - 0x4c4]
mov dword [ebp - 0x4d4], ebx
lea ecx, [ebp - 0x4d4]
push ecx
mov byte [ebp - 4], 0xe
mov edx, dword [eax]
mov edx, dword [edx + 0x30]
push edi
push eax
call edx
mov eax, dword [ebp - 0x4d4]
cmp eax, ebx
jne 0x405b8f
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x4c4]
cmp eax, ebx
je 0x405b28
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [ebp - 0x4ec]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x4bc]
cmp eax, ebx
je 0x405b4b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [ebp - 0x49c]
call fcn.004389c0
lea ecx, [ebp - 0x464]
call fcn.004389c0
lea ecx, [ebp - 0x42c]
call fcn.004389c0
lea ecx, [ebp - 0x480]
call fcn.004389c0
lea ecx, [ebp - 0x448]
call fcn.004389c0
lea ecx, [ebp + 8]
call fcn.004389c0
jmp 0x405e97
mov dword [ebp - 0x4d0], ebx
lea edx, [ebp - 0x4d0]
mov byte [ebp - 4], 0xf
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x58]
call eax
mov eax, dword [ebp - 0x4d0]
cmp eax, ebx
jne 0x405bd1
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x4d4]
cmp eax, ebx
je 0x405b0b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x405b0b
lea edx, [ebp - 0x4c0]
mov dword [ebp - 0x4c0], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor ecx, ecx
mov dword [ebp - 0x4dc], ecx
cmp dword [ebp - 0x4c0], ebx
jle 0x405d38
mov dword [ebp - 0x4c8], ebx
mov edx, 3
mov word [ebp - 0x4fc], dx
mov dword [ebp - 0x4f4], ecx
mov byte [ebp - 4], 0x11
mov edi, dword [ebp - 0x4fc]
mov edx, dword [ebp - 0x4d0]
mov esi, dword [edx]
lea eax, [ebp - 0x4c8]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [ebp - 0x4f8]
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x4f0]
push edx
mov edx, dword [esi + 0x28]
mov dword [eax + 0xc], ecx
call edx
lea eax, [ebp - 0x4fc]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [ebp - 0x4cc], ebx
lea ecx, [ebp - 0x410]
push ecx
mov byte [ebp - 4], 0x12
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x500], esi
cmp esi, ebx
je 0x405ad3
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x4c8]
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
lea ecx, [ebp - 0x4cc]
push ecx
push eax
call edx
mov eax, dword [ebp - 0x4cc]
push ebx
push 0x400
push esi
push eax
call dword [sym.imp.OLEAUT32.dll_VarR8Pow]
cmp eax, 1
je 0x405cfc
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
mov ecx, dword [ebp - 0x4cc]
push ecx
call esi
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x4c8]
cmp eax, ebx
je 0x405ce1
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp - 0x4dc]
inc ecx
mov dword [ebp - 0x4dc], ecx
cmp ecx, dword [ebp - 0x4c0]
jl 0x405c00
jmp 0x405d32
mov eax, dword [ebp - 0x4c8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x28]
push eax
call edx
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
mov eax, dword [ebp - 0x4cc]
push eax
call esi
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x4c8]
cmp eax, ebx
je 0x405d32
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edi, dword [ebp - 0x4d8]
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x4d0]
cmp eax, ebx
je 0x405d4e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x4d4]
cmp eax, ebx
je 0x405d64
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push edi
call esi
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x4c4]
cmp eax, ebx
je 0x405d7d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [ebp - 0x4ec]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x4bc]
cmp eax, ebx
je 0x405da0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, 8
cmp dword [ebp - 0x488], esi
jb 0x405dbc
mov eax, dword [ebp - 0x49c]
push eax
call fcn.004204e8
add esp, 4
xor ecx, ecx
mov edi, 7
mov dword [ebp - 0x488], edi
mov dword [ebp - 0x48c], ebx
mov word [ebp - 0x49c], cx
cmp dword [ebp - 0x450], esi
jb 0x405ded
mov edx, dword [ebp - 0x464]
push edx
call fcn.004204e8
add esp, 4
xor eax, eax
mov dword [ebp - 0x450], edi
mov dword [ebp - 0x454], ebx
mov word [ebp - 0x464], ax
cmp dword [ebp - 0x418], esi
jb 0x405e19
mov ecx, dword [ebp - 0x42c]
push ecx
call fcn.004204e8
add esp, 4
xor edx, edx
mov dword [ebp - 0x418], edi
mov dword [ebp - 0x41c], ebx
mov word [ebp - 0x42c], dx
cmp dword [ebp - 0x46c], esi
jb 0x405e45
mov eax, dword [ebp - 0x480]
push eax
call fcn.004204e8
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x46c], edi
mov dword [ebp - 0x470], ebx
mov word [ebp - 0x480], cx
cmp dword [ebp - 0x434], esi
jb 0x405e71
mov edx, dword [ebp - 0x448]
push edx
call fcn.004204e8
add esp, 4
xor eax, eax
mov dword [ebp - 0x434], edi
mov dword [ebp - 0x438], ebx
mov word [ebp - 0x448], ax
cmp dword [ebp + 0x1c], esi
jb 0x405e97
mov ecx, dword [ebp + 8]
push ecx
call fcn.004204e8
add esp, 4
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.004204f3
mov esp, ebp
pop ebp
ret 0x20