Function at 0x401250
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 [0x437278]
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.00402570
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 0x401328
mov al, byte [0x437278]
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 0x40131e
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.PNCRT.dll_atoi]
add esp, 4
test eax, eax
je 0x40131e
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 0x40134b
push esi
push esi
call edi
push 0x8001f
push 1
mov dword [ebp - 0x20], eax
call edi
add esp, 0x10
mov al, byte [0x410614]
test al, 1
jne 0x4013c9
or al, 1
mov dword [0x423a40], 0x40f488
mov byte [0x410614], al
mov dword [0x423a44], 0x40f478
mov dword [0x423a48], esi
mov eax, 0x423a4c
mov ecx, 0x400
mov dword [eax], esi
mov dword [eax + 4], esi
add eax, 0x48
dec ecx
jne 0x40137f
mov esi, 0x435a50
mov edi, 0x40
mov ecx, esi
call fcn.00401cf0
add esi, 0x50
dec edi
jne 0x401394
push 0xa
mov ecx, 0x436e50
call fcn.00407090
push 0x423a40
mov ecx, 0x436e68
call fcn.00401d00
push 0x401db0
call fcn.0040c720
add esp, 4
call fcn.004032a0
mov ecx, dword [0x423a48]
cmp ecx, 0x400
jae 0x401416
lea edx, [ecx + ecx*8]
mov ebx, dword [sym.imp.PNCRT.dll_strncpy]
push 0x3f
push str.Initial_Function_Checkpoint
lea esi, [edx*8 + 0x423a4c]
mov dword [esi + 4], eax
lea eax, [esi + 8]
push eax
mov dword [esi], 0xc5
call ebx
mov byte [esi + 0x47], 0
mov eax, dword [0x423a48]
add esp, 0xc
inc eax
mov dword [0x423a48], eax
jmp 0x40143f
mov ebx, dword [sym.imp.PNCRT.dll_strncpy]
mov esi, 0x423a93
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 0x401426
mov eax, dword [0x437274]
xor edx, edx
cmp eax, edx
jne 0x401540
mov al, byte [0x410614]
test al, 2
jne 0x4014cc
or al, 2
mov dword [0x410618], 0x437278
mov byte [0x410614], al
mov dword [0x41061c], 0x40f478
mov dword [0x410620], edx
mov eax, 0x410624
mov ecx, 0x400
mov dword [eax], edx
mov dword [eax + 4], edx
add eax, 0x48
dec ecx
jne 0x401482
mov esi, 0x422628
mov edi, 0x40
mov ecx, esi
call fcn.00401cf0
add esi, 0x50
dec edi
jne 0x401497
push 0xa
mov ecx, 0x423a28
call fcn.00407090
push 0x410618
mov ecx, 0x436e68
call fcn.00401d00
push 0x401da0
call fcn.0040c720
add esp, 4
call fcn.004032a0
mov ecx, dword [0x410620]
cmp ecx, 0x400
jae 0x401513
lea edx, [ecx + ecx*8]
push 0x3f
push str.____Start_section_Startup
lea esi, [edx*8 + 0x410624]
mov dword [esi + 4], eax
lea eax, [esi + 8]
push eax
mov dword [esi], 0xc6
call ebx
mov byte [esi + 0x47], 0
mov eax, dword [0x410620]
add esp, 0xc
inc eax
mov dword [0x410620], eax
jmp 0x401536
mov esi, 0x41066b
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 0x40151d
mov dword [0x437274], 1
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x1c]
push esi
call fcn.00406730
push 0x3f
push esi
call dword [sym.imp.PNCRT.dll_strchr]
add esp, 8
test eax, eax
je 0x4016a5
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call esi
test eax, eax
je 0x4016a5
call esi
mov esi, eax
mov ax, word [esi]
cmp ax, 0x22
jne 0x4015a7
mov ax, word [esi + 2]
add esi, 2
cmp ax, 0x22
je 0x40159c
test ax, ax
je 0x40159c
mov ax, word [esi + 2]
add esi, 2
cmp ax, 0x22
jne 0x40158a
cmp word [esi], 0x22
jne 0x4015b6
add esi, 2
jmp 0x4015b6
cmp ax, 0x20
jbe 0x4015b6
add esi, 2
cmp word [esi], 0x20
ja 0x4015ad
mov ax, word [esi]
test ax, ax
je 0x4015d0
cmp ax, 0x20
ja 0x4015d0
mov ax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x4015be
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 0x401693
cmp word [esi], 0x22
jne 0x401645
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 0x40165e
mov word [eax], 0
lea ecx, [ebp - 0x3c]
call fcn.004065f0
lea eax, [ebp - 0x3c]
push eax
push esi
call fcn.0040ad80
add esp, 8
lea ecx, [ebp - 0x3c]
call fcn.004067a0
test eax, eax
je 0x40168b
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004067d0
lea ecx, [ebp - 0x3c]
call fcn.00406720
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 0x4016b3
lea eax, [ebp - 0x1c]
mov dword [ebp + 0x10], eax
jmp 0x4016b9
mov ecx, dword [ebp - 0x1c]
mov dword [ebp + 0x10], ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.00401f20
add esp, 4
test al, al
jne 0x401cd6
mov esi, dword [sym.imp.KERNEL32.dll_OpenMutexA]
push str.RPStartupMutex
push 0
push 0x1f0001
call esi
mov edi, eax
test edi, edi
jne 0x401750
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 0x4017e1
mov ecx, dword [ebp + 0x10]
push ecx
push 0x401dc0
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 0x401cd6
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call edi
jmp 0x401cd6
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 0x40181b
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40181b
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 0x4017af
push 0x2710
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x38], eax
jne 0x4016f8
mov eax, dword [ebp - 8]
inc eax
cmp eax, 5
mov dword [ebp - 8], eax
jl 0x40177e
test edi, edi
je 0x4017cd
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x1c]
call fcn.00406720
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 0x40182f
cmp esi, 8
jle 0x401804
sar esi, 1
push esi
call edi
test eax, eax
je 0x4017f3
cmp esi, 8
jge 0x40182f
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x40181b
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x1c]
call fcn.00406720
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.004032a0
mov ecx, dword [0x423a48]
cmp ecx, 0x400
jae 0x401876
lea edx, [ecx + ecx*8]
push 0x3f
push str._Safe_Startup_EnumWindows___SetMessageQueue__
lea esi, [edx*8 + 0x423a4c]
mov dword [esi + 4], eax
lea eax, [esi + 8]
push eax
mov dword [esi], 0x17b
call ebx
mov byte [esi + 0x47], 0
mov eax, dword [0x423a48]
add esp, 0xc
inc eax
mov dword [0x423a48], eax
jmp 0x401899
mov esi, 0x423a93
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 0x401880
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
call fcn.004032a0
mov ecx, dword [0x423a48]
cmp ecx, 0x400
jae 0x4018e8
lea edx, [ecx + ecx*8]
push 0x3f
push str._OleInitialize__
lea esi, [edx*8 + 0x423a4c]
mov dword [esi + 4], eax
lea eax, [esi + 8]
push eax
mov dword [esi], 0x180
call ebx
mov byte [esi + 0x47], 0
mov eax, dword [0x423a48]
add esp, 0xc
inc eax
mov dword [0x423a48], eax
jmp 0x40190b
mov esi, 0x423a93
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 0x4018f2
mov dl, byte [0x437278]
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.00402570
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 0x4019e5
mov dl, byte [0x437278]
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 0x4019c9
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.PNCRT.dll_atoi]
add esp, 4
test eax, eax
je 0x4019c9
call fcn.004031c0
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.00402790
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, esp
push eax
mov dword [ebp - 8], 1
call fcn.00406730
call fcn.00402120
add esp, 8
test eax, eax
jl 0x401a13
mov dword [ebp - 8], esi
mov cl, byte [0x437278]
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.00402570
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 0x401ae7
mov cl, byte [0x437278]
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 0x401ad3
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 0x401ae7
mov dword [ebp - 8], esi
call fcn.004032a0
mov ecx, dword [0x423a48]
cmp ecx, 0x400
jae 0x401b2e
lea ecx, [ecx + ecx*8]
push 0x3f
push str._GetRPApp___finished
lea esi, [ecx*8 + 0x423a4c]
lea edx, [esi + 8]
mov dword [esi], 0x1ba
push edx
mov dword [esi + 4], eax
call ebx
mov byte [esi + 0x47], 0
mov eax, dword [0x423a48]
add esp, 0xc
inc eax
mov dword [0x423a48], eax
jmp 0x401b51
mov esi, 0x423a93
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 0x401b38
mov eax, dword [ebp - 8]
test eax, eax
je 0x401c87
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x401c82
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 0x401c82
call fcn.004032a0
mov ecx, dword [0x423a48]
cmp ecx, 0x400
jae 0x401bc4
lea ecx, [ecx + ecx*8]
push 0x3f
push str._InitRPAppInstance__
lea esi, [ecx*8 + 0x423a4c]
lea edx, [esi + 8]
mov dword [esi], 0x1c6
push edx
mov dword [esi + 4], eax
call ebx
mov byte [esi + 0x47], 0
mov eax, dword [0x423a48]
add esp, 0xc
inc eax
mov dword [0x423a48], eax
jmp 0x401be7
mov esi, 0x423a93
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 0x401bce
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x401c01
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.004032a0
mov ecx, dword [0x423a48]
cmp ecx, 0x400
jae 0x401c48
lea ecx, [ecx + ecx*8]
push 0x3f
push str.InitInstance__
lea esi, [ecx*8 + 0x423a4c]
lea edx, [esi + 8]
mov dword [esi], 0x1cb
push edx
mov dword [esi + 4], eax
call ebx
mov byte [esi + 0x47], 0
mov eax, dword [0x423a48]
add esp, 0xc
inc eax
mov dword [0x423a48], eax
jmp 0x401c6e
mov esi, 0x423a93
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 0x401c52
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 0x401c8a
call fcn.004031c0
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
push eax
call fcn.00402b10
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.00402410
call dword [sym.imp.ole32.dll_OleUninitialize]
mov al, byte [ebp - 1]
test al, al
je 0x401ccc
mov ecx, dword [ebp - 0x20]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.PNCRT.dll__control87]
add esp, 8
test edi, edi
je 0x401cd6
push edi
call ebx
push edi
call esi
lea ecx, [ebp - 0x1c]
call fcn.00406720
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10