Function at 0x402590
Capabilities:
Create shortcut via ishelllink
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403c06
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x407018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x21c], ebx
push str.CreateShortcut_enter_n
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
call esi
push str.Eye_Care_Switcher.exe
mov dword [ebp - 0x224], eax
call esi
mov ecx, dword [ebp - 0x224]
lea eax, [ecx + eax + 0xa]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_]
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x40263f
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x402635
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 1
jmp 0x4027f5
push str.Eye_Care_Switcher.exe
push edi
push str._s_s
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, ebx
jge 0x40268b
push str._CreateShortcut_CoInitializeEx_fail_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x402684
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
jmp 0x4027f5
lea eax, [ebp - 0x21c]
push eax
push 0x40422c
push 1
push ebx
push 0x40423c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x224], eax
cmp eax, ebx
jl 0x4027d6
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x220], ebx
cmp eax, ebx
je 0x4026dc
mov ecx, dword [eax]
lea edx, [ebp - 0x220]
push edx
push 0x4053f0
push eax
mov eax, dword [ecx]
call eax
mov eax, dword [ebp - 0x21c]
mov byte [ebp - 4], 1
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push esi
push eax
call edx
mov esi, eax
cmp esi, ebx
jge 0x40272a
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x220]
cmp eax, ebx
je 0x40270a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x402723
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
jmp 0x4027f5
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push edi
push eax
call edx
mov esi, eax
cmp esi, ebx
jge 0x402777
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x220]
cmp eax, ebx
je 0x40275a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x402723
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
jmp 0x4027f5
mov eax, dword [ebp - 0x228]
push 0x104
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.MSVCR100.dll_wcsncpy]
mov eax, dword [ebp - 0x220]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
add esp, 0xc
push 1
lea ecx, [ebp - 0x218]
push ecx
push eax
call edx
push str.CreateShortcut_sucess_n
mov dword [ebp - 0x224], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x220]
cmp eax, ebx
je 0x4027d6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x4027ef
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040308f
mov esp, ebp
pop ebp
ret