Function at 0x405680
Capabilities:
Set registry value
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x66c
mov eax, dword [esp + 0x680]
lea esi, [esp + 0x44]
mov dword [esp + 8], str._lsuninstall.exe
mov dword [esp + 4], 0x104
lea ebx, [eax + 0x210]
mov dword [esp], esi
mov dword [esp + 0xc], ebx
call fcn.00404d30
test eax, eax
js 0x405850
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
sub esp, 0x1c
mov edi, eax
cmp eax, 0xffffffff
je 0x405749
mov eax, dword [0x5a7180]
lea ebp, [esp + 0x24c]
mov dword [esp], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5a71a0
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
mov dword [esp + 0x3c], eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
cmp dword [esp + 0x3c], 1
je 0x405760
mov dword [esp], str.CreateUninstaller:_WriteUninstallerExe_n
call fcn.004027a0
add esp, 0x66c
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [esp + 0x454]
mov dword [esp + 8], 0x65
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.00401c10
mov eax, dword [esp + 0x684]
mov dword [esp], eax
call sub.msvcrt.dll_wcslen
mov dword [esp + 4], 0
add eax, eax
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x684]
mov dword [esp + 8], eax
call fcn.00401cf0
mov dword [esp], edi
call fcn.00401d70
mov dword [esp], edi
call fcn.00401c70
mov eax, dword [esp + 0x684]
mov dword [esp + 8], str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_ls
mov dword [esp + 4], 0x104
mov dword [esp + 0xc], eax
mov dword [esp], ebp
call fcn.00404d30
test eax, eax
js 0x405a10
lea eax, [esp + 0x40]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0xf003f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebp
mov dword [esp], 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
sub esp, 0x24
test eax, eax
je 0x405888
mov dword [esp], str.CreateUninstaller:_RegisterUninstaller_n
call fcn.004027a0
add esp, 0x66c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], 0x5a2034
mov dword [esp + 4], str.CreateUninstaller:_swprintf_nInvalid_path.
mov dword [esp], 0
call dword [sym.imp.USER32.dll_MessageBoxW]
sub esp, 0x10
add esp, 0x66c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x68c]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str._ls_ls_0
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x106
mov dword [esp], edi
call fcn.00404d30
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
js 0x4058f1
mov dword [esp], edi
call sub.msvcrt.dll_wcslen
mov dword [esp + 0x10], edi
lea eax, [eax + eax + 2]
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 8], 0
mov dword [esp + 4], str.DisplayIcon
mov dword [esp], eax
call ebp
sub esp, 0x18
mov eax, dword [esp + 0x684]
mov dword [esp], eax
call sub.msvcrt.dll_wcslen
mov dword [esp + 0xc], 1
lea eax, [eax + eax + 2]
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x684]
mov dword [esp + 4], str.DisplayName
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call ebp
sub esp, 0x18
mov dword [esp], ebx
call sub.msvcrt.dll_wcslen
mov dword [esp + 0x10], ebx
lea eax, [eax + eax + 2]
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x5a25a8
mov dword [esp], eax
call ebp
sub esp, 0x18
mov eax, dword [esp + 0x688]
mov dword [esp], eax
call sub.msvcrt.dll_wcslen
mov dword [esp + 0xc], 1
lea eax, [eax + eax + 2]
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x688]
mov dword [esp + 4], str.Publisher
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call ebp
sub esp, 0x18
mov dword [esp], esi
call sub.msvcrt.dll_wcslen
mov dword [esp + 0x10], esi
lea eax, [eax + eax + 2]
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 8], 0
mov dword [esp + 4], str.UninstallString
mov dword [esp], eax
call ebp
sub esp, 0x18
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 4
add esp, 0x66c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], 0x5a2034
mov dword [esp + 4], str.RegisterUninstaller:_swprintf_nInvalid_path.
mov dword [esp], 0
call dword [sym.imp.USER32.dll_MessageBoxW]
sub esp, 0x10
jmp 0x405836