Function at 0x401250
Capabilities:
Accept command line arguments
Check mutex on windows
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41e8c8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x427e70]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.00403464
test eax, eax
je 0x4012a6
call fcn.004011b0
test eax, eax
jne 0x4012bf
push 0xffffffffffffffff
push ebx
push 0x68
call fcn.0040321f
mov eax, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
push str.ED445B81_78D0_4074_AA84_15078AA28715
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4012e0
push 0xffffffffffffffff
push ebx
push 0x69
jmp 0x4012a1
push 0x422edc
lea ecx, [esp + 0x18]
call fcn.00402020
mov dword [esp + 0x40], ebx
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x190
or eax, ecx
jge 0x40131c
push 0x190
lea ecx, [esp + 0x18]
call fcn.00401e20
mov edx, dword [esp + 0x14]
push 0x190
push edx
push ebx
mov esi, edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, ebx
je 0x401334
call fcn.00401000
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0040e233
add esp, 8
cmp eax, ebx
jl 0x401614
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx - 8]
jg 0x401614
mov dword [ecx - 0xc], eax
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
mov dword [esp + 0x20], ebx
call fcn.0040397d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x401385
push 0x80004005
call fcn.00401ec0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov byte [esp + 0x40], 1
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x190
or eax, ecx
jge 0x4013c0
push 0x190
lea ecx, [esp + 0x1c]
call fcn.00401e20
mov esi, dword [esp + 0x18]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0040e233
add esp, 8
cmp eax, ebx
jl 0x401614
cmp eax, dword [esi - 8]
jg 0x401614
mov dword [esi - 0xc], eax
xor ecx, ecx
push str._regedit.exe
lea edx, [esp + 0x1c]
mov word [esi + eax*2], cx
push edx
lea eax, [esp + 0x38]
push eax
call fcn.004016e0
push str.__s__
push eax
lea ecx, [esp + 0x40]
push ecx
mov byte [esp + 0x58], 2
call fcn.004016e0
lea edx, [esp + 0x2c]
push edx
push eax
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0x64], 3
call fcn.00401620
push str.config.reg_
push eax
lea ecx, [esp + 0x50]
push ecx
mov byte [esp + 0x70], 4
call fcn.004016e0
add esp, 0x30
mov byte [esp + 0x40], 6
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40146e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 7
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401493
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 8
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4014b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
lea edi, [esp + 0x20]
call fcn.00401040
call fcn.0040397d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4014df
push 0x80004005
call fcn.00401ec0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov bl, 9
mov byte [esp + 0x40], bl
call fcn.00401130
lea ecx, [esp + 0x14]
lea edx, [esp + 0x34]
test eax, eax
je 0x40151c
push str.DPInst64.exe
push ecx
push edx
call fcn.004016e0
add esp, 0xc
mov byte [esp + 0x40], 0xa
jmp 0x401530
push str.DPInst32.exe
push ecx
push edx
call fcn.004016e0
add esp, 0xc
mov byte [esp + 0x40], 0xb
push eax
lea ecx, [esp + 0x20]
call fcn.00401940
mov byte [esp + 0x40], bl
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40155e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x1c]
lea edi, [esp + 0x20]
mov ecx, ebp
call fcn.00401040
lea eax, [ebp - 0x10]
mov byte [esp + 0x40], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40158e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4015b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x40], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4015d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4015fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
push 0x80070057
call fcn.00401ec0
int3