Function at 0x4012d0
Capabilities:
Check if file exists
Create process on windows
Delete file
Query or enumerate registry value

Disassembly:
sub esp, 0x590
mov ecx, dword [esp + 0x594]
lea eax, [esp]
push eax
push 1
push 0
push ecx
push 0x80000002
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401316
mov eax, dword [esp]
test eax, eax
je 0x40130d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0x590
ret
mov ecx, dword [esp]
lea edx, [esp + 0x24]
lea eax, [esp + 0x48c]
push edx
push eax
push 0
push 0
push str.DISK1TARGET
push ecx
mov dword [esp + 0x3c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401726
lea edx, [esp + 0x48c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x401726
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [esp + 0x498]
push edi
lea ecx, [esp + 0x250]
push eax
push ecx
call ebp
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x13c]
lea edx, [esp + 0x250]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x13c]
push edx
push eax
call ebp
lea ecx, [esp + 0x250]
lea edx, [esp + 0x38]
push ecx
push edx
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x13c]
push 0x409174
push eax
call esi
lea ecx, [esp + 0x38]
push 0x409174
push ecx
call esi
lea edx, [esp + 0x13c]
push str.setup.3nx
push edx
call esi
lea eax, [esp + 0x38]
push str.setup.inx
push eax
call esi
lea ecx, [esp + 0x13c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ebx, dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
je 0x401468
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 0x38]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
mov edi, 0x614
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], edx
mov word [esp + 0x28], di
call ebx
lea eax, [esp + 0x14]
lea ecx, [esp + 0x13c]
lea edx, [esp + 0x38]
push eax
mov dword [esp + 0x1c], 4
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov word [esp + 0x28], di
call ebx
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x13c]
lea edx, [esp + 0x13c]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x250]
push ecx
push edx
call ebp
lea eax, [esp + 0x250]
lea ecx, [esp + 0x38]
push eax
push ecx
call ebp
lea edx, [esp + 0x13c]
push 0x409174
push edx
call esi
lea eax, [esp + 0x38]
push 0x409174
push eax
call esi
lea ecx, [esp + 0x13c]
push str.uninst.3xe
push ecx
call esi
lea edx, [esp + 0x38]
push str.uninst.exe
push edx
call esi
lea eax, [esp + 0x13c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40154b
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x38]
mov edi, 0x614
push edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], ecx
mov word [esp + 0x28], di
call ebx
lea edx, [esp + 0x14]
lea eax, [esp + 0x13c]
lea ecx, [esp + 0x38]
push edx
mov dword [esp + 0x1c], 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov word [esp + 0x28], di
call ebx
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x13c]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x250]
lea ecx, [esp + 0x13c]
push eax
push ecx
call ebp
lea edx, [esp + 0x250]
lea eax, [esp + 0x38]
push edx
push eax
call ebp
lea ecx, [esp + 0x13c]
push 0x409174
push ecx
call esi
lea edx, [esp + 0x38]
push 0x409174
push edx
call esi
lea eax, [esp + 0x13c]
push str.setup.3xe
push eax
call esi
lea ecx, [esp + 0x38]
push str.setup.exe
push ecx
call esi
lea edx, [esp + 0x13c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40162e
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x14]
lea eax, [esp + 0x38]
mov edi, 0x614
push ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], eax
mov word [esp + 0x28], di
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x13c]
lea eax, [esp + 0x38]
push ecx
mov dword [esp + 0x1c], 4
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov word [esp + 0x28], di
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x250]
push edx
call edi
mov cl, byte [esp + eax + 0x24f]
mov bl, 0x5c
cmp cl, bl
je 0x40165a
lea eax, [esp + 0x250]
push 0x409174
push eax
call esi
lea ecx, [esp + 0x250]
push str.setup.exe
push ecx
call esi
lea edx, [esp + 0x398]
push str.__uninst
push edx
call ebp
mov eax, dword [esp + 0x5a8]
test eax, eax
je 0x4016d5
lea eax, [esp + 0x398]
push str.__s__f1_
push eax
call esi
lea ecx, [esp + 0x49c]
lea edx, [esp + 0x398]
push ecx
push edx
call esi
lea eax, [esp + 0x49c]
push eax
call edi
cmp byte [esp + eax + 0x24f], bl
je 0x4016c6
lea ecx, [esp + 0x398]
push 0x409174
push ecx
call esi
lea edx, [esp + 0x398]
push str.usetup.iss_
push edx
call esi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x354]
lea edx, [esp + 0x398]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x240]
lea ecx, [esp + 0x354]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x270]
push edx
push eax
mov dword [esp + 0x37c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
pop ebp
pop ebx
mov eax, dword [esp]
test eax, eax
je 0x401735
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0x590
ret