Function at 0x4151e0
Capabilities:
Check if file exists
Create directory
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x4ea080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x240], ecx
call fcn.00413910
mov esi, eax
cmp dword [esi + 0x78], 8
jb 0x41520e
mov edx, dword [esi + 0x64]
jmp 0x415211
lea edx, [esi + 0x64]
xor eax, eax
mov word [ebp - 0x23c], ax
mov eax, edx
mov dword [ebp - 0x228], 7
mov dword [ebp - 0x22c], 0
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415233
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x23c]
call fcn.004110e0
push 1
push 0x4b1930
lea ecx, [ebp - 0x23c]
call fcn.004111d0
cmp dword [esi + 0x13c], 8
jb 0x415272
mov edx, dword [esi + 0x128]
jmp 0x415278
lea edx, [esi + 0x128]
mov eax, edx
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415280
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x23c]
call fcn.004111d0
cmp dword [esi + 0x78], 8
jb 0x4152a7
mov edx, dword [esi + 0x64]
jmp 0x4152aa
lea edx, [esi + 0x64]
xor ecx, ecx
mov eax, edx
mov dword [ebp - 0x20c], 7
mov dword [ebp - 0x210], 0
mov word [ebp - 0x220], cx
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4152d0
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x220]
call fcn.004110e0
push 9
push str.ICON.ico
lea ecx, [ebp - 0x220]
call fcn.004111d0
mov eax, dword [ebp - 0x23c]
mov edi, 8
cmp dword [ebp - 0x228], edi
jae 0x415317
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4157b6
cmp byte [esi + 9], 0
mov ebx, dword [ebp - 0x240]
je 0x41546f
cmp dword [ebx + 0x10], 0
jbe 0x415363
cmp dword [esi + 0x158], edi
lea eax, [esi + 0x144]
jb 0x41534c
mov eax, dword [eax]
cmp dword [ebx + 0x14], edi
jb 0x41535a
mov ecx, dword [ebx]
push eax
push ecx
jmp 0x41545f
mov ecx, ebx
push eax
push ecx
jmp 0x41545f
xor edx, edx
push 0x1fc
push edx
lea eax, [ebp - 0x202]
push eax
mov word [ebp - 0x204], dx
call fcn.0048f070
add esp, 0xc
push 0
push 0x10
lea ecx, [ebp - 0x204]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x4b1930
lea edx, [ebp - 0x204]
push 0xff
push edx
call fcn.0048f473
lea eax, [esi + 0xf0]
add esp, 0xc
cmp dword [eax + 0x14], edi
jb 0x4153ba
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x204]
push 0xff
push eax
call fcn.0048f473
push 0x4b1f60
lea ecx, [ebp - 0x204]
push 0xff
push ecx
call fcn.0048f473
mov ecx, dword [ebp - 0x220]
add esp, 0x18
cmp dword [ebp - 0x20c], edi
jae 0x4153f9
lea ecx, [ebp - 0x220]
mov eax, dword [ebp - 0x23c]
cmp dword [ebp - 0x228], edi
jae 0x41540d
lea eax, [ebp - 0x23c]
push ecx
lea edx, [ebp - 0x204]
push edx
push eax
mov ecx, esi
call fcn.00412470
test al, al
jne 0x415447
push 0x4b1f48
push 0x4b1f40
call fcn.0041a0c0
add esp, 8
push 0xb
push 0x4b1f28
lea ecx, [esi + 0x80]
call fcn.004110e0
jmp 0x41546f
cmp dword [esi + 0x158], edi
lea eax, [esi + 0x144]
jb 0x415457
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x204]
push eax
push str.DeskLnk
push 0x4b1988
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [esi + 0xa], 0
je 0x4155dd
cmp dword [ebx + 0x2c], 0
jbe 0x4154a5
cmp dword [esi + 0x158], edi
jb 0x41548f
mov ecx, dword [esi + 0x144]
jmp 0x415495
lea ecx, [esi + 0x144]
cmp dword [ebx + 0x30], edi
lea eax, [ebx + 0x1c]
jb 0x41549f
mov eax, dword [eax]
push ecx
jmp 0x4155cc
xor ecx, ecx
push 0x1fc
push ecx
lea edx, [ebp - 0x202]
push edx
mov word [ebp - 0x204], cx
call fcn.0048f070
add esp, 0xc
lea eax, [ebp - 0x240]
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edx, dword [ebp - 0x240]
lea ecx, [ebp - 0x204]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push str.MicrosoftInternet_ExplorerQuick_Launch_
lea eax, [ebp - 0x204]
push 0xff
push eax
call fcn.0048f473
lea eax, [esi + 0xf0]
add esp, 0xc
cmp dword [eax + 0x14], edi
jb 0x41550e
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x204]
push 0xff
push ecx
call fcn.0048f473
push 0x4b1f60
lea edx, [ebp - 0x204]
push 0xff
push edx
call fcn.0048f473
mov ecx, dword [ebp - 0x220]
add esp, 0x18
cmp dword [ebp - 0x20c], edi
jae 0x41554d
lea ecx, [ebp - 0x220]
mov eax, dword [ebp - 0x23c]
cmp dword [ebp - 0x228], edi
jae 0x415561
lea eax, [ebp - 0x23c]
push ecx
lea ecx, [ebp - 0x204]
push ecx
push eax
mov ecx, esi
call fcn.00412470
test al, al
jne 0x41559b
push 0x4b1eb4
push 0x4b1f40
call fcn.0041a0c0
add esp, 8
push 0xb
push 0x4b1e9c
lea ecx, [esi + 0x80]
call fcn.004110e0
jmp 0x4155dd
push 5
push 0
push 0
lea edx, [ebp - 0x204]
push edx
push str.TaskbarPin
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [esi + 0x158], edi
lea eax, [esi + 0x144]
jb 0x4155c5
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x204]
push eax
push str.SystemLnk
push 0x4b1988
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [esi + 0xb], 0
je 0x415758
cmp dword [ebx + 0x48], 0
jbe 0x415614
cmp dword [esi + 0x158], edi
jb 0x4155fd
mov ecx, dword [esi + 0x144]
jmp 0x415603
lea ecx, [esi + 0x144]
cmp dword [ebx + 0x4c], edi
lea eax, [ebx + 0x38]
jb 0x41560d
mov eax, dword [eax]
push ecx
push eax
jmp 0x415748
xor ecx, ecx
push 0x1fc
push ecx
lea edx, [ebp - 0x202]
push edx
mov word [ebp - 0x204], cx
call fcn.0048f070
add esp, 0xc
push 0
push 0x17
lea eax, [ebp - 0x204]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x4b1e78
lea ecx, [ebp - 0x204]
push 0xff
push ecx
call fcn.0048f473
add esp, 0xc
lea edx, [ebp - 0x204]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41567d
push eax
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x4b1930
lea ecx, [ebp - 0x204]
push 0xff
push ecx
call fcn.0048f473
lea eax, [esi + 0xf0]
add esp, 0xc
cmp dword [eax + 0x14], edi
jb 0x4156a3
mov eax, dword [eax]
push eax
lea edx, [ebp - 0x204]
push 0xff
push edx
call fcn.0048f473
push 0x4b1f60
lea eax, [ebp - 0x204]
push 0xff
push eax
call fcn.0048f473
mov ecx, dword [ebp - 0x220]
add esp, 0x18
cmp dword [ebp - 0x20c], edi
jae 0x4156e2
lea ecx, [ebp - 0x220]
mov eax, dword [ebp - 0x23c]
cmp dword [ebp - 0x228], edi
jae 0x4156f6
lea eax, [ebp - 0x23c]
push ecx
lea ecx, [ebp - 0x204]
push ecx
push eax
mov ecx, esi
call fcn.00412470
test al, al
jne 0x415730
push 0x4b1e60
push 0x4b1f40
call fcn.0041a0c0
add esp, 8
push 0xb
push 0x4b1e48
lea ecx, [esi + 0x80]
call fcn.004110e0
jmp 0x415758
cmp dword [esi + 0x158], edi
lea eax, [esi + 0x144]
jb 0x415740
mov eax, dword [eax]
push eax
lea edx, [ebp - 0x204]
push edx
push str.StartLnk
push 0x4b1988
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp dword [ebp - 0x20c], edi
jb 0x41576f
mov eax, dword [ebp - 0x220]
push eax
call fcn.0048e224
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x20c], 7
mov dword [ebp - 0x210], 0
mov word [ebp - 0x220], cx
cmp dword [ebp - 0x228], edi
jb 0x4157a3
mov edx, dword [ebp - 0x23c]
push edx
call fcn.0048e224
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ef91
mov esp, ebp
pop ebp
ret
push 0x4b1e34
push 0x4b1f40
call fcn.0041a0c0
add esp, 8
push 0xa
push 0x4b1e1c
lea ecx, [esi + 0x80]
call fcn.004110e0
cmp dword [ebp - 0x20c], edi
jb 0x4157f1
mov eax, dword [ebp - 0x220]
push eax
call fcn.0048e224
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x20c], 7
mov dword [ebp - 0x210], 0
mov word [ebp - 0x220], cx
cmp dword [ebp - 0x228], edi
jb 0x415825
mov edx, dword [ebp - 0x23c]
push edx
call fcn.0048e224
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.0048ef91
mov esp, ebp
pop ebp
ret