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

Disassembly:
push 0xffffffffffffffff
push 0x416e0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x434
mov eax, dword [0x41e260]
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 0x405457
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00403110
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.00401950
cmp eax, ebx
jle 0x40549f
cmp eax, dword [esp + 0x28]
jae 0x40549f
push 0x64
push eax
lea ecx, [esp + 0x1c]
call fcn.00401ea0
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [esp + 8]
push ecx
push 0x419ee8
push 7
push ebx
push 0x419ef8
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x4054d3
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [esp + 0x2c], 0x10
jmp 0x405547
mov eax, dword [esp + 8]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x50]
test eax, eax
jge 0x40550f
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 0x4056cc
mov eax, dword [esp + 0x18]
push eax
call fcn.0040bd2d
add esp, 4
jmp 0x4056cc
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov esi, 0x10
cmp eax, esi
jae 0x405524
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 0x40555f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [esp + 0x2c], esi
jb 0x4056cc
mov edx, dword [esp + 0x18]
push edx
call fcn.0040bd2d
add esp, 4
jmp 0x4056cc
lea edx, [esp + 0x10]
push edx
push 0x419f08
mov dword [esp + 0x18], ebx
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jge 0x405594
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.00401e70
jmp 0x4056cc
push edi
push 0x200
lea edx, [esp + 0x38]
push edx
push str.allusersprofile
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x40561a
push ebx
push esi
lea eax, [esp + 0x3c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x4055d7
push ebx
push 0x41833a
push 0x418318
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4056c2
lea edi, [esp + 0x34]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4055e0
mov cx, word [0x418314]
mov eax, dword [esp + 0x454]
mov word [edi], cx
mov edx, eax
jmp 0x405600
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405600
lea edi, [esp + 0x34]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x405610
jmp 0x405668
lea edi, [esp + 0x34]
dec edi
nop
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x405620
mov edx, dword [0x41830c]
mov ax, word [0x418310]
mov cl, byte [0x418312]
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 0x405650
lea edi, [esp + 0x34]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x405660
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.00401e70
pop edi
mov ecx, dword [esp + 0x43c]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x434]
pop ebx
call fcn.0040bdf8
add esp, 0x440
ret