Function at 0x4602f0
Capabilities:
Create shortcut via ishelllink
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x51f940
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x80c]
mov dword [ebp - 0x44], eax
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x30], 1
mov byte [ebp - 0x11], 0
mov dword [ebp - 4], esi
cmp dword [eax + 4], esi
je 0x46037e
lea eax, [edi + 0x3a00]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x460361
sub eax, edx
sar eax, 1
je 0x46037e
cmp dword [edi + 0x4a00], esi
je 0x46037e
mov byte [ebp - 0x11], 1
xor eax, eax
cmp byte [edi + 0x4a08], al
setne al
lea eax, [eax + eax + 0x17]
lea ecx, [ebp - 0x2c]
push ecx
push esi
push esi
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov dword [ebp - 0x18], eax
cmp eax, esi
je 0x4603c9
push str.___Get_Folder_Location_Fail___
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov dword [ebp - 0x40], 3
push 0x5814b0
lea edx, [ebp - 0x40]
push edx
call fcn.004fd5a3
push 0x800
push esi
lea eax, [ebp]
push eax
call fcn.004fd670
add esp, 0xc
lea ecx, [ebp]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x460414
push str.__Get_Folder_Path_Fail___
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov dword [ebp - 0x34], 3
push 0x5814b0
lea eax, [ebp - 0x34]
push eax
call fcn.004fd5a3
lea eax, [ebp]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x460420
sub eax, edx
sar eax, 1
mov ebx, 0x5c
cmp word [ebp + eax*2 - 2], bx
jne 0x460455
lea eax, [ebp]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x460441
sub eax, edx
sar eax, 1
mov word [ebp + eax*2 - 2], si
lea esi, [edi + 0x3200]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x460460
sub eax, edx
sar eax, 1
je 0x460496
push 0x5356dc
push 0x400
lea ecx, [ebp]
push ecx
call fcn.004fad44
push esi
push 0x400
lea edx, [ebp]
push edx
call fcn.004fad44
add esp, 0x18
lea eax, [ebp]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4604a0
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 2], bx
jne 0x4604d4
lea eax, [ebp]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4604c0
sub eax, edx
sar eax, 1
mov word [ebp + eax*2 - 2], cx
cmp byte [edi + 0x4a0a], 0
je 0x4604ea
call fcn.004290d0
mov eax, dword [eax + 0xe230]
jmp 0x4604ec
xor eax, eax
push 0
push eax
lea edx, [ebp]
call fcn.0049d3f0
add esp, 8
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x1c]
push eax
push 0x5347e0
mov ebx, 1
push ebx
push 0
push 0x5347f0
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
call esi
mov dword [ebp - 0x18], eax
test eax, eax
jl 0x460529
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
jne 0x460587
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x30], eax
test eax, eax
jge 0x46055e
push eax
push str.__CoInitialize_Fail____..._hr___08x
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
mov dword [ebp - 0x48], ebx
push 0x5814b0
lea ecx, [ebp - 0x48]
push ecx
call fcn.004fd5a3
lea edx, [ebp - 0x1c]
push edx
push 0x5347e0
push ebx
push 0
push 0x5347f0
call esi
mov dword [ebp - 0x18], eax
test eax, eax
jl 0x460860
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x460860
lea ebx, [edi + 0x200]
mov eax, dword [ecx]
push ebx
push ecx
mov ecx, dword [eax + 0x50]
call ecx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4605c4
push str.__Set_Target_Path_Fail___
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov dword [ebp - 0x3c], 0xd
push 0x5814b0
lea edx, [ebp - 0x3c]
push edx
call fcn.004fd5a3
mov dword [ebp - 0x18], 1
cmp byte [ebp - 0x11], 0
je 0x460604
lea edx, [edi + 0x2a00]
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4605e0
sub eax, esi
sar eax, 1
je 0x460604
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push edx
push eax
mov edx, dword [ecx + 0x1c]
call edx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x460646
lea edx, [edi + 0x2200]
mov eax, edx
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x460610
sub eax, esi
sar eax, 1
je 0x460646
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push edx
push eax
mov edx, dword [ecx + 0x1c]
call edx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x460646
push str.__Set_Description_Fail___
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
lea edx, [edi + 0xa00]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x460651
sub eax, esi
sar eax, 1
je 0x460687
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push edx
push eax
mov edx, dword [ecx + 0x2c]
call edx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x460687
push str.__Set_Argument_Fail___
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
lea edx, [edi + 0x1a00]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x460692
sub eax, esi
sar eax, 1
je 0x4606c8
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push edx
push eax
mov edx, dword [ecx + 0x24]
call edx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4606c8
push str.__Set_Working_directory_Fail___
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
lea edx, [edi + 0x1200]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4606d3
sub eax, esi
sar eax, 1
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
je 0x4606f9
mov esi, dword [edi + 0x4a04]
push esi
push edx
push eax
mov edx, dword [ecx + 0x44]
call edx
jmp 0x460707
mov edx, dword [edi + 0x4a04]
push edx
push ebx
push eax
mov eax, dword [ecx + 0x44]
call eax
mov dword [ebp - 0x18], eax
test eax, eax
je 0x460720
push str.__Set_Icon_Location_Fail___
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
push edx
push 0x534820
push eax
mov eax, dword [ecx]
call eax
mov dword [ebp - 0x18], eax
test eax, eax
jge 0x460762
push edi
push str._s_created_file_shorcut_icon_Fail
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
mov dword [ebp - 0x4c], 1
push 0x5814b0
lea ecx, [ebp - 0x4c]
push ecx
call fcn.004fd5a3
lea esi, [edi + 0x4200]
push 0x800
push 0
push esi
call fcn.004fd670
push edi
lea edx, [ebp]
push edx
push str._s_s.lnk
mov edx, esi
call fcn.00404380
add esp, 0x18
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
push 1
push esi
push eax
mov edx, dword [ecx + 0x18]
call edx
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x4607dd
cmp byte [ebp - 0x11], al
je 0x4607d4
mov eax, dword [edi + 0x4a00]
push eax
add edi, 0x3a00
push edi
push esi
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 4]
call edx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4607d4
push eax
push str.Set_locale_name_for_MUI_failed_:___ld_____
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
mov dword [ebp - 0x24], 0
jmp 0x4607f7
push edi
push str._s_created_file_shorcut_icon_Fail
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
mov dword [ebp - 0x24], 0xd
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x460814
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x460823
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
call edx
cmp dword [ebp - 0x30], 0
jne 0x46082f
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.004fa103
add ebp, 0x804
mov esp, ebp
pop ebp
ret 4
push eax
push str.__CoCreateInstance_Fail____..._hr___08x
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
mov dword [ebp - 0x38], ebx
push 0x5814b0
lea eax, [ebp - 0x38]
push eax
call fcn.004fd5a3
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, 0x460897
ret