Function at 0x401550
Capabilities:
Accept command line arguments
Check mutex on windows
Delete registry key
Enumerate gui resources
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc48
mov al, byte [0x439068]
push ebx
push esi
push edi
mov byte [ebp - 0x848], al
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x847]
rep stosd dword es:[edi], eax
mov ecx, dword [str.EnableFloatingPointExceptions]
xor esi, esi
stosw word es:[edi], ax
push ecx
push esi
push 6
mov byte [ebp - 1], 0
stosb byte es:[edi], al
call fcn.004028b0
mov edx, dword [str.SoftwareRealNetworks_s_d._dPreferences_s]
push eax
lea eax, [ebp - 0x848]
push edx
push eax
call dword [sym.imp.PNCRT.dll_sprintf]
add esp, 0x18
lea ecx, [ebp - 0xc]
lea edx, [ebp - 0x848]
mov dword [ebp - 0xc], esi
push ecx
push 0x20019
push esi
push edx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401628
mov al, byte [0x439068]
xor ecx, ecx
mov dword [ebp - 0x43], ecx
mov byte [ebp - 0x44], al
mov dword [ebp - 0x3f], ecx
lea edx, [ebp - 0x20]
mov dword [ebp - 0x3b], ecx
lea eax, [ebp - 0x44]
mov word [ebp - 0x37], cx
push edx
mov edx, dword [ebp - 0xc]
mov byte [ebp - 0x35], cl
lea ecx, [ebp - 8]
push eax
push ecx
push esi
push esi
push edx
mov dword [ebp - 8], esi
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40161e
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.PNCRT.dll_atoi]
add esp, 4
test eax, eax
je 0x40161e
mov byte [ebp - 1], 1
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
mov edi, dword [sym.imp.PNCRT.dll__control87]
test al, al
mov dword [ebp - 0x20], esi
je 0x40164b
push esi
push esi
call edi
push 0x8001f
push 1
mov dword [ebp - 0x20], eax
call edi
add esp, 0x10
mov al, byte [0x4117f0]
test al, 1
jne 0x4016c9
or al, 1
mov dword [0x425830], 0x410628
mov byte [0x4117f0], al
mov dword [0x425834], 0x410618
mov dword [0x425838], esi
mov eax, 0x42583c
mov ecx, 0x400
mov dword [eax], esi
mov dword [eax + 4], esi
add eax, 0x48
dec ecx
jne 0x40167f
mov esi, 0x437840
mov edi, 0x40
mov ecx, esi
call fcn.00402020
add esi, 0x50
dec edi
jne 0x401694
push 0xa
mov ecx, 0x438c40
call fcn.00407490
push 0x425830
mov ecx, 0x438c58
call fcn.00402030
push 0x4020e0
call fcn.0040cd80
add esp, 4
call fcn.00403b80
mov ecx, dword [0x425838]
cmp ecx, 0x400
jae 0x401716
lea edx, [ecx + ecx*8]
mov ebx, dword [sym.imp.PNCRT.dll_strncpy]
push 0x3f
push str.Initial_Function_Checkpoint
lea esi, [edx*8 + 0x42583c]
mov dword [esi + 4], eax
lea eax, [esi + 8]
push eax
mov dword [esi], 0x119
call ebx
mov byte [esi + 0x47], 0
mov eax, dword [0x425838]
add esp, 0xc
inc eax
mov dword [0x425838], eax
jmp 0x40173f
mov ebx, dword [sym.imp.PNCRT.dll_strncpy]
mov esi, 0x425883
mov edi, 0x400
push 0x3f
lea ecx, [esi - 0x3f]
push str.ERROR___too_many_checkpoints_in_checkpoint_list
push ecx
call ebx
mov byte [esi], 0
add esp, 0xc
add esi, 0x48
dec edi
jne 0x401726
mov eax, dword [0x439064]
xor edx, edx
cmp eax, edx
jne 0x401840
mov al, byte [0x4117f0]
test al, 2
jne 0x4017cc
or al, 2
mov dword [0x412408], 0x439068
mov byte [0x4117f0], al
mov dword [0x41240c], 0x410618
mov dword [0x412410], edx
mov eax, 0x412414
mov ecx, 0x400
mov dword [eax], edx
mov dword [eax + 4], edx
add eax, 0x48
dec ecx
jne 0x401782
mov esi, 0x424418
mov edi, 0x40
mov ecx, esi
call fcn.00402020
add esi, 0x50
dec edi
jne 0x401797
push 0xa
mov ecx, 0x425818
call fcn.00407490
push 0x412408
mov ecx, 0x438c58
call fcn.00402030
push 0x4020d0
call fcn.0040cd80
add esp, 4
call fcn.00403b80
mov ecx, dword [0x412410]
cmp ecx, 0x400
jae 0x401813
lea edx, [ecx + ecx*8]
push 0x3f
push str.____Start_section_Startup
lea esi, [edx*8 + 0x412414]
mov dword [esi + 4], eax
lea eax, [esi + 8]
push eax
mov dword [esi], 0x11a
call ebx
mov byte [esi + 0x47], 0
mov eax, dword [0x412410]
add esp, 0xc
inc eax
mov dword [0x412410], eax
jmp 0x401836
mov esi, 0x41245b
mov edi, 0x400
push 0x3f
lea ecx, [esi - 0x3f]
push str.ERROR___too_many_checkpoints_in_checkpoint_list
push ecx
call ebx
mov byte [esi], 0
add esp, 0xc
add esi, 0x48
dec edi
jne 0x40181d
mov dword [0x439064], 1
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x1c]
push esi
call fcn.00406b30
push 0x3f
push esi
call dword [sym.imp.PNCRT.dll_strchr]
add esp, 8
test eax, eax
je 0x4019a5
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call esi
test eax, eax
je 0x4019a5
call esi
mov esi, eax
mov ax, word [esi]
cmp ax, 0x22
jne 0x4018a7
mov ax, word [esi + 2]
add esi, 2
cmp ax, 0x22
je 0x40189c
test ax, ax
je 0x40189c
mov ax, word [esi + 2]
add esi, 2
cmp ax, 0x22
jne 0x40188a
cmp word [esi], 0x22
jne 0x4018b6
add esi, 2
jmp 0x4018b6
cmp ax, 0x20
jbe 0x4018b6
add esi, 2
cmp word [esi], 0x20
ja 0x4018ad
mov ax, word [esi]
test ax, ax
je 0x4018d0
cmp ax, 0x20
ja 0x4018d0
mov ax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x4018be
push esi
call dword [sym.imp.PNCRT.dll_wcslen]
add esp, 4
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
mov dword [ebp + 0x10], 0
inc ebx
push ebx
call sub.PNCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, ebx
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebp - 8], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [ebp - 0x10]
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp - 8]
lea eax, [ebp + 0x10]
push eax
push 0
push ebx
push ecx
push edx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x401993
cmp word [esi], 0x22
jne 0x401945
add esi, 2
push esi
call dword [sym.imp.PNCRT.dll_wcslen]
lea eax, [esi + eax*2 - 2]
add esp, 4
cmp word [eax], 0x22
jne 0x40195e
mov word [eax], 0
lea ecx, [ebp - 0x3c]
call fcn.004069f0
lea eax, [ebp - 0x3c]
push eax
push esi
call fcn.0040b7a0
add esp, 8
lea ecx, [ebp - 0x3c]
call fcn.00406ba0
test eax, eax
je 0x40198b
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00406bd0
lea ecx, [ebp - 0x3c]
call fcn.00406b20
mov edx, dword [ebp - 8]
push edx
call sub.PNCRT.dll_void___cdecl_operator_delete_void__
mov ebx, dword [sym.imp.PNCRT.dll_strncpy]
add esp, 4
cmp byte [ebp - 0x15], 0xff
je 0x4019b3
lea eax, [ebp - 0x1c]
mov dword [ebp + 0x10], eax
jmp 0x4019b9
mov ecx, dword [ebp - 0x1c]
mov dword [ebp + 0x10], ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.00402250
add esp, 4
test al, al
jne 0x402004
mov esi, dword [sym.imp.KERNEL32.dll_OpenMutexA]
push str.RPStartupMutex
push 0
push 0x1f0001
call esi
mov edi, eax
test edi, edi
jne 0x401a50
push str.RPStartupMutex
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x10], eax
mov eax, dword [str.RPApplicationRunningMutex]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
mov dword [ebp - 0x38], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401ae1
mov ecx, dword [ebp + 0x10]
push ecx
push 0x4020f0
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x402004
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call edi
jmp 0x402004
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x401b1b
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x401b1b
mov dword [ebp - 8], eax
push str.RPStartupMutex
push 0
push 0x1f0001
call esi
mov edi, eax
test edi, edi
mov dword [ebp - 0x10], edi
je 0x401aaf
push 0x2710
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x38], eax
jne 0x4019f8
mov eax, dword [ebp - 8]
inc eax
cmp eax, 5
mov dword [ebp - 8], eax
jl 0x401a7e
test edi, edi
je 0x401acd
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x1c]
call fcn.00406b20
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [sym.imp.USER32.dll_SetMessageQueue]
mov esi, 0x78
push esi
call edi
test eax, eax
jne 0x401b2f
cmp esi, 8
jle 0x401b04
sar esi, 1
push esi
call edi
test eax, eax
je 0x401af3
cmp esi, 8
jge 0x401b2f
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x401b1b
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x1c]
call fcn.00406b20
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.00403b80
mov ecx, dword [0x425838]
cmp ecx, 0x400
jae 0x401b76
lea edx, [ecx + ecx*8]
push 0x3f
push str._Safe_Startup_EnumWindows___SetMessageQueue__
lea esi, [edx*8 + 0x42583c]
mov dword [esi + 4], eax
lea eax, [esi + 8]
push eax
mov dword [esi], 0x1cd
call ebx
mov byte [esi + 0x47], 0
mov eax, dword [0x425838]
add esp, 0xc
inc eax
mov dword [0x425838], eax
jmp 0x401b99
mov esi, 0x425883
mov edi, 0x400
push 0x3f
lea ecx, [esi - 0x3f]
push str.ERROR___too_many_checkpoints_in_checkpoint_list
push ecx
call ebx
mov byte [esi], 0
add esp, 0xc
add esi, 0x48
dec edi
jne 0x401b80
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
call fcn.00403b80
mov ecx, dword [0x425838]
cmp ecx, 0x400
jae 0x401be8
lea edx, [ecx + ecx*8]
push 0x3f
push str._OleInitialize__
lea esi, [edx*8 + 0x42583c]
mov dword [esi + 4], eax
lea eax, [esi + 8]
push eax
mov dword [esi], 0x1d2
call ebx
mov byte [esi + 0x47], 0
mov eax, dword [0x425838]
add esp, 0xc
inc eax
mov dword [0x425838], eax
jmp 0x401c0b
mov esi, 0x425883
mov edi, 0x400
push 0x3f
lea ecx, [esi - 0x3f]
push str.ERROR___too_many_checkpoints_in_checkpoint_list
push ecx
call ebx
mov byte [esi], 0
add esp, 0xc
add esi, 0x48
dec edi
jne 0x401bf2
mov dl, byte [0x439068]
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x447]
mov byte [ebp - 0x448], dl
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [str.RemovePluginHandlerData]
push eax
push esi
push 6
call fcn.004028b0
mov ecx, dword [str.SoftwareRealNetworks_s_d._dPreferences_s]
push eax
lea edx, [ebp - 0x448]
push ecx
push edx
call dword [sym.imp.PNCRT.dll_sprintf]
add esp, 0x18
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x448]
mov dword [ebp - 0xc], esi
push eax
push 0x20019
push esi
push ecx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401ce5
mov dl, byte [0x439068]
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov byte [ebp - 0x34], dl
mov dword [ebp - 0x2b], eax
lea ecx, [ebp - 8]
mov word [ebp - 0x27], ax
lea edx, [ebp - 0x34]
mov byte [ebp - 0x25], al
push ecx
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x24]
push edx
push eax
push esi
push esi
push ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 8], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401cc9
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.PNCRT.dll_atoi]
add esp, 4
test eax, eax
je 0x401cc9
call fcn.00403500
lea eax, [ebp - 0x448]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push edx
call fcn.00402ad0
add esp, 4
test eax, eax
jge 0x401d1d
mov eax, dword [ebp + 8]
push eax
call fcn.00401250
add esp, 4
test eax, eax
je 0x401d1d
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00402e50
lea edx, [ebp - 0x14]
push edx
call fcn.00402ad0
add esp, 8
mov eax, dword [ebp + 0x10]
sub esp, 8
mov ecx, esp
mov dword [ebp - 8], 1
push eax
call fcn.00406b30
call fcn.00402450
add esp, 8
test eax, eax
jl 0x401d41
mov dword [ebp - 8], esi
mov cl, byte [0x439068]
xor eax, eax
mov byte [ebp - 0xc48], cl
mov ecx, 0xff
lea edi, [ebp - 0xc47]
mov edx, dword [str.InstallComplete]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
push esi
push 6
stosb byte es:[edi], al
call fcn.004028b0
push eax
mov eax, dword [str.SoftwareRealNetworks_s_d._dPreferences_s]
lea ecx, [ebp - 0xc48]
push eax
push ecx
call dword [sym.imp.PNCRT.dll_sprintf]
add esp, 0x18
lea edx, [ebp - 0xc]
lea eax, [ebp - 0xc48]
mov dword [ebp - 0xc], esi
push edx
push 0x20019
push esi
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401e15
mov cl, byte [0x439068]
xor edx, edx
mov dword [ebp - 0x33], edx
mov byte [ebp - 0x34], cl
mov dword [ebp - 0x2f], edx
lea eax, [ebp - 0x24]
mov dword [ebp - 0x2b], edx
lea ecx, [ebp - 0x34]
mov word [ebp - 0x27], dx
push eax
mov eax, dword [ebp - 0xc]
mov byte [ebp - 0x25], dl
lea edx, [ebp - 0x48]
push ecx
push edx
push esi
push esi
push eax
xor edi, edi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x24], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401e01
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.PNCRT.dll_atoi]
mov edi, eax
add esp, 4
dec edi
neg edi
sbb edi, edi
neg edi
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
mov dword [ebp - 0xc], esi
je 0x401e15
mov dword [ebp - 8], esi
call fcn.00403b80
mov ecx, dword [0x425838]
cmp ecx, 0x400
jae 0x401e5c
lea ecx, [ecx + ecx*8]
push 0x3f
push str._GetRPApp___finished
lea esi, [ecx*8 + 0x42583c]
lea edx, [esi + 8]
mov dword [esi], 0x213
push edx
mov dword [esi + 4], eax
call ebx
mov byte [esi + 0x47], 0
mov eax, dword [0x425838]
add esp, 0xc
inc eax
mov dword [0x425838], eax
jmp 0x401e7f
mov esi, 0x425883
mov edi, 0x400
push 0x3f
lea eax, [esi - 0x3f]
push str.ERROR___too_many_checkpoints_in_checkpoint_list
push eax
call ebx
mov byte [esi], 0
add esp, 0xc
add esi, 0x48
dec edi
jne 0x401e66
mov eax, dword [ebp - 8]
test eax, eax
je 0x401fb5
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x401fb0
mov edx, dword [ebp + 0x10]
mov ecx, dword [eax]
push edx
mov edx, dword [ebp + 8]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x401fb0
call fcn.00403b80
mov ecx, dword [0x425838]
cmp ecx, 0x400
jae 0x401ef2
lea ecx, [ecx + ecx*8]
push 0x3f
push str._InitRPAppInstance__
lea esi, [ecx*8 + 0x42583c]
lea edx, [esi + 8]
mov dword [esi], 0x21f
push edx
mov dword [esi + 4], eax
call ebx
mov byte [esi + 0x47], 0
mov eax, dword [0x425838]
add esp, 0xc
inc eax
mov dword [0x425838], eax
jmp 0x401f15
mov esi, 0x425883
mov edi, 0x400
push 0x3f
lea eax, [esi - 0x3f]
push str.ERROR___too_many_checkpoints_in_checkpoint_list
push eax
call ebx
mov byte [esi], 0
add esp, 0xc
add esi, 0x48
dec edi
jne 0x401efc
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x401f2f
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov dword [ebp - 0x10], edi
call fcn.00403b80
mov ecx, dword [0x425838]
cmp ecx, 0x400
jae 0x401f76
lea ecx, [ecx + ecx*8]
push 0x3f
push str.InitInstance__
lea esi, [ecx*8 + 0x42583c]
lea edx, [esi + 8]
mov dword [esi], 0x224
push edx
mov dword [esi + 4], eax
call ebx
mov byte [esi + 0x47], 0
mov eax, dword [0x425838]
add esp, 0xc
inc eax
mov dword [0x425838], eax
jmp 0x401f9c
mov esi, 0x425883
mov edi, 0x400
push 0x3f
lea eax, [esi - 0x3f]
push str.ERROR___too_many_checkpoints_in_checkpoint_list
push eax
call ebx
mov byte [esi], 0
add esp, 0xc
add esi, 0x48
dec edi
jne 0x401f80
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
jmp 0x401fb8
call fcn.00403500
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
push eax
call fcn.00402e50
mov esi, dword [ebp - 0x38]
mov ebx, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
add esp, 4
push esi
call ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
call fcn.00402740
call dword [sym.imp.ole32.dll_OleUninitialize]
mov al, byte [ebp - 1]
test al, al
je 0x401ffa
mov ecx, dword [ebp - 0x20]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.PNCRT.dll__control87]
add esp, 8
test edi, edi
je 0x402004
push edi
call ebx
push edi
call esi
lea ecx, [ebp - 0x1c]
call fcn.00406b20
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10