Function at 0x4011f0
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
push 0xffffffffffffffff
push 0x409250
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c8
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov al, byte [0x433a98]
test al, 1
jne 0x401294
or al, 1
mov byte [0x433a98], al
mov dword [0x420670], 0x40c420
mov dword [0x420674], 0x40c410
xor edx, edx
mov dword [0x420678], edx
mov eax, 0x42067c
mov ecx, 0x400
mov dword [eax], edx
mov dword [eax + 4], edx
add eax, 0x48
dec ecx
jne 0x40124a
mov esi, 0x432680
mov edi, 0x40
mov ecx, esi
call fcn.00401dd0
add esi, 0x50
dec edi
jne 0x40125f
push 0xa
mov ecx, 0x433a80
call fcn.00405630
push 0x420670
mov ecx, 0x433aa0
call fcn.00401de0
push 0x401e90
call fcn.00408a30
add esp, 4
call fcn.00403130
mov ecx, dword [0x420678]
cmp ecx, 0x400
jae 0x4012dc
lea ecx, [ecx + ecx*8]
lea esi, [ecx*8 + 0x42067c]
mov dword [esi], 0x8c
mov dword [esi + 4], eax
push 0x3f
push str.Initial_Function_Checkpoint
lea edx, [esi + 8]
push edx
mov ebx, dword [sym.imp.PNCRT.dll_strncpy]
call ebx
add esp, 0xc
mov byte [esi + 0x47], 0
inc dword [0x420678]
jmp 0x401305
mov esi, 0x4206c3
mov edi, 0x400
mov ebx, dword [sym.imp.PNCRT.dll_strncpy]
push 0x3f
push str.ERROR___too_many_checkpoints_in_checkpoint_list
lea eax, [esi - 0x3f]
push eax
call ebx
add esp, 0xc
mov byte [esi], 0
add esi, 0x48
dec edi
jne 0x4012ec
xor edx, edx
cmp dword [0x433eac], edx
jne 0x401400
mov al, byte [0x433a98]
test al, 2
jne 0x401391
or al, 2
mov byte [0x433a98], al
mov dword [0x40d248], 0x433eb0
mov dword [0x40d24c], 0x40c410
mov dword [0x40d250], edx
mov eax, 0x40d254
mov ecx, 0x400
mov dword [eax], edx
mov dword [eax + 4], edx
add eax, 0x48
dec ecx
jne 0x401347
mov esi, 0x41f258
mov edi, 0x40
mov ecx, esi
call fcn.00401dd0
add esi, 0x50
dec edi
jne 0x40135c
push 0xa
mov ecx, 0x420658
call fcn.00405630
push 0x40d248
mov ecx, 0x433aa0
call fcn.00401de0
push 0x401e80
call fcn.00408a30
add esp, 4
call fcn.00403130
mov ecx, dword [0x40d250]
cmp ecx, 0x400
jae 0x4013d3
lea ecx, [ecx + ecx*8]
lea esi, [ecx*8 + 0x40d254]
mov dword [esi], 0x8d
mov dword [esi + 4], eax
push 0x3f
push str.____Start_section_Startup
lea edx, [esi + 8]
push edx
call ebx
add esp, 0xc
mov byte [esi + 0x47], 0
inc dword [0x40d250]
jmp 0x4013f6
mov esi, 0x40d29b
mov edi, 0x400
push 0x3f
push str.ERROR___too_many_checkpoints_in_checkpoint_list
lea eax, [esi - 0x3f]
push eax
call ebx
add esp, 0xc
mov byte [esi], 0
add esi, 0x48
dec edi
jne 0x4013dd
mov dword [0x433eac], 1
mov esi, dword [ebp + 0x10]
push esi
lea ecx, [ebp - 0x838]
call fcn.00405180
push 0x3f
push esi
call dword [sym.imp.PNCRT.dll_strchr]
add esp, 8
test eax, eax
je 0x40158f
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call esi
test eax, eax
je 0x40158f
call esi
mov esi, eax
mov ax, word [esi]
cmp ax, 0x22
jne 0x401468
add esi, 2
mov ax, word [esi]
cmp ax, 0x22
je 0x40145d
test ax, ax
je 0x40145d
add esi, 2
mov ax, word [esi]
cmp ax, 0x22
jne 0x40144c
cmp word [esi], 0x22
jne 0x401477
add esi, 2
jmp 0x401477
cmp ax, 0x20
jbe 0x401477
add esi, 2
cmp word [esi], 0x20
ja 0x40146e
mov ax, word [esi]
test ax, ax
je 0x401490
cmp ax, 0x20
ja 0x401490
add esi, 2
mov ax, word [esi]
test ax, ax
jne 0x40147f
push esi
call dword [sym.imp.PNCRT.dll_wcslen]
add esp, 4
mov dword [ebp - 0x858], 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
inc ebx
mov dword [ebp - 0x848], 0
push ebx
call sub.PNCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov edi, eax
mov dword [ebp - 0x8a4], edi
mov ecx, ebx
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 0x848]
push eax
push 0
push ebx
mov ecx, dword [ebp - 0x8a4]
push ecx
mov edx, dword [ebp - 0x858]
push edx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x848]
test eax, eax
je 0x40157a
cmp word [esi], 0x22
jne 0x40151a
add esi, 2
push esi
call dword [sym.imp.PNCRT.dll_wcslen]
add esp, 4
lea eax, [esi + eax*2 - 2]
cmp word [eax], 0x22
jne 0x401533
mov word [eax], 0
lea ecx, [ebp - 0x860]
call fcn.00405040
lea eax, [ebp - 0x860]
push eax
push esi
call fcn.00408700
add esp, 8
lea ecx, [ebp - 0x860]
call fcn.004051a0
test eax, eax
je 0x40156f
lea ecx, [ebp - 0x860]
push ecx
lea ecx, [ebp - 0x838]
call fcn.004051d0
lea ecx, [ebp - 0x860]
call fcn.00405170
mov edx, dword [ebp - 0x8a4]
push edx
call sub.PNCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ebx, dword [sym.imp.PNCRT.dll_strncpy]
cmp byte [ebp - 0x831], 0xff
je 0x4015a3
lea eax, [ebp - 0x838]
mov dword [ebp + 0x10], eax
jmp 0x4015ac
mov ecx, dword [ebp - 0x838]
mov dword [ebp + 0x10], ecx
mov dl, byte [0x433eb0]
mov byte [ebp - 0x824], dl
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x823]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [str.InstallComplete]
push eax
xor esi, esi
push esi
push 6
push str.RealPlayer
mov ecx, dword [str.SoftwareRealNetworks_s_d._dPreferences_s]
push ecx
lea edx, [ebp - 0x824]
push edx
call dword [sym.imp.PNCRT.dll_sprintf]
add esp, 0x18
mov dword [ebp - 0x840], esi
lea eax, [ebp - 0x840]
push eax
push 0x20019
push esi
lea ecx, [ebp - 0x824]
push ecx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4016b7
xor edi, edi
mov dword [ebp - 0x868], esi
mov dl, byte [0x433eb0]
mov byte [ebp - 0x880], dl
mov dword [ebp - 0x87f], eax
mov dword [ebp - 0x87b], eax
mov dword [ebp - 0x877], eax
mov word [ebp - 0x873], ax
mov byte [ebp - 0x871], al
mov dword [ebp - 0x86c], 0x10
lea ecx, [ebp - 0x86c]
push ecx
lea edx, [ebp - 0x880]
push edx
lea eax, [ebp - 0x868]
push eax
push esi
push esi
mov ecx, dword [ebp - 0x840]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40169c
lea edx, [ebp - 0x880]
push edx
call dword [sym.imp.PNCRT.dll_atoi]
add esp, 4
mov edi, eax
dec edi
neg edi
sbb edi, edi
neg edi
mov eax, dword [ebp - 0x840]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x840], esi
cmp edi, esi
jne 0x401947
push 0x402020
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push str.RPStartupMutex
push esi
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov edi, eax
cmp edi, esi
jne 0x4017fa
push str.RPStartupMutex
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
mov dword [ebp - 0x830], edi
lea ecx, [ebp - 0x24]
call fcn.00405040
lea ecx, [ebp - 0x18]
call fcn.00405040
lea edx, [ebp - 0x24]
push edx
mov esi, dword [ebp + 0x10]
push esi
call fcn.00402540
add esp, 8
test eax, eax
je 0x40188b
push 0x20
push 0x22
lea eax, [ebp - 0x24]
push eax
push 0x22
push 0x20
mov ecx, dword [str._cbcf]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x8bc]
push eax
call fcn.004052b0
add esp, 0xc
push eax
lea ecx, [ebp - 0x8c4]
push ecx
call fcn.00405560
add esp, 0xc
push eax
lea edx, [ebp - 0x8cc]
push edx
call fcn.00405560
add esp, 0xc
push eax
lea eax, [ebp - 0x8d4]
push eax
call fcn.00405270
add esp, 0xc
push eax
lea ecx, [ebp - 0x8dc]
push ecx
call fcn.00405560
add esp, 0xc
push eax
lea edx, [ebp - 0x8e4]
push edx
call fcn.00405560
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.004051d0
lea ecx, [ebp - 0x8e4]
call fcn.00405170
lea ecx, [ebp - 0x8dc]
call fcn.00405170
lea ecx, [ebp - 0x8d4]
call fcn.00405170
lea ecx, [ebp - 0x8cc]
call fcn.00405170
lea ecx, [ebp - 0x8c4]
call fcn.00405170
lea ecx, [ebp - 0x8bc]
call fcn.00405170
push esi
lea ecx, [ebp - 0x18]
call fcn.00405490
cmp byte [ebp - 0x11], 0xff
je 0x401885
lea eax, [ebp - 0x18]
mov dword [ebp + 0x10], eax
jmp 0x40188b
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp + 0x10]
cmp edi, esi
je 0x401947
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x401947
mov dword [ebp - 0x884], esi
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.RPStartupMutex
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov edi, eax
mov dword [ebp - 0x830], edi
test edi, edi
je 0x401866
push 0x2710
push edi
call esi
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
test eax, eax
jne 0x4016f3
mov eax, dword [ebp - 0x884]
inc eax
mov dword [ebp - 0x884], eax
cmp eax, 5
jl 0x40182f
test edi, edi
je 0x401947
jmp 0x401939
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 0x10], ecx
push str.RPApplicationRunningMutex
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
mov dword [ebp - 0x83c], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4018fe
mov edx, dword [ebp + 0x10]
push edx
push 0x401ea0
call dword [sym.imp.USER32.dll_EnumWindows]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
test edi, edi
je 0x4018d7
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call esi
xor edi, edi
lea ecx, [ebp - 0x18]
call fcn.00405170
lea ecx, [ebp - 0x24]
call fcn.00405170
test edi, edi
je 0x401da7
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call esi
jmp 0x401da7
mov esi, 0x78
push esi
call dword [sym.imp.USER32.dll_SetMessageQueue]
test eax, eax
jne 0x401968
cmp esi, 8
jle 0x401923
sar esi, 1
push esi
call dword [sym.imp.USER32.dll_SetMessageQueue]
test eax, eax
je 0x40190e
cmp esi, 8
jge 0x401968
lea ecx, [ebp - 0x18]
call fcn.00405170
lea ecx, [ebp - 0x24]
call fcn.00405170
test edi, edi
je 0x401947
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x838]
call fcn.00405170
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.00403130
mov ecx, dword [0x420678]
cmp ecx, 0x400
jae 0x4019aa
lea ecx, [ecx + ecx*8]
lea esi, [ecx*8 + 0x42067c]
mov dword [esi], 0x157
mov dword [esi + 4], eax
push 0x3f
push str._Safe_Startup_EnumWindows___SetMessageQueue__
lea edx, [esi + 8]
push edx
call ebx
add esp, 0xc
mov byte [esi + 0x47], 0
inc dword [0x420678]
jmp 0x4019cd
mov esi, 0x4206c3
mov edi, 0x400
push 0x3f
push str.ERROR___too_many_checkpoints_in_checkpoint_list
lea eax, [esi - 0x3f]
push eax
call ebx
add esp, 0xc
mov byte [esi], 0
add esi, 0x48
dec edi
jne 0x4019b4
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
call fcn.00403130
mov ecx, dword [0x420678]
cmp ecx, 0x400
jae 0x401a17
lea ecx, [ecx + ecx*8]
lea esi, [ecx*8 + 0x42067c]
mov dword [esi], 0x15c
mov dword [esi + 4], eax
push 0x3f
push str._OleInitialize__
lea edx, [esi + 8]
push edx
call ebx
add esp, 0xc
mov byte [esi + 0x47], 0
inc dword [0x420678]
jmp 0x401a3a
mov esi, 0x4206c3
mov edi, 0x400
push 0x3f
push str.ERROR___too_many_checkpoints_in_checkpoint_list
lea eax, [esi - 0x3f]
push eax
call ebx
add esp, 0xc
mov byte [esi], 0
add esi, 0x48
dec edi
jne 0x401a21
mov dword [ebp - 0x828], 1
push str._addmounts
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.PNCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x401a60
mov dword [ebp - 0x828], eax
mov dl, byte [0x433eb0]
mov byte [ebp - 0x424], dl
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x423]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [str.RemovePluginHandlerData]
push eax
xor esi, esi
push esi
push 6
push str.RealPlayer
mov ecx, dword [str.SoftwareRealNetworks_s_d._dPreferences_s]
push ecx
lea edx, [ebp - 0x424]
push edx
call dword [sym.imp.PNCRT.dll_sprintf]
add esp, 0x18
mov dword [ebp - 0x840], esi
lea eax, [ebp - 0x840]
push eax
push 0x20019
push esi
lea ecx, [ebp - 0x424]
push ecx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401b6d
mov dword [ebp - 0x88c], esi
mov dl, byte [0x433eb0]
mov byte [ebp - 0x8a0], dl
mov dword [ebp - 0x89f], eax
mov dword [ebp - 0x89b], eax
mov dword [ebp - 0x897], eax
mov word [ebp - 0x893], ax
mov byte [ebp - 0x891], al
mov dword [ebp - 0x890], 0x10
lea ecx, [ebp - 0x890]
push ecx
lea edx, [ebp - 0x8a0]
push edx
lea eax, [ebp - 0x88c]
push eax
push esi
push esi
mov ecx, dword [ebp - 0x840]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401b4e
lea edx, [ebp - 0x8a0]
push edx
call dword [sym.imp.PNCRT.dll_atoi]
add esp, 4
test eax, eax
je 0x401b4e
call fcn.00403060
lea eax, [ebp - 0x424]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [ebp - 0x840]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x82c], esi
lea edx, [ebp - 0x82c]
push edx
call fcn.004026c0
add esp, 4
call fcn.00403130
mov ecx, dword [0x420678]
cmp ecx, 0x400
jae 0x401bc4
lea ecx, [ecx + ecx*8]
lea esi, [ecx*8 + 0x42067c]
mov dword [esi], 0x17c
mov dword [esi + 4], eax
push 0x3f
push str._GetRPApp___finished
lea edx, [esi + 8]
push edx
call ebx
add esp, 0xc
mov byte [esi + 0x47], 0
inc dword [0x420678]
jmp 0x401be7
mov esi, 0x4206c3
mov edi, 0x400
push 0x3f
push str.ERROR___too_many_checkpoints_in_checkpoint_list
lea eax, [esi - 0x3f]
push eax
call ebx
add esp, 0xc
mov byte [esi], 0
add esi, 0x48
dec edi
jne 0x401bce
mov eax, dword [ebp - 0x828]
test eax, eax
je 0x401d4c
mov eax, dword [ebp - 0x82c]
test eax, eax
je 0x401d47
mov ecx, dword [eax]
mov edx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x401d47
call fcn.00403130
mov ecx, dword [0x420678]
cmp ecx, 0x400
jae 0x401c5b
lea ecx, [ecx + ecx*8]
lea esi, [ecx*8 + 0x42067c]
mov dword [esi], 0x188
mov dword [esi + 4], eax
push 0x3f
push str._InitRPAppInstance__
lea edx, [esi + 8]
push edx
call ebx
add esp, 0xc
mov byte [esi + 0x47], 0
inc dword [0x420678]
jmp 0x401c7e
mov esi, 0x4206c3
mov edi, 0x400
push 0x3f
push str.ERROR___too_many_checkpoints_in_checkpoint_list
lea eax, [esi - 0x3f]
push eax
call ebx
add esp, 0xc
mov byte [esi], 0
add esi, 0x48
dec edi
jne 0x401c65
mov esi, dword [ebp - 0x830]
test esi, esi
je 0x401ca0
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x830], 0
push 0xffffff
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
call fcn.00403130
mov ecx, dword [0x420678]
cmp ecx, 0x400
jae 0x401cf6
lea ecx, [ecx + ecx*8]
lea esi, [ecx*8 + 0x42067c]
mov dword [esi], 0x18f
mov dword [esi + 4], eax
push 0x3f
push str.InitInstance__
lea edx, [esi + 8]
push edx
call ebx
add esp, 0xc
mov byte [esi + 0x47], 0
inc dword [0x420678]
jmp 0x401d19
mov esi, 0x4206c3
mov edi, 0x400
push 0x3f
push str.ERROR___too_many_checkpoints_in_checkpoint_list
lea eax, [esi - 0x3f]
push eax
call ebx
add esp, 0xc
mov byte [esi], 0
add esi, 0x48
dec edi
jne 0x401d00
mov eax, dword [ebp - 0x82c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x82c]
mov edx, dword [eax]
push eax
call dword [edx + 0x14]
mov dword [ebp - 4], 0xffffffff
jmp 0x401d4c
call fcn.00403060
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x82c]
push eax
call fcn.00402a30
add esp, 4
mov esi, dword [ebp - 0x830]
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x83c]
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
call dword [sym.imp.ole32.dll_OleUninitialize]
lea ecx, [ebp - 0x18]
call fcn.00405170
lea ecx, [ebp - 0x24]
call fcn.00405170
test esi, esi
je 0x401da7
push esi
call ebx
push esi
call edi
lea ecx, [ebp - 0x838]
call fcn.00405170
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10