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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a8
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x30
jl 0x405227
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 0x39
jg 0x405227
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.msvcrt.dll__wtol]
add esp, 4
mov dword [ebp - 0x280], eax
jmp 0x405309
mov edx, dword [ebp + 8]
movzx eax, word [edx]
or eax, 0x20
mov dword [ebp - 0x2a8], eax
mov ecx, dword [ebp - 0x2a8]
sub ecx, 0x64
mov dword [ebp - 0x2a8], ecx
cmp dword [ebp - 0x2a8], 0x10
ja case.0x40525f.1
mov edx, dword [ebp - 0x2a8]
movzx eax, byte [edx + 0x40584c]
jmp dword [eax*4 + 0x405838]
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 2]
or edx, 0x20
cmp edx, 0x75
jne 0x405281
mov dword [ebp - 0x280], 0x10
jmp 0x40528b
mov dword [ebp - 0x280], 0x19
jmp 0x405309
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 2]
or ecx, 0x20
cmp ecx, 0x75
jne 0x4052a8
mov dword [ebp - 0x280], 0xb
jmp 0x4052b2
mov dword [ebp - 0x280], 0x16
jmp 0x405309
mov edx, dword [ebp + 8]
movzx eax, word [edx + 2]
or eax, 0x20
cmp eax, 0x75
jne 0x4052cf
mov dword [ebp - 0x280], 2
jmp 0x4052d9
mov dword [ebp - 0x280], 0x17
jmp 0x405309
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 2]
or edx, 0x20
cmp edx, 0x75
jne 0x4052f6
mov dword [ebp - 0x280], 7
jmp 0x405300
mov dword [ebp - 0x280], 0x18
jmp 0x405309
xor eax, eax
jmp 0x405834
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x2c
je 0x405330
mov edx, dword [ebp + 8]
movzx eax, word [edx]
test eax, eax
jne 0x405325
xor eax, eax
jmp 0x405834
mov ecx, dword [ebp + 8]
add ecx, 2
mov dword [ebp + 8], ecx
jmp 0x405309
push 0
mov edx, dword [ebp - 0x280]
push edx
lea eax, [ebp - 0x248]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x405353
xor eax, eax
jmp 0x405834
lea ecx, [ebp - 0x248]
push ecx
lea ecx, [ebp - 0x18]
call fcn.004016a0
lea ecx, [ebp - 0x290]
call fcn.004010d0
lea ecx, [ebp - 0x270]
call fcn.004010d0
lea ecx, [ebp - 0x24]
call fcn.004010d0
lea ecx, [ebp - 0x264]
call fcn.004010d0
lea ecx, [ebp - 0x27c]
call fcn.004010d0
lea ecx, [ebp - 0x254]
call fcn.004010d0
lea ecx, [ebp - 0xc]
call fcn.004010d0
lea ecx, [ebp - 0x34]
call fcn.004010d0
lea edx, [ebp - 0x290]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004050e0
add esp, 8
mov dword [ebp + 8], eax
lea ecx, [ebp - 0x290]
call fcn.004038c0
movzx ecx, al
test ecx, ecx
je 0x405445
mov dword [ebp - 0x29c], 0
lea ecx, [ebp - 0x34]
call fcn.00414ca0
lea ecx, [ebp - 0xc]
call fcn.00414ca0
lea ecx, [ebp - 0x254]
call fcn.00414ca0
lea ecx, [ebp - 0x27c]
call fcn.00414ca0
lea ecx, [ebp - 0x264]
call fcn.00414ca0
lea ecx, [ebp - 0x24]
call fcn.00414ca0
lea ecx, [ebp - 0x270]
call fcn.00414ca0
lea ecx, [ebp - 0x290]
call fcn.00414ca0
lea ecx, [ebp - 0x18]
call fcn.00414ca0
mov eax, dword [ebp - 0x29c]
jmp 0x405834
lea edx, [ebp - 0x270]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004050e0
add esp, 8
mov dword [ebp + 8], eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004050e0
add esp, 8
mov dword [ebp + 8], eax
lea eax, [ebp - 0x264]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004050e0
add esp, 8
mov dword [ebp + 8], eax
lea edx, [ebp - 0x27c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004050e0
add esp, 8
mov dword [ebp + 8], eax
lea ecx, [ebp - 0x254]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004050e0
add esp, 8
mov dword [ebp + 8], eax
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004050e0
add esp, 8
mov dword [ebp + 8], eax
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004050e0
add esp, 8
lea ecx, [ebp - 0x34]
call fcn.004012d0
push eax
call dword [sym.imp.msvcrt.dll__wtol]
add esp, 4
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x27c]
call fcn.004038c0
movzx ecx, al
test ecx, ecx
je 0x40555e
lea edx, [ebp - 0x290]
push edx
call fcn.00405bd0
add esp, 4
mov dword [ebp - 0x294], eax
lea ecx, [ebp - 0x290]
call fcn.004012d0
mov ecx, dword [ebp - 0x294]
lea edx, [eax + ecx*2 + 2]
push edx
lea ecx, [ebp - 0x27c]
call fcn.00401d50
push 0x2e
lea ecx, [ebp - 0x27c]
call fcn.004195d0
mov dword [ebp - 0x294], eax
cmp dword [ebp - 0x294], 0
jl 0x40555e
mov eax, dword [ebp - 0x294]
push eax
lea ecx, [ebp - 0x27c]
call fcn.004016c0
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.00401c50
lea ecx, [ebp - 0x24]
call fcn.004038c0
movzx ecx, al
test ecx, ecx
jne 0x40558d
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x18]
call fcn.00419480
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.00401c50
lea ecx, [ebp - 0x18]
call fcn.004012d0
push eax
call fcn.00404c20
add esp, 4
test eax, eax
jne 0x40560e
mov dword [ebp - 0x2a0], 0
lea ecx, [ebp - 0x34]
call fcn.00414ca0
lea ecx, [ebp - 0xc]
call fcn.00414ca0
lea ecx, [ebp - 0x254]
call fcn.00414ca0
lea ecx, [ebp - 0x27c]
call fcn.00414ca0
lea ecx, [ebp - 0x264]
call fcn.00414ca0
lea ecx, [ebp - 0x24]
call fcn.00414ca0
lea ecx, [ebp - 0x270]
call fcn.00414ca0
lea ecx, [ebp - 0x290]
call fcn.00414ca0
lea ecx, [ebp - 0x18]
call fcn.00414ca0
mov eax, dword [ebp - 0x2a0]
jmp 0x405834
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x18]
call fcn.00419480
push str..lnk
lea ecx, [ebp - 0x18]
call fcn.00419420
mov dword [ebp - 0x284], 0
lea ecx, [ebp - 0x284]
push ecx
push 0x42b0a4
push 1
push 0
push 0x42b0d4
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0
jl 0x4057cd
mov dword [ebp - 0x298], 0
lea ecx, [ebp - 0x290]
call fcn.004012d0
push eax
mov edx, dword [ebp - 0x284]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x284]
push ecx
mov edx, dword [eax + 0x50]
call edx
lea ecx, [ebp - 0x264]
call fcn.004038c0
movzx eax, al
test eax, eax
jne 0x4056be
lea ecx, [ebp - 0x264]
call fcn.004012d0
push eax
mov ecx, dword [ebp - 0x284]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x284]
push eax
mov ecx, dword [edx + 0x1c]
call ecx
lea ecx, [ebp - 0x270]
call fcn.004038c0
movzx edx, al
test edx, edx
jne 0x4056f0
lea ecx, [ebp - 0x270]
call fcn.004012d0
push eax
mov eax, dword [ebp - 0x284]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x284]
push edx
mov eax, dword [ecx + 0x2c]
call eax
lea ecx, [ebp - 0x254]
call fcn.004038c0
movzx ecx, al
test ecx, ecx
jne 0x405722
lea ecx, [ebp - 0x254]
call fcn.004012d0
push eax
mov edx, dword [ebp - 0x284]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x284]
push ecx
mov edx, dword [eax + 0x24]
call edx
lea ecx, [ebp - 0xc]
call fcn.004038c0
movzx eax, al
test eax, eax
jne 0x405752
mov ecx, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0xc]
call fcn.004012d0
push eax
mov edx, dword [ebp - 0x284]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x284]
push ecx
mov edx, dword [eax + 0x44]
call edx
lea eax, [ebp - 0x298]
push eax
push 0x42b0c4
mov ecx, dword [ebp - 0x284]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x284]
push eax
mov ecx, dword [edx]
call ecx
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0
jl 0x4057b9
push 1
lea ecx, [ebp - 0x18]
call fcn.004012d0
push eax
mov edx, dword [ebp - 0x298]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x298]
push ecx
mov edx, dword [eax + 0x18]
call edx
mov dword [ebp - 0x258], eax
mov eax, dword [ebp - 0x298]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x298]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0x284]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x284]
push eax
mov ecx, dword [edx + 8]
call ecx
mov dword [ebp - 0x2a4], 0
lea ecx, [ebp - 0x34]
call fcn.00414ca0
lea ecx, [ebp - 0xc]
call fcn.00414ca0
lea ecx, [ebp - 0x254]
call fcn.00414ca0
lea ecx, [ebp - 0x27c]
call fcn.00414ca0
lea ecx, [ebp - 0x264]
call fcn.00414ca0
lea ecx, [ebp - 0x24]
call fcn.00414ca0
lea ecx, [ebp - 0x270]
call fcn.00414ca0
lea ecx, [ebp - 0x290]
call fcn.00414ca0
lea ecx, [ebp - 0x18]
call fcn.00414ca0
mov eax, dword [ebp - 0x2a4]
mov esp, ebp
pop ebp
ret