Function at 0x4053d0
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.00404b30
test eax, eax
js 0x4055a0
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 0x405499
mov eax, dword [0x5a9420]
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], 0x5a9440
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 0x4054b0
mov dword [esp], str.CreateUninstaller:_WriteUninstallerExe_n
call fcn.004025a0
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.00401c00
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.00401ce0
mov dword [esp], edi
call fcn.00401d60
mov dword [esp], edi
call fcn.00401c60
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.00404b30
test eax, eax
js 0x405760
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 0x4055d8
mov dword [esp], str.CreateUninstaller:_RegisterUninstaller_n
call fcn.004025a0
add esp, 0x66c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], 0x5a402c
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.00404b30
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
js 0x405641
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], 0x5a457c
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], 0x5a402c
mov dword [esp + 4], str.RegisterUninstaller:_swprintf_nInvalid_path.
mov dword [esp], 0
call dword [sym.imp.USER32.dll_MessageBoxW]
sub esp, 0x10
jmp 0x405586