Function at 0x406830
Capabilities:
Create shortcut via ishelllink
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412150
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb04
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x1ec]
xor esi, esi
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp - 0x3f4]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp - 0x2f0]
rep stosd dword es:[edi], eax
mov ecx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x11], 1
mov dword [ebp - 4], esi
call fcn.00406570
mov eax, dword [ebx + 0x86f0]
push 0x40
push eax
call fcn.0040c608
add esp, 8
lea ecx, [ebx + 0x110]
mov dword [ebx + 0x86ec], eax
push str.ShortcutIcons
call fcn.004031e0
push esi
mov dword [ebx + 0x86f0], eax
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, esi
jl 0x406ecc
lea ecx, [ebp - 0x2f0]
push ecx
call fcn.004062c0
lea edx, [ebx + 0x8d70]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40690f
lea edi, [ebp - 0x2f0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
push 0x4165e8
lea edx, [ebp + ecx - 0x2f0]
push edx
jmp 0x406933
lea eax, [ebx + 0x220]
lea edi, [ebp - 0x2f0]
push eax
or ecx, 0xffffffff
xor eax, eax
push 0x4165e8
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ecx, [ebp + ecx - 0x2f0]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x2f0]
mov ecx, ebx
push edx
call fcn.00406f00
cmp eax, esi
jne 0x40695c
lea eax, [ebp - 0x2f0]
push eax
push str.Create_Shortcut_folder__s__success
jmp 0x406968
lea ecx, [ebp - 0x2f0]
push ecx
push str.Create_Shortcut_folder__s__fail__
push esi
push ebx
call fcn.004044c0
add esp, 0x10
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], esi
mov eax, dword [ebx + 0x86f0]
mov dword [ebp - 0x1c], esi
cmp esi, eax
jge 0x406eb0
lea edx, [ebp - 0x18]
push edx
push 0x413238
push 1
push 0
push 0x413248
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x28], eax
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x5fc]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp - 0x1ec]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [ebp - 0xe8]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp - 0x804]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [ebp - 0xa8]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [ebp - 0x68]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp - 0x908]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp - 0x700]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x406e9a
lea eax, [ebp - 0x5fc]
push 0x104
push eax
lea edi, [ebx + 0x110]
push 2
push esi
push str.ShortcutIcons
mov ecx, edi
call fcn.00403250
lea ecx, [ebp - 0x1ec]
push 0x104
lea edx, [ebp - 0x5fc]
push ecx
push edx
mov ecx, edi
call fcn.00403200
lea eax, [ebp - 0xe8]
push 0x40
push eax
push 0
push esi
push str.ShortcutIcons
mov ecx, edi
call fcn.00403250
lea ecx, [ebp - 0x804]
push 0x104
push ecx
push 1
push esi
push str.ShortcutIcons
mov ecx, edi
call fcn.00403250
mov eax, dword [ebx + 0x877c]
test eax, eax
je 0x406aa3
lea edx, [ebx + 0x8567]
lea eax, [ebp - 0x1ec]
push edx
push eax
mov ecx, edi
call fcn.00403d20
push 1
push 0x40
call fcn.0040c608
mov ecx, dword [ebx + 0x86ec]
add esp, 8
lea edx, [ebp - 0x908]
push 0x104
push edx
push 4
mov dword [ecx + esi*4], eax
push esi
push str.ShortcutIcons
mov ecx, edi
call fcn.00403250
lea eax, [ebp - 0xa8]
push 0x40
push eax
push 3
push esi
push str.ShortcutIcons
mov ecx, edi
call fcn.00403250
lea ecx, [ebp - 0xa8]
push ecx
mov ecx, ebx
call fcn.00409840
lea edx, [ebp - 0x700]
push 0x104
push edx
push 5
push esi
push str.ShortcutIcons
mov ecx, edi
call fcn.00403250
lea eax, [ebp - 0x68]
push 0x40
push eax
push 6
push esi
push str.ShortcutIcons
mov ecx, edi
call fcn.00403250
mov al, byte [ebp - 0x68]
test al, al
jne 0x406b59
lea edi, [ebx + 0x8460]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x68]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x3f4]
push 0x104
lea edx, [ebp - 0x908]
lea edi, [ebx + 0x110]
push ecx
push edx
mov ecx, edi
call fcn.00403200
mov cl, byte [ebx + 0x8567]
lea eax, [ebx + 0x8567]
test cl, cl
je 0x406b98
push eax
lea eax, [ebp - 0x3f4]
push eax
mov ecx, edi
call fcn.00403d20
lea edi, [ebp - 0x3f4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ebp + ecx - 0x3f5], 0x5c
je 0x406be5
mov edi, 0x41549c
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x3f4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x1c]
lea edi, [ebp - 0x1ec]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ebp + ecx - 0x1ed], 0x5c
je 0x406c32
mov edi, 0x41549c
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x1ec]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0xa8]
lea ecx, [ebp - 0x3f4]
push eax
push ecx
lea edx, [ebp - 0x3f4]
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [ebx + 0x86ec]
add esp, 0x10
lea eax, [ebp - 0x3f4]
mov edx, dword [ecx + esi*4]
push eax
push 0x40
push edx
lea eax, [ebp - 0x68]
push 0
lea ecx, [ebp - 0x700]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x1ec]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x24]
lea edi, [ebp - 0xe8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x1ec]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x18]
mov ecx, edx
and ecx, 3
lea edx, [ebp - 0x1ec]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x804]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, dword [ebx + 0x86ec]
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov edx, dword [edx + esi*4]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x1ec]
push 0
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x28]
test eax, eax
jge 0x406d1b
push str.Cannot_query_IID_IPersistFile_interface_to_create_shortcut_
push 0
push ebx
call fcn.004044c0
add esp, 0xc
mov eax, dword [ebx + 0x86ec]
lea edx, [ebp - 0x2f0]
mov ecx, dword [eax + esi*4]
lea eax, [ebp - 0x4f8]
push ecx
push edx
push str._s_s.lnk
push eax
call fcn.0040bd8f
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0xb10]
add esp, 0x10
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0xb10]
push 0x104
push ecx
lea edx, [ebp - 0x4f8]
push 0xffffffffffffffff
push edx
push eax
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push edx
mov ecx, dword [eax]
push 0x4133f0
push eax
call dword [ecx]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x406e67
mov ecx, dword [eax]
lea edx, [ebp - 0xb10]
push 1
push edx
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x406e37
mov ecx, dword [ebx + 0x86ec]
lea eax, [ebp - 0x4f8]
push eax
mov edx, dword [ecx + esi*4]
push edx
push str.Shortcut__s_has_been_created___s_
push 0
push ebx
call fcn.004044c0
add esp, 0x14
xor esi, esi
mov al, byte [esi + ebx + 0x260]
lea edi, [esi + ebx + 0x260]
test al, al
je 0x406e04
lea eax, [ebp - 0x4f8]
push eax
push edi
call fcn.004101d0
add esp, 8
test eax, eax
jne 0x406df4
mov byte [ebp - 0x11], al
jmp 0x406e58
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [esi + ecx + 1]
jmp 0x406dc9
mov al, byte [ebp - 0x11]
test al, al
je 0x406e58
lea edi, [ebp - 0x4f8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esi + ebx + 0x260]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x406e58
mov edx, dword [ebx + 0x86ec]
lea ecx, [ebp - 0x4f8]
push ecx
mov eax, dword [edx + esi*4]
push eax
push str.Create_shortcut___s___s__fail__
push 0
push ebx
call fcn.004044c0
add esp, 0x14
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x406e81
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x406e81
mov edx, dword [ebx + 0x86ec]
mov eax, dword [edx + esi*4]
push eax
push str.Create_shortcut___s__fail__
push 0
push ebx
call fcn.004044c0
add esp, 0x10
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0
inc esi
jmp 0x406978
push str.Cannot_create_CLSID_ShellLink_instance_to_create_shortcut_
push 0
push ebx
call fcn.004044c0
add esp, 0xc
inc esi
jmp 0x406978
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push str.Cannot_initialize_COM_
push esi
push ebx
call fcn.004044c0
add esp, 0xc
jmp 0x406eb6