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

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x34c
mov eax, dword [ebp + 0x7c]
movzx ecx, word [eax]
cmp ecx, 0x30
jl 0x404156
mov edx, dword [ebp + 0x7c]
movzx eax, word [edx]
cmp eax, 0x39
jg 0x404156
mov ecx, dword [ebp + 0x7c]
push ecx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtol]
add esp, 4
mov dword [ebp + 0x6c], eax
jmp 0x40423d
mov edx, 2
imul eax, edx, 0
mov ecx, dword [ebp + 0x7c]
movzx edx, word [ecx + eax]
or edx, 0x20
mov dword [ebp + 0x60], edx
mov eax, dword [ebp + 0x60]
sub eax, 0x64
mov dword [ebp + 0x60], eax
cmp dword [ebp + 0x60], 0x10
ja case.0x404188.1
mov ecx, dword [ebp + 0x60]
movzx edx, byte [ecx + 0x404898]
jmp dword [edx*4 + 0x404884]
mov eax, 2
shl eax, 0
mov ecx, dword [ebp + 0x7c]
movzx edx, word [ecx + eax]
or edx, 0x20
cmp edx, 0x75
jne 0x4041af
mov dword [ebp + 0x6c], 0x10
jmp 0x4041b6
mov dword [ebp + 0x6c], 0x19
jmp 0x40423d
mov eax, 2
shl eax, 0
mov ecx, dword [ebp + 0x7c]
movzx edx, word [ecx + eax]
or edx, 0x20
cmp edx, 0x75
jne 0x4041db
mov dword [ebp + 0x6c], 0xb
jmp 0x4041e2
mov dword [ebp + 0x6c], 0x16
jmp 0x40423d
mov eax, 2
shl eax, 0
mov ecx, dword [ebp + 0x7c]
movzx edx, word [ecx + eax]
or edx, 0x20
cmp edx, 0x75
jne 0x404204
mov dword [ebp + 0x6c], 2
jmp 0x40420b
mov dword [ebp + 0x6c], 0x17
jmp 0x40423d
mov eax, 2
shl eax, 0
mov ecx, dword [ebp + 0x7c]
movzx edx, word [ecx + eax]
or edx, 0x20
cmp edx, 0x75
jne 0x40422d
mov dword [ebp + 0x6c], 7
jmp 0x404234
mov dword [ebp + 0x6c], 0x18
jmp 0x40423d
xor eax, eax
jmp 0x40487b
mov eax, dword [ebp + 0x7c]
movzx ecx, word [eax]
cmp ecx, 0x2c
je 0x404264
mov edx, dword [ebp + 0x7c]
movzx eax, word [edx]
test eax, eax
jne 0x404259
xor eax, eax
jmp 0x40487b
mov ecx, dword [ebp + 0x7c]
add ecx, 2
mov dword [ebp + 0x7c], ecx
jmp 0x40423d
push 0
mov edx, dword [ebp + 0x6c]
push edx
lea eax, [ebp - 0x2d8]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x404284
xor eax, eax
jmp 0x40487b
lea ecx, [ebp - 0x2d8]
push ecx
lea ecx, [ebp + 0x44]
call fcn.0041bbd0
lea ecx, [ebp + 0x1c]
call fcn.0041bc40
lea ecx, [ebp - 0x20]
call fcn.0041bc40
lea ecx, [ebp - 0x14]
call fcn.0041bc40
lea ecx, [ebp - 8]
call fcn.0041bc40
lea ecx, [ebp + 0x50]
call fcn.0041bc40
lea ecx, [ebp + 4]
call fcn.0041bc40
lea ecx, [ebp + 0x10]
call fcn.0041bc40
lea ecx, [ebp - 0xcc]
call fcn.0041bc40
lea edx, [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x7c]
push eax
call fcn.00404df0
add esp, 8
mov dword [ebp + 0x7c], eax
cmp dword [ebp + 0x20], 0
jne 0x4042f8
mov dword [ebp + 0x40], 1
jmp 0x4042ff
mov dword [ebp + 0x40], 0
movzx ecx, byte [ebp + 0x40]
test ecx, ecx
je 0x4043ef
mov dword [ebp - 0x28], 0
mov edx, dword [ebp - 0xcc]
mov dword [ebp - 0x90], edx
mov eax, dword [ebp - 0x90]
push eax
call fcn.0042eaf0
add esp, 4
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xa4], ecx
mov edx, dword [ebp - 0xa4]
push edx
call fcn.0042eaf0
add esp, 4
mov eax, dword [ebp + 4]
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0xa8]
push ecx
call fcn.0042eaf0
add esp, 4
mov edx, dword [ebp + 0x50]
mov dword [ebp - 0xb0], edx
mov eax, dword [ebp - 0xb0]
push eax
call fcn.0042eaf0
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xb4], ecx
mov edx, dword [ebp - 0xb4]
push edx
call fcn.0042eaf0
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xb8]
push ecx
call fcn.0042eaf0
add esp, 4
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0xbc], edx
mov eax, dword [ebp - 0xbc]
push eax
call fcn.0042eaf0
add esp, 4
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0xc0], ecx
mov edx, dword [ebp - 0xc0]
push edx
call fcn.0042eaf0
add esp, 4
mov eax, dword [ebp + 0x44]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0042eaf0
add esp, 4
mov eax, dword [ebp - 0x28]
jmp 0x40487b
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp + 0x7c]
push eax
call fcn.00404df0
add esp, 8
mov dword [ebp + 0x7c], eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0x7c]
push edx
call fcn.00404df0
add esp, 8
mov dword [ebp + 0x7c], eax
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0x7c]
push ecx
call fcn.00404df0
add esp, 8
mov dword [ebp + 0x7c], eax
lea edx, [ebp + 0x50]
push edx
mov eax, dword [ebp + 0x7c]
push eax
call fcn.00404df0
add esp, 8
mov dword [ebp + 0x7c], eax
lea ecx, [ebp + 4]
push ecx
mov edx, dword [ebp + 0x7c]
push edx
call fcn.00404df0
add esp, 8
mov dword [ebp + 0x7c], eax
lea eax, [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0x7c]
push ecx
call fcn.00404df0
add esp, 8
mov dword [ebp + 0x7c], eax
lea edx, [ebp - 0xcc]
push edx
mov eax, dword [ebp + 0x7c]
push eax
call fcn.00404df0
add esp, 8
mov ecx, dword [ebp - 0xcc]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtol]
add esp, 4
mov dword [ebp - 0x70], eax
cmp dword [ebp + 0x54], 0
jne 0x40449c
mov dword [ebp + 0x3c], 1
jmp 0x4044a3
mov dword [ebp + 0x3c], 0
movzx eax, byte [ebp + 0x3c]
test eax, eax
je 0x4044f8
lea ecx, [ebp + 0x1c]
push ecx
call fcn.00405170
add esp, 4
mov dword [ebp + 0x68], eax
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0x68]
mov ecx, dword [ebp - 0x30]
lea edx, [ecx + eax*2 + 2]
push edx
lea ecx, [ebp + 0x50]
call fcn.0041bef0
push 0x2e
lea ecx, [ebp + 0x50]
call fcn.0041ca00
mov dword [ebp + 0x68], eax
cmp dword [ebp + 0x68], 0
jl 0x4044f8
mov eax, dword [ebp + 0x68]
mov dword [ebp + 0x54], eax
mov ecx, dword [ebp + 0x50]
xor edx, edx
mov eax, dword [ebp + 0x68]
mov word [ecx + eax*2], dx
push 0x5c
lea ecx, [ebp + 0x44]
call fcn.00401850
cmp dword [ebp - 0x10], 0
jne 0x404511
mov dword [ebp + 0x38], 1
jmp 0x404518
mov dword [ebp + 0x38], 0
movzx ecx, byte [ebp + 0x38]
test ecx, ecx
jne 0x404536
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp + 0x44]
call fcn.0041c210
push 0x5c
lea ecx, [ebp + 0x44]
call fcn.00401850
mov eax, dword [ebp + 0x44]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00403e30
add esp, 4
test eax, eax
jne 0x404604
mov dword [ebp - 0x5c], 0
mov edx, dword [ebp - 0xcc]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
push eax
call fcn.0042eaf0
add esp, 4
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
push edx
call fcn.0042eaf0
add esp, 4
mov eax, dword [ebp + 4]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.0042eaf0
add esp, 4
mov edx, dword [ebp + 0x50]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
push eax
call fcn.0042eaf0
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
push edx
call fcn.0042eaf0
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.0042eaf0
add esp, 4
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
push eax
call fcn.0042eaf0
add esp, 4
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
push edx
call fcn.0042eaf0
add esp, 4
mov eax, dword [ebp + 0x44]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.0042eaf0
add esp, 4
mov eax, dword [ebp - 0x5c]
jmp 0x40487b
lea edx, [ebp + 0x50]
push edx
lea ecx, [ebp + 0x44]
call fcn.0041c210
push str..lnk
lea ecx, [ebp + 0x44]
call fcn.0041c280
mov dword [ebp + 0x70], 0
lea eax, [ebp + 0x70]
push eax
push 0x433bf8
push 1
push 0
push 0x433c28
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp + 0x5c], eax
cmp dword [ebp + 0x5c], 0
jl 0x40479c
mov dword [ebp + 0x64], 0
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x60]
push edx
mov eax, dword [ebp + 0x70]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x70]
push edx
mov eax, dword [ecx + 0x50]
call eax
cmp dword [ebp - 4], 0
jne 0x404677
mov dword [ebp + 0x34], 1
jmp 0x40467e
mov dword [ebp + 0x34], 0
movzx ecx, byte [ebp + 0x34]
test ecx, ecx
jne 0x40469e
mov edx, dword [ebp - 8]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp + 0x70]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x70]
push eax
mov ecx, dword [edx + 0x1c]
call ecx
cmp dword [ebp - 0x1c], 0
jne 0x4046ad
mov dword [ebp + 0x30], 1
jmp 0x4046b4
mov dword [ebp + 0x30], 0
movzx edx, byte [ebp + 0x30]
test edx, edx
jne 0x4046d4
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
push ecx
mov edx, dword [ebp + 0x70]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x70]
push ecx
mov edx, dword [eax + 0x2c]
call edx
cmp dword [ebp + 8], 0
jne 0x4046e3
mov dword [ebp + 0x2c], 1
jmp 0x4046ea
mov dword [ebp + 0x2c], 0
movzx eax, byte [ebp + 0x2c]
test eax, eax
jne 0x40470a
mov ecx, dword [ebp + 4]
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0x6c]
push edx
mov eax, dword [ebp + 0x70]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x70]
push edx
mov eax, dword [ecx + 0x24]
call eax
cmp dword [ebp + 0x14], 0
jne 0x404719
mov dword [ebp + 0x28], 1
jmp 0x404720
mov dword [ebp + 0x28], 0
movzx ecx, byte [ebp + 0x28]
test ecx, ecx
jne 0x404744
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x74]
push ecx
mov edx, dword [ebp + 0x70]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x70]
push ecx
mov edx, dword [eax + 0x44]
call edx
lea eax, [ebp + 0x64]
push eax
push 0x433c18
mov ecx, dword [ebp + 0x70]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x70]
push eax
mov ecx, dword [edx]
call ecx
mov dword [ebp + 0x5c], eax
cmp dword [ebp + 0x5c], 0
jl 0x40478e
mov edx, dword [ebp + 0x44]
mov dword [ebp - 0x78], edx
push 1
mov eax, dword [ebp - 0x78]
push eax
mov ecx, dword [ebp + 0x64]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x64]
push eax
mov ecx, dword [edx + 0x18]
call ecx
mov dword [ebp + 0x5c], eax
mov edx, dword [ebp + 0x64]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x64]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp + 0x70]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x70]
push edx
mov eax, dword [ecx + 8]
call eax
mov dword [ebp - 0xa0], 0
mov ecx, dword [ebp - 0xcc]
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x7c]
push edx
call fcn.0042eaf0
add esp, 4
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.0042eaf0
add esp, 4
mov edx, dword [ebp + 4]
mov dword [ebp - 0x84], edx
mov eax, dword [ebp - 0x84]
push eax
call fcn.0042eaf0
add esp, 4
mov ecx, dword [ebp + 0x50]
mov dword [ebp - 0x88], ecx
mov edx, dword [ebp - 0x88]
push edx
call fcn.0042eaf0
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
push ecx
call fcn.0042eaf0
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0xac], edx
mov eax, dword [ebp - 0xac]
push eax
call fcn.0042eaf0
add esp, 4
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x94], ecx
mov edx, dword [ebp - 0x94]
push edx
call fcn.0042eaf0
add esp, 4
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x98]
push ecx
call fcn.0042eaf0
add esp, 4
mov edx, dword [ebp + 0x44]
mov dword [ebp - 0x9c], edx
mov eax, dword [ebp - 0x9c]
push eax
call fcn.0042eaf0
add esp, 4
mov eax, dword [ebp - 0xa0]
add ebp, 0x74
mov esp, ebp
pop ebp
ret