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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5acc26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3ac
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x14c], esp
push 0x5b9cfc
call fcn.00415e60
lea eax, [ebp - 0x18]
push eax
call fcn.00462850
add esp, 0x1c
mov dword [ebp - 0x150], eax
mov dword [ebp - 4], 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x154], esp
push str.create_shortcut
call fcn.00415e60
lea ecx, [ebp - 0x34]
push ecx
call fcn.00462850
add esp, 0x1c
mov dword [ebp - 0x158], eax
mov byte [ebp - 4], 1
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x15c], esp
push str.shortcut_error
call fcn.00415e60
lea edx, [ebp - 0x28]
push edx
call fcn.00462850
add esp, 0x1c
mov dword [ebp - 0x160], eax
mov byte [ebp - 4], 2
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x164], esp
push str.oid_lu
call fcn.00415e60
lea eax, [ebp - 0x24]
push eax
call fcn.00462850
add esp, 0x1c
mov dword [ebp - 0x168], eax
mov byte [ebp - 4], 3
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x16c], esp
push str.SHGetFolderPath_error_code_Xoid_lu
call fcn.00415e60
lea ecx, [ebp - 0x20]
push ecx
call fcn.00462850
add esp, 0x1c
mov dword [ebp - 0x170], eax
mov byte [ebp - 4], 4
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x174], esp
push str.QueryInterface_error_code_Xoid_lu
call fcn.00415e60
lea edx, [ebp - 0x14]
push edx
call fcn.00462850
add esp, 0x1c
mov dword [ebp - 0x178], eax
mov byte [ebp - 4], 5
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x17c], esp
push str.CoCreateInstance_error_code_Xoid_lu
call fcn.00415e60
lea eax, [ebp - 0x2c]
push eax
call fcn.00462850
add esp, 0x1c
mov dword [ebp - 0x180], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp + 0x14]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x184], esp
lea edx, [ebp - 0x24]
push edx
call fcn.00414330
lea eax, [ebp - 0x7c]
push eax
call fcn.00462060
add esp, 8
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x78], ecx
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x78]
call fcn.0041afc0
push eax
lea edx, [ebp - 0x24]
push edx
call fcn.00422410
add esp, 0xc
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x7c]
call fcn.004185c0
push 0x5b9d5c
lea ecx, [ebp - 0x44]
call fcn.00414470
mov byte [ebp - 4], 8
push 0x5b9dac
lea ecx, [ebp - 0x40]
call fcn.00414470
mov byte [ebp - 4], 9
push ecx
mov ecx, esp
mov dword [ebp - 0x188], esp
lea eax, [ebp - 0x34]
push eax
call fcn.00414330
lea ecx, [ebp - 0x9c]
push ecx
call fcn.00462060
add esp, 8
mov dword [ebp - 0x80], eax
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x84], edx
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x90], eax
push ecx
mov ecx, esp
mov dword [ebp - 0x18c], esp
lea edx, [ebp - 0x18]
push edx
call fcn.00414330
lea eax, [ebp - 0x98]
push eax
call fcn.00462060
add esp, 8
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x8c], ecx
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0x94], edx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x90]
push eax
mov ecx, dword [ebp - 0x94]
push ecx
call fcn.004845b0
add esp, 0x14
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x98]
call fcn.004185c0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x9c]
call fcn.004185c0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x40]
call fcn.004185c0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x44]
call fcn.004185c0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [ebp - 0x10]
call fcn.004140c0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x10]
call fcn.00414810
push eax
push 0x5c5558
push 0x17
push 0
push 0x5c5568
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jl 0x4785d1
lea edx, [ebp - 0x3b8]
push edx
push 0
push 0
mov eax, dword [ebp + 0x18]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jge 0x47825f
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
push ecx
mov ecx, esp
mov dword [ebp - 0x190], esp
lea eax, [ebp - 0x20]
push eax
call fcn.00414330
lea ecx, [ebp - 0xa8]
push ecx
call fcn.00462060
add esp, 8
mov dword [ebp - 0xa0], eax
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], edx
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0xa4]
call fcn.0041afc0
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00422410
add esp, 0x10
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xa8]
call fcn.004185c0
push 0x5b9e50
lea ecx, [ebp - 0x4c]
call fcn.00414470
mov byte [ebp - 4], 0xe
push 0x5b9e54
lea ecx, [ebp - 0x48]
call fcn.00414470
mov byte [ebp - 4], 0xf
push ecx
mov ecx, esp
mov dword [ebp - 0x194], esp
lea edx, [ebp - 0x28]
push edx
call fcn.00414330
lea eax, [ebp - 0xc8]
push eax
call fcn.00462060
add esp, 8
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0xb0], ecx
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0xb0]
mov dword [ebp - 0xbc], edx
push ecx
mov ecx, esp
mov dword [ebp - 0x198], esp
lea eax, [ebp - 0x18]
push eax
call fcn.00414330
lea ecx, [ebp - 0xc4]
push ecx
call fcn.00462060
add esp, 8
mov dword [ebp - 0xb4], eax
mov edx, dword [ebp - 0xb4]
mov dword [ebp - 0xb8], edx
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xc0], eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0xbc]
push ecx
mov edx, dword [ebp - 0xc0]
push edx
call fcn.004845b0
add esp, 0x14
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0xc4]
call fcn.004185c0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xc8]
call fcn.004185c0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x48]
call fcn.004185c0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x4c]
call fcn.004185c0
mov byte [ebp - 0x19], 1
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x10]
call fcn.00418510
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
call fcn.004185c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
call fcn.004185c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.004185c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.004185c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004185c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.004185c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004185c0
mov al, byte [ebp - 0x19]
jmp 0x47880d
lea eax, [ebp - 0x3b8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov ecx, dword [ebp + 0xc]
call fcn.0041afc0
push eax
push 0x104
lea ecx, [ebp - 0x3b8]
push ecx
call fcn.00470c70
mov dword [ebp - 0x3c], eax
push str..lnk
lea edx, [ebp - 0x3b8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
lea ecx, [ebp - 0x10]
call fcn.0041afc0
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
mov dword [ebp - 0xd0], edx
mov ecx, dword [ebp + 8]
call fcn.0041afc0
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xcc]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
call dword [ebp - 0xd0]
lea ecx, [ebp - 0x10]
call fcn.0041afc0
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x54]
mov eax, dword [edx]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0xd8], ecx
mov ecx, dword [ebp + 0xc]
call fcn.0041afc0
mov dword [ebp - 0xd4], eax
mov edx, dword [ebp - 0xd4]
push edx
mov eax, dword [ebp - 0x54]
push eax
call dword [ebp - 0xd8]
lea ecx, [ebp - 0x10]
call fcn.0041afc0
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx]
mov eax, dword [edx + 0x44]
mov dword [ebp - 0xe0], eax
mov ecx, dword [ebp + 0x10]
call fcn.0041afc0
mov dword [ebp - 0xdc], eax
push 0
mov ecx, dword [ebp - 0xdc]
push ecx
mov edx, dword [ebp - 0x58]
push edx
call dword [ebp - 0xe0]
mov ecx, dword [ebp + 0x1c]
call fcn.00422920
movzx eax, al
test eax, eax
jne 0x47838c
lea ecx, [ebp - 0x10]
call fcn.0041afc0
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
mov dword [ebp - 0xe8], eax
mov ecx, dword [ebp + 0x1c]
call fcn.0041afc0
mov dword [ebp - 0xe4], eax
mov ecx, dword [ebp - 0xe4]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
call dword [ebp - 0xe8]
lea ecx, [ebp - 0x10]
call fcn.0041afc0
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebp - 0xec], edx
lea eax, [ebp - 0x38]
push eax
push 0x5c55b8
mov ecx, dword [ebp - 0x60]
push ecx
call dword [ebp - 0xec]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jl 0x4783f7
mov edx, dword [ebp - 0x38]
mov eax, dword [edx]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0xf0], ecx
push 1
lea edx, [ebp - 0x3b8]
push edx
mov eax, dword [ebp - 0x38]
push eax
call dword [ebp - 0xf0]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [edx + 8]
call ecx
jmp 0x4785cc
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x3c]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x19c], esp
lea edx, [ebp - 0x14]
push edx
call fcn.00414330
lea eax, [ebp - 0xfc]
push eax
call fcn.00462060
add esp, 8
mov dword [ebp - 0xf4], eax
mov ecx, dword [ebp - 0xf4]
mov dword [ebp - 0xf8], ecx
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0xf8]
call fcn.0041afc0
push eax
lea edx, [ebp - 0x14]
push edx
call fcn.00422410
add esp, 0x10
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xfc]
call fcn.004185c0
push 0x5b9e64
lea ecx, [ebp - 0x68]
call fcn.00414470
mov byte [ebp - 4], 0x13
push 0x5b9e68
lea ecx, [ebp - 0x64]
call fcn.00414470
mov byte [ebp - 4], 0x14
push ecx
mov ecx, esp
mov dword [ebp - 0x1a0], esp
lea eax, [ebp - 0x28]
push eax
call fcn.00414330
lea ecx, [ebp - 0x11c]
push ecx
call fcn.00462060
add esp, 8
mov dword [ebp - 0x100], eax
mov edx, dword [ebp - 0x100]
mov dword [ebp - 0x104], edx
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0x110], eax
push ecx
mov ecx, esp
mov dword [ebp - 0x1a4], esp
lea edx, [ebp - 0x18]
push edx
call fcn.00414330
lea eax, [ebp - 0x118]
push eax
call fcn.00462060
add esp, 8
mov dword [ebp - 0x108], eax
mov ecx, dword [ebp - 0x108]
mov dword [ebp - 0x10c], ecx
mov byte [ebp - 4], 0x16
mov edx, dword [ebp - 0x10c]
mov dword [ebp - 0x114], edx
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x114]
push ecx
call fcn.004845b0
add esp, 0x14
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x118]
call fcn.004185c0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x11c]
call fcn.004185c0
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x64]
call fcn.004185c0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x68]
call fcn.004185c0
mov byte [ebp - 0x1a], 1
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x10]
call fcn.00418510
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
call fcn.004185c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
call fcn.004185c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.004185c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.004185c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004185c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.004185c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004185c0
mov al, byte [ebp - 0x1a]
jmp 0x47880d
jmp 0x4787a3
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x30]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x1a8], esp
lea edx, [ebp - 0x14]
push edx
call fcn.00414330
lea eax, [ebp - 0x128]
push eax
call fcn.00462060
add esp, 8
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0x124], ecx
mov byte [ebp - 4], 0x17
mov ecx, dword [ebp - 0x124]
call fcn.0041afc0
push eax
lea edx, [ebp - 0x2c]
push edx
call fcn.00422410
add esp, 0x10
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x128]
call fcn.004185c0
push 0x5b9e6c
lea ecx, [ebp - 0x70]
call fcn.00414470
mov byte [ebp - 4], 0x18
push 0x5b9e70
lea ecx, [ebp - 0x6c]
call fcn.00414470
mov byte [ebp - 4], 0x19
push ecx
mov ecx, esp
mov dword [ebp - 0x1ac], esp
lea eax, [ebp - 0x28]
push eax
call fcn.00414330
lea ecx, [ebp - 0x148]
push ecx
call fcn.00462060
add esp, 8
mov dword [ebp - 0x12c], eax
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x130], edx
mov byte [ebp - 4], 0x1a
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x13c], eax
push ecx
mov ecx, esp
mov dword [ebp - 0x1b0], esp
lea edx, [ebp - 0x18]
push edx
call fcn.00414330
lea eax, [ebp - 0x144]
push eax
call fcn.00462060
add esp, 8
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 0x138], ecx
mov byte [ebp - 4], 0x1b
mov edx, dword [ebp - 0x138]
mov dword [ebp - 0x140], edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x6c]
push ecx
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x13c]
push eax
mov ecx, dword [ebp - 0x140]
push ecx
call fcn.004845b0
add esp, 0x14
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x144]
call fcn.004185c0
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x148]
call fcn.004185c0
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x6c]
call fcn.004185c0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x70]
call fcn.004185c0
mov byte [ebp - 0x1b], 1
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x10]
call fcn.00418510
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
call fcn.004185c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
call fcn.004185c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.004185c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.004185c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004185c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.004185c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004185c0
mov al, byte [ebp - 0x1b]
jmp 0x47880d
mov byte [ebp - 0x1c], 0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x10]
call fcn.00418510
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
call fcn.004185c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
call fcn.004185c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.004185c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.004185c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004185c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.004185c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004185c0
mov al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret