Function at 0x406020
Capabilities:
Create shortcut via ishelllink
Get common file path
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x41a9db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x434
mov eax, dword [0x421260]
push ebx
push esi
mov esi, dword [esp + 0x44c]
mov dword [esp + 0x438], eax
xor ebx, ebx
mov eax, esi
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x406067
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00403a30
push 1
push 0xffffffffffffffff
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x450], ebx
mov byte [esp + 0x18], 0x5c
call fcn.00401c40
cmp eax, ebx
jle 0x4060af
cmp eax, dword [esp + 0x28]
jae 0x4060af
push 0x64
push eax
lea ecx, [esp + 0x1c]
call fcn.00402250
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [esp + 8]
push ecx
push 0x41d0b8
push 7
push ebx
push 0x41d0c8
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x4060e3
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [esp + 0x2c], 0x10
jmp 0x406157
mov eax, dword [esp + 8]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x50]
test eax, eax
jge 0x40611f
mov eax, dword [esp + 8]
mov edx, dword [eax]
push eax
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [esp + 0x2c], 0x10
jb 0x4062dc
mov eax, dword [esp + 0x18]
push eax
call fcn.0040e74d
add esp, 4
jmp 0x4062dc
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov esi, 0x10
cmp eax, esi
jae 0x406134
lea ecx, [esp + 0x18]
mov eax, dword [esp + 8]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x24]
test eax, eax
mov eax, dword [esp + 8]
jge 0x40616f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [esp + 0x2c], esi
jb 0x4062dc
mov edx, dword [esp + 0x18]
push edx
call fcn.0040e74d
add esp, 4
jmp 0x4062dc
lea edx, [esp + 0x10]
push edx
push 0x41d0d8
mov dword [esp + 0x18], ebx
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jge 0x4061a4
mov eax, dword [esp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 0x14]
call fcn.00402220
jmp 0x4062dc
push edi
push 0x200
lea edx, [esp + 0x38]
push edx
push str.allusersprofile
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x40622a
push ebx
push esi
lea eax, [esp + 0x3c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x4061e7
push ebx
push 0x41b386
push 0x41b364
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4062d2
lea edi, [esp + 0x34]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4061f0
mov cx, word [0x41b360]
mov eax, dword [esp + 0x454]
mov word [edi], cx
mov edx, eax
jmp 0x406210
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x406210
lea edi, [esp + 0x34]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x406220
jmp 0x406278
lea edi, [esp + 0x34]
dec edi
nop
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x406230
mov edx, dword [0x41b358]
mov ax, word [0x41b35c]
mov cl, byte [0x41b35e]
mov dword [edi], edx
mov word [edi + 4], ax
mov eax, dword [esp + 0x454]
mov byte [edi + 6], cl
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x406260
lea edi, [esp + 0x34]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x406270
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 0x104
lea edx, [esp + 0x238]
push edx
mov ecx, eax
push 0xffffffffffffffff
lea eax, [esp + 0x40]
push eax
push ebx
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 1
lea edx, [esp + 0x238]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push eax
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 0x18]
call fcn.00402220
pop edi
mov ecx, dword [esp + 0x43c]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x434]
pop ebx
call fcn.0040e818
add esp, 0x440
ret