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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__wtol]
push esi
mov esi, ecx
movzx eax, word [esi]
cmp eax, 0x30
jb 0x404851
cmp eax, 0x39
ja 0x404851
push esi
call ebx
pop ecx
jmp 0x4048d6
push 0x20
pop ecx
or eax, ecx
sub eax, 0x64
je 0x4048bd
sub eax, 0xc
je 0x4048a2
sub eax, 3
je 0x404887
dec eax
jne 0x404b33
mov ax, word [esi + 2]
or ax, cx
xor ecx, ecx
cmp ax, 0x75
setne cl
lea eax, [ecx - 1]
and eax, 0xffffffef
add eax, 0x18
jmp 0x4048d6
mov ax, word [esi + 2]
or ax, cx
xor ecx, ecx
cmp ax, 0x75
setne cl
lea eax, [ecx - 1]
and eax, 0xfffffff5
add eax, 0x16
jmp 0x4048d6
mov ax, word [esi + 2]
or ax, cx
xor ecx, ecx
cmp ax, 0x75
setne cl
lea eax, [ecx - 1]
and eax, 0xffffffeb
add eax, 0x17
jmp 0x4048d6
mov ax, word [esi + 2]
or ax, cx
xor ecx, ecx
cmp ax, 0x75
setne cl
lea eax, [ecx - 1]
and eax, 0xfffffff7
add eax, 0x19
push edi
xor edi, edi
jmp 0x4048e7
cmp cx, di
je 0x404b32
add esi, 2
movzx ecx, word [esi]
cmp ecx, 0x2c
jne 0x4048db
push edi
push eax
lea eax, [ebp - 0x280]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x404b32
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x20]
call fcn.00410ec4
lea ecx, [ebp - 0x2c]
call fcn.00410ea0
lea ecx, [ebp - 0x50]
call fcn.00410ea0
lea ecx, [ebp - 0x44]
call fcn.00410ea0
lea ecx, [ebp - 0x5c]
call fcn.00410ea0
lea ecx, [ebp - 0x14]
call fcn.00410ea0
lea ecx, [ebp - 0x68]
call fcn.00410ea0
lea ecx, [ebp - 0x38]
call fcn.00410ea0
lea ecx, [ebp - 0x74]
call fcn.00410ea0
lea edx, [ebp - 0x2c]
mov ecx, esi
call fcn.004034e7
cmp dword [ebp - 0x28], edi
je 0x404ae7
lea edx, [ebp - 0x50]
mov ecx, eax
call fcn.004034e7
lea edx, [ebp - 0x44]
mov ecx, eax
call fcn.004034e7
lea edx, [ebp - 0x5c]
mov ecx, eax
call fcn.004034e7
lea edx, [ebp - 0x14]
mov ecx, eax
call fcn.004034e7
lea edx, [ebp - 0x68]
mov ecx, eax
call fcn.004034e7
lea edx, [ebp - 0x38]
mov ecx, eax
call fcn.004034e7
lea edx, [ebp - 0x74]
mov ecx, eax
call fcn.004034e7
push dword [ebp - 0x74]
call ebx
pop ecx
mov esi, eax
cmp dword [ebp - 0x10], edi
jne 0x4049ee
lea ecx, [ebp - 0x2c]
call fcn.00403857
mov ecx, dword [ebp - 0x2c]
lea eax, [ecx + eax*2 + 2]
push eax
lea ecx, [ebp - 0x14]
call fcn.00410f25
push 0x2e
lea ecx, [ebp - 0x14]
call fcn.0041113a
cmp eax, edi
jl 0x4049ee
mov edx, dword [ebp - 0x14]
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov word [edx + eax*2], cx
push 0x5c
lea ecx, [ebp - 0x20]
call fcn.00401567
cmp dword [ebp - 0x40], edi
je 0x404a13
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x20]
call fcn.00411023
push 0x5c
lea ecx, [ebp - 0x20]
call fcn.00401567
mov ecx, dword [ebp - 0x20]
call fcn.004046ce
test eax, eax
je 0x404ae7
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x20]
call fcn.00411023
push str..lnk
lea ecx, [ebp - 0x20]
call fcn.00410fe3
lea eax, [ebp - 4]
push eax
push 0x41c778
push 1
push edi
push 0x41c7c8
mov dword [ebp - 4], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x404ae7
mov eax, dword [ebp - 4]
push dword [ebp - 0x2c]
mov dword [ebp - 8], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp dword [ebp - 0x58], edi
je 0x404a7e
mov eax, dword [ebp - 4]
push dword [ebp - 0x5c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp dword [ebp - 0x4c], edi
je 0x404a8f
mov eax, dword [ebp - 4]
push dword [ebp - 0x50]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp dword [ebp - 0x64], edi
je 0x404aa0
mov eax, dword [ebp - 4]
push dword [ebp - 0x68]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
cmp dword [ebp - 0x34], edi
je 0x404ab2
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push esi
push dword [ebp - 0x38]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x41c7a8
push eax
call dword [ecx]
test eax, eax
js 0x404ade
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp - 0x20]
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x74]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x68]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x5c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x44]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x50]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x20]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x24
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret