Function at 0x401350
Capabilities:
Create process on windows
Create process suspended
Delete registry key
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411c33
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x419008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x110]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp byte [ebp - 0x110], 0
jne 0x40139f
xor ecx, ecx
jmp 0x4013b1
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4013a8
sub ecx, edx
push ecx
lea eax, [ebp - 0x110]
mov ecx, 0x41a3d8
push eax
call fcn.00401b60
push 0x41a3d8
mov edx, str.temp___
lea ecx, [ebp - 0x210]
call fcn.00402410
add esp, 4
lea ecx, [ebp - 0x210]
call fcn.00401900
mov edx, dword [esi]
mov dword [ebp - 0x12c], 0xf
mov dword [ebp - 0x130], 0
mov byte [ebp - 0x140], 0
cmp byte [edx], 0
jne 0x40140c
xor eax, eax
jmp 0x40141a
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401411
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x140]
call fcn.00401b60
push 1
sub esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x140]
call fcn.00401aa0
mov ecx, dword [ebp - 0x130]
mov edi, eax
cmp edi, ecx
ja 0x40146a
cmp dword [ebp - 0x12c], 0x10
lea ecx, [ebp - 0x140]
mov dword [ebp - 0x130], edi
cmovae ecx, dword [ebp - 0x140]
mov byte [ecx + edi], 0
jmp 0x40147b
push ecx
mov eax, edi
sub eax, ecx
lea ecx, [ebp - 0x140]
push eax
call fcn.00402030
lea eax, [ebp - 0x140]
mov edx, str.currentPath___
push eax
lea ecx, [ebp - 0x210]
call fcn.00402410
add esp, 4
lea ecx, [ebp - 0x210]
call fcn.00401900
lea ecx, [ebp - 0x158]
call fcn.00401050
lea eax, [ebp - 0x158]
mov byte [ebp - 4], 1
push eax
mov edx, str.installer.exe___
lea ecx, [ebp - 0x210]
call fcn.00402410
add esp, 4
lea ecx, [ebp - 0x210]
call fcn.00401900
lea ecx, [ebp - 0x1a0]
call fcn.00401130
lea eax, [ebp - 0x1a0]
mov byte [ebp - 4], 2
push eax
mov edx, str.installer_data___
lea ecx, [ebp - 0x210]
call fcn.00402410
add esp, 4
lea ecx, [ebp - 0x210]
call fcn.00401900
push 0x40
lea eax, [ebp - 0x1e0]
mov dword [ebp - 0x1e4], 0x44
push 0
push eax
call fcn.00404920
push 0x416c58
lea edx, [ebp - 0x158]
lea ecx, [ebp - 0x240]
call fcn.00402300
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 3
push ecx
mov edx, eax
lea ecx, [ebp - 0x210]
call fcn.004024f0
add esp, 0x10
mov byte [ebp - 4], 4
mov edx, eax
lea ecx, [ebp - 0x170]
call fcn.004023e0
add esp, 4
lea ecx, [ebp - 0x210]
call fcn.00401900
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 7
call fcn.00401900
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0x170]
call fcn.00401eb0
push 0x416c5c
lea edx, [ebp - 0x158]
lea ecx, [ebp - 0x228]
call fcn.00402300
lea ecx, [ebp - 0x170]
mov byte [ebp - 4], 8
push ecx
mov edx, eax
lea ecx, [ebp - 0x258]
call fcn.004024f0
add esp, 8
lea ecx, [ebp - 0x258]
call fcn.00401900
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 7
call fcn.00401900
cmp dword [ebp - 0x15c], 0x10
lea edx, [ebp - 0x1f8]
push edx
lea edx, [ebp - 0x1e4]
push edx
lea edx, [ebp - 0x110]
push edx
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x170]
cmovae ecx, dword [ebp - 0x170]
lea eax, [ebp - 0x158]
cmp dword [ebp - 0x144], 0x10
push 0
cmovae eax, dword [ebp - 0x158]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40164b
push dword [ebp - 0x1f8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1f4]
call esi
lea ecx, [ebp - 0x128]
call fcn.00401240
mov byte [ebp - 4], 9
lea edx, [ebp - 0x128]
cmp dword [ebp - 0x114], 0x10
mov dword [ebp - 0x174], 0xf
cmovae edx, dword [ebp - 0x128]
inc edx
mov dword [ebp - 0x178], 0
add edx, edi
mov byte [ebp - 0x188], 0
cmp byte [edx], 0
jne 0x401695
xor ecx, ecx
jmp 0x4016a9
mov ecx, edx
lea esi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4016a0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x188]
call fcn.00401b60
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 0xa
push eax
mov edx, str.regPath___
lea ecx, [ebp - 0x228]
call fcn.00402410
add esp, 4
lea ecx, [ebp - 0x228]
call fcn.00401900
cmp dword [ebp - 0x114], 0x10
lea ecx, [ebp - 0x1e8]
push ecx
push 0xf003f
lea eax, [ebp - 0x128]
mov dword [ebp - 0x1e8], 0
cmovae eax, dword [ebp - 0x128]
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401748
lea eax, [ebp - 0x128]
mov edx, str.reg_open_key_error_:
push eax
lea ecx, [ebp - 0x228]
call fcn.00402410
add esp, 4
lea ecx, [ebp - 0x228]
call fcn.00401900
or esi, 0xffffffff
jmp 0x4017e5
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push str.DisplayName
push dword [ebp - 0x1e8]
call esi
push str.UninstallString
push dword [ebp - 0x1e8]
call esi
push str.QuietUninstallString
push dword [ebp - 0x1e8]
call esi
push str.DisplayIcon
push dword [ebp - 0x1e8]
call esi
push str.InstallLocation
push dword [ebp - 0x1e8]
call esi
push dword [ebp - 0x1e8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x114], 0x10
lea eax, [ebp - 0x128]
cmovae eax, dword [ebp - 0x128]
push eax
push 0x80000001
call esi
test eax, eax
je 0x40182b
lea eax, [ebp - 0x128]
mov edx, str.reg_delete_main_key_error_:
push eax
lea ecx, [ebp - 0x228]
call fcn.00402410
add esp, 4
lea ecx, [ebp - 0x228]
call fcn.00401900
mov esi, 0xfffffffe
lea ecx, [ebp - 0x188]
call fcn.00401900
lea ecx, [ebp - 0x128]
call fcn.00401900
lea ecx, [ebp - 0x170]
call fcn.00401900
lea ecx, [ebp - 0x1a0]
call fcn.00401900
lea ecx, [ebp - 0x158]
call fcn.00401900
lea ecx, [ebp - 0x140]
call fcn.00401900
mov eax, esi
jmp 0x40186f
lea ecx, [ebp - 0x188]
call fcn.00401900
lea ecx, [ebp - 0x128]
call fcn.00401900
lea ecx, [ebp - 0x170]
call fcn.00401900
lea ecx, [ebp - 0x1a0]
call fcn.00401900
lea ecx, [ebp - 0x158]
call fcn.00401900
lea ecx, [ebp - 0x140]
call fcn.00401900
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040275f
mov esp, ebp
pop ebp
ret