Function at 0x403710
Capabilities:
Create directory
Create process on windows
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1818
call fcn.00456cb0
mov eax, dword [0x470004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push 0x400
push 0
push eax
mov esi, ecx
call fcn.0043e460
add esp, 0xc
mov dword [ebp - 0x180c], 0
lea eax, [ebp - 0x180c]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov ebx, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jne 0x403785
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0x180c]
call ebx
push dword [ebp - 0x180c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
cmp byte [esi + 0x29], 0
je 0x403811
push dword [esi + 0x14]
lea eax, [ebp - 0x1804]
push edi
push str._s_s.exe
push eax
call fcn.00404050
mov ebx, dword [ebp + 8]
add esp, 0x10
test bl, 1
jbe 0x4037ea
push dword [esi + 0x14]
lea eax, [ebp - 0x404]
push str._s.lnk
push eax
call fcn.00402f50
add esp, 8
lea eax, [ebp - 0x404]
lea edx, [ebp - 0x804]
push dword [esi + 0x18]
push ecx
push edi
push eax
lea ecx, [ebp - 0x1804]
call fcn.004032f0
add esp, 0x14
test bl, 2
jbe 0x40380b
push 1
push edi
push 0x46955b
lea eax, [ebp - 0x1804]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ebx, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [esi + 0x10]
lea eax, [ebp - 0x1804]
push edi
push str._s_s.exe
push eax
call fcn.00404050
push dword [esi + 0x10]
lea eax, [ebp - 0x404]
push str._s.lnk
push eax
call fcn.00402f50
add esp, 0x18
lea eax, [ebp - 0x404]
lea edx, [ebp - 0x804]
push dword [esi + 0x18]
push ecx
push edi
push eax
lea ecx, [ebp - 0x1804]
call fcn.004032f0
push 0x400
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.0043e460
add esp, 0x20
mov dword [ebp - 0x180c], 0
lea eax, [ebp - 0x180c]
push eax
push 0x17
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4038aa
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x180c]
call ebx
push dword [ebp - 0x180c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [esi + 8]
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x804]
push str._s_s
push eax
call fcn.00402f50
lea eax, [ebp - 0x804]
push eax
call fcn.00444148
push dword [esi + 0x14]
lea eax, [ebp - 0x1804]
push edi
push str._s_s.exe
push eax
call fcn.00404050
push dword [esi + 0x14]
lea eax, [ebp - 0x404]
push str._s.lnk
push eax
call fcn.00402f50
add esp, 0x2c
lea eax, [ebp - 0x404]
lea edx, [ebp - 0x804]
push dword [esi + 0x18]
push ecx
push edi
push eax
lea ecx, [ebp - 0x1804]
call fcn.004032f0
push dword [esi + 0x10]
lea eax, [ebp - 0x1804]
push edi
push str._s_s.exe
push eax
call fcn.00404050
push dword [esi + 0x10]
lea eax, [ebp - 0x404]
push str._s.lnk
push eax
call fcn.00402f50
add esp, 0x2c
lea eax, [ebp - 0x404]
lea edx, [ebp - 0x804]
push dword [esi + 0x18]
push ecx
push edi
push eax
lea ecx, [ebp - 0x1804]
call fcn.004032f0
add esp, 0x14
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x400
lea eax, [ebp - 0x1004]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [esi + 8]
mov ebx, dword [esi + 0x1c]
mov dword [ebp - 0x1818], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x1810], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x1814], eax
lea eax, [ebp - 0x1808]
push eax
lea eax, [ebp - 0x180c]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push dword [esi + 0xc]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x403b33
mov edx, dword [ebp - 0x1818]
mov ecx, edx
lea esi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4039e0
sub ecx, esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ecx
push edx
push 1
push 0
push str.DisplayName
push dword [ebp - 0x180c]
call esi
mov eax, dword [ebp - 0x1814]
push eax
push eax
push ebx
lea eax, [ebp - 0xc04]
push str._s_s_s.exe
push eax
call fcn.00402f50
lea ecx, [ebp - 0xc04]
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403a28
sub ecx, edx
lea eax, [ebp - 0xc04]
push ecx
push eax
push 1
push 0
push str.DisplayIcon
push dword [ebp - 0x180c]
call esi
push 7
push str.1.10.10
push 1
push 0
push str.DisplayVersion
push dword [ebp - 0x180c]
call esi
mov ecx, dword [ebp - 0x1810]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403a70
sub ecx, edx
push ecx
push dword [ebp - 0x1810]
push 1
push 0
push str.Publisher
push dword [ebp - 0x180c]
call esi
mov eax, dword [ebp - 0x1814]
push eax
push ebx
lea eax, [ebp - 0xc04]
push str._s_sUninstall.exe
push eax
call fcn.00402f50
lea ecx, [ebp - 0xc04]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403ab6
sub ecx, edx
lea eax, [ebp - 0xc04]
push ecx
push eax
push 1
push 0
push str.UninstallString
push dword [ebp - 0x180c]
call esi
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403ae0
sub ecx, edx
push ecx
push ebx
push 1
push 0
push str.InstallLocation
push dword [ebp - 0x180c]
call esi
lea ecx, [ebp - 0x1004]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403b05
sub ecx, edx
lea eax, [ebp - 0x1004]
push ecx
push eax
push 1
push 0
push str.Source
push dword [ebp - 0x180c]
call esi
push dword [ebp - 0x180c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
push edi
push 0x46955b
lea eax, [ebp - 0x1804]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405b44
mov esp, ebp
pop ebp
ret 8