Function at 0x4030b0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc70
mov eax, dword [0x48e610]
xor eax, ebp
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x10]
call fcn.0043f500
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00440160
mov dword [ebp - 0x7f4], eax
mov dword [ebp - 0x7f8], 0
jmp 0x4030f6
mov eax, dword [ebp - 0x7f8]
add eax, 1
mov dword [ebp - 0x7f8], eax
mov ecx, dword [ebp + 0xc]
call fcn.0043f510
cmp dword [ebp - 0x7f8], eax
jae 0x403d88
mov ecx, dword [ebp + 0xc]
call fcn.0043f510
sub eax, 0xb
cmp dword [ebp - 0x7f8], eax
jae 0x4031bb
push 0xc
push str._defbrowser_
mov ecx, dword [ebp - 0x7f4]
add ecx, dword [ebp - 0x7f8]
push ecx
call fcn.0047891e
add esp, 0xc
test eax, eax
jne 0x4031bb
cmp dword [ebp + 0x10], 0
je 0x4031bb
push str._defbrowser_
call fcn.0045f9f0
add esp, 4
add eax, dword [ebp - 0x7f8]
mov dword [ebp - 0x7f8], eax
lea ecx, [ebp - 0x800]
call fcn.0043f500
push 0
lea edx, [ebp - 0x800]
push edx
push str.PreferredBrowser
push str.RealMediaSDK
push 0x80000001
call fcn.00402bf4
add esp, 0x14
test eax, eax
je 0x4031ab
lea eax, [ebp - 0x800]
push eax
lea ecx, [ebp - 0x10]
call fcn.0043fcf0
push 0x47ea68
lea ecx, [ebp - 0x10]
call fcn.0043fc10
lea ecx, [ebp - 0x800]
call fcn.0043f790
jmp 0x403d83
mov ecx, dword [ebp + 0xc]
call fcn.0043f510
sub eax, 0xf
cmp dword [ebp - 0x7f8], eax
jae 0x4032a3
push 0x10
push str._alluserscommon_
mov ecx, dword [ebp - 0x7f4]
add ecx, dword [ebp - 0x7f8]
push ecx
call fcn.0047891e
add esp, 0xc
test eax, eax
jne 0x4032a3
push str._alluserscommon_
call fcn.0045f9f0
add esp, 4
add eax, dword [ebp - 0x7f8]
mov dword [ebp - 0x7f8], eax
lea ecx, [ebp - 0x808]
call fcn.0043f500
lea edx, [ebp - 0x808]
push edx
push 0
push 0
push 0x23
push 0
call fcn.00401bda
add esp, 0x14
lea ecx, [ebp - 0x808]
call fcn.00401029
push eax
call fcn.0045f9f0
add esp, 4
test eax, eax
jbe 0x403293
lea ecx, [ebp - 0x808]
call fcn.00401029
push eax
call fcn.0045f9f0
add esp, 4
sub eax, 1
push eax
lea ecx, [ebp - 0x808]
call fcn.00401034
movsx eax, al
cmp eax, 0x5c
je 0x403284
push 0x47e754
lea ecx, [ebp - 0x808]
call fcn.0043fc10
lea ecx, [ebp - 0x808]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0043fcf0
lea ecx, [ebp - 0x808]
call fcn.0043f790
jmp 0x403d83
mov ecx, dword [ebp + 0xc]
call fcn.0043f510
sub eax, 8
cmp dword [ebp - 0x7f8], eax
jae 0x4033a6
push 9
push str._appdata_
mov edx, dword [ebp - 0x7f4]
add edx, dword [ebp - 0x7f8]
push edx
call fcn.0047891e
add esp, 0xc
test eax, eax
jne 0x4033a6
push str._appdata_
call fcn.0045f9f0
add esp, 4
add eax, dword [ebp - 0x7f8]
mov dword [ebp - 0x7f8], eax
lea ecx, [ebp - 0x810]
call fcn.0043f500
lea eax, [ebp - 0x810]
push eax
push 0
push 0
push 0x1c
push 0
call fcn.00401bda
add esp, 0x14
test eax, eax
jne 0x403334
lea ecx, [ebp - 0x810]
push ecx
push 0
push 0
push 0x1a
push 0
call fcn.00401bda
add esp, 0x14
lea ecx, [ebp - 0x810]
call fcn.00401029
push eax
call fcn.0045f9f0
add esp, 4
test eax, eax
jbe 0x403396
lea ecx, [ebp - 0x810]
call fcn.00401029
push eax
call fcn.0045f9f0
add esp, 4
sub eax, 1
push eax
lea ecx, [ebp - 0x810]
call fcn.00401034
movsx edx, al
cmp edx, 0x5c
je 0x403387
push 0x47e754
lea ecx, [ebp - 0x810]
call fcn.0043fc10
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x10]
call fcn.0043fcf0
lea ecx, [ebp - 0x810]
call fcn.0043f790
jmp 0x403d83
mov ecx, dword [ebp + 0xc]
call fcn.0043f510
sub eax, 0xf
cmp dword [ebp - 0x7f8], eax
jae 0x40348e
push 0x10
push str._system_appdata_
mov ecx, dword [ebp - 0x7f4]
add ecx, dword [ebp - 0x7f8]
push ecx
call fcn.0047891e
add esp, 0xc
test eax, eax
jne 0x40348e
push str._system_appdata_
call fcn.0045f9f0
add esp, 4
add eax, dword [ebp - 0x7f8]
mov dword [ebp - 0x7f8], eax
lea ecx, [ebp - 0x818]
call fcn.0043f500
lea edx, [ebp - 0x818]
push edx
push 0
push 0
push 0x1a
push 0
call fcn.00401bda
add esp, 0x14
lea ecx, [ebp - 0x818]
call fcn.00401029
push eax
call fcn.0045f9f0
add esp, 4
test eax, eax
jbe 0x40347e
lea ecx, [ebp - 0x818]
call fcn.00401029
push eax
call fcn.0045f9f0
add esp, 4
sub eax, 1
push eax
lea ecx, [ebp - 0x818]
call fcn.00401034
movsx eax, al
cmp eax, 0x5c
je 0x40346f
push 0x47e754
lea ecx, [ebp - 0x818]
call fcn.0043fc10
lea ecx, [ebp - 0x818]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0043fcf0
lea ecx, [ebp - 0x818]
call fcn.0043f790
jmp 0x403d83
mov ecx, dword [ebp + 0xc]
call fcn.0043f510
sub eax, 0xe
cmp dword [ebp - 0x7f8], eax
jae 0x403576
push 0xf
push str._local_appdata_
mov edx, dword [ebp - 0x7f4]
add edx, dword [ebp - 0x7f8]
push edx
call fcn.0047891e
add esp, 0xc
test eax, eax
jne 0x403576
push str._local_appdata_
call fcn.0045f9f0
add esp, 4
add eax, dword [ebp - 0x7f8]
mov dword [ebp - 0x7f8], eax
lea ecx, [ebp - 0x820]
call fcn.0043f500
lea eax, [ebp - 0x820]
push eax
push 0
push 0
push 0x1c
push 0
call fcn.00401bda
add esp, 0x14
lea ecx, [ebp - 0x820]
call fcn.00401029
push eax
call fcn.0045f9f0
add esp, 4
test eax, eax
jbe 0x403566
lea ecx, [ebp - 0x820]
call fcn.00401029
push eax
call fcn.0045f9f0
add esp, 4
sub eax, 1
push eax
lea ecx, [ebp - 0x820]
call fcn.00401034
movsx ecx, al
cmp ecx, 0x5c
je 0x403557
push 0x47e754
lea ecx, [ebp - 0x820]
call fcn.0043fc10
lea edx, [ebp - 0x820]
push edx
lea ecx, [ebp - 0x10]
call fcn.0043fcf0
lea ecx, [ebp - 0x820]
call fcn.0043f790
jmp 0x403d83
mov ecx, dword [ebp + 0xc]
call fcn.0043f510
sub eax, 0xa
cmp dword [ebp - 0x7f8], eax
jae 0x403710
push 0xb
push str._progfiles_
mov eax, dword [ebp - 0x7f4]
add eax, dword [ebp - 0x7f8]
push eax
call fcn.0047891e
add esp, 0xc
test eax, eax
jne 0x403710
push str._progfiles_
call fcn.0045f9f0
add esp, 4
add eax, dword [ebp - 0x7f8]
mov dword [ebp - 0x7f8], eax
lea ecx, [ebp - 0x828]
call fcn.0043f500
lea ecx, [ebp - 0x828]
push ecx
push 0
push 0
push 0x26
push 0
call fcn.00401bda
add esp, 0x14
test eax, eax
jge 0x40369e
mov dword [ebp - 0x82c], 0
lea edx, [ebp - 0x82c]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40369e
mov dword [ebp - 0x940], 1
mov dword [ebp - 0x93c], 0x104
mov al, byte [0x47e7fe]
mov byte [ebp - 0x938], al
push 0x103
push 0
lea ecx, [ebp - 0x937]
push ecx
call fcn.0045f090
add esp, 0xc
lea edx, [ebp - 0x93c]
push edx
lea eax, [ebp - 0x938]
push eax
lea ecx, [ebp - 0x940]
push ecx
push 0
push str.ProgramFilesDir
mov edx, dword [ebp - 0x82c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403691
lea eax, [ebp - 0x938]
push eax
lea ecx, [ebp - 0x828]
call fcn.0043f8e0
mov ecx, dword [ebp - 0x82c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x828]
call fcn.00401029
push eax
call fcn.0045f9f0
add esp, 4
test eax, eax
jbe 0x403700
lea ecx, [ebp - 0x828]
call fcn.00401029
push eax
call fcn.0045f9f0
add esp, 4
sub eax, 1
push eax
lea ecx, [ebp - 0x828]
call fcn.00401034
movsx edx, al
cmp edx, 0x5c
je 0x4036f1
push 0x47e754
lea ecx, [ebp - 0x828]
call fcn.0043fc10
lea eax, [ebp - 0x828]
push eax
lea ecx, [ebp - 0x10]
call fcn.0043fcf0
lea ecx, [ebp - 0x828]
call fcn.0043f790
jmp 0x403d83
mov ecx, dword [ebp + 0xc]
call fcn.0043f510
sub eax, 0xd
cmp dword [ebp - 0x7f8], eax
jae 0x4038ec
push 0xe
push str._progfilesx86_
mov ecx, dword [ebp - 0x7f4]
add ecx, dword [ebp - 0x7f8]
push ecx
call fcn.0047891e
add esp, 0xc
test eax, eax
jne 0x4038ec
push str._progfilesx86_
call fcn.0045f9f0
add esp, 4
add eax, dword [ebp - 0x7f8]
mov dword [ebp - 0x7f8], eax
lea ecx, [ebp - 0x948]
call fcn.0043f500
lea edx, [ebp - 0x948]
push edx
push 0
push 0
push 0x26
push 0
call fcn.00401bda
add esp, 0x14
test eax, eax
jge 0x40387a
mov dword [ebp - 0x94c], 0
lea eax, [ebp - 0x94c]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40387a
mov dword [ebp - 0xa60], 1
mov dword [ebp - 0xa5c], 0x104
mov cl, byte [0x47e7fe]
mov byte [ebp - 0xa58], cl
push 0x103
push 0
lea edx, [ebp - 0xa57]
push edx
call fcn.0045f090
add esp, 0xc
lea eax, [ebp - 0xa5c]
push eax
lea ecx, [ebp - 0xa58]
push ecx
lea edx, [ebp - 0xa60]
push edx
push 0
push str.ProgramFilesDir__x86_
mov eax, dword [ebp - 0x94c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40382e
lea ecx, [ebp - 0xa58]
push ecx
lea ecx, [ebp - 0x948]
call fcn.0043f8e0
jmp 0x40386d
lea edx, [ebp - 0xa5c]
push edx
lea eax, [ebp - 0xa58]
push eax
lea ecx, [ebp - 0xa60]
push ecx
push 0
push str.ProgramFilesDir
mov edx, dword [ebp - 0x94c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40386d
lea eax, [ebp - 0xa58]
push eax
lea ecx, [ebp - 0x948]
call fcn.0043f8e0
mov ecx, dword [ebp - 0x94c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x948]
call fcn.00401029
push eax
call fcn.0045f9f0
add esp, 4
test eax, eax
jbe 0x4038dc
lea ecx, [ebp - 0x948]
call fcn.00401029
push eax
call fcn.0045f9f0
add esp, 4
sub eax, 1
push eax
lea ecx, [ebp - 0x948]
call fcn.00401034
movsx edx, al
cmp edx, 0x5c
je 0x4038cd
push 0x47e754
lea ecx, [ebp - 0x948]
call fcn.0043fc10
lea eax, [ebp - 0x948]
push eax
lea ecx, [ebp - 0x10]
call fcn.0043fcf0
lea ecx, [ebp - 0x948]
call fcn.0043f790
jmp 0x403d83
mov ecx, dword [ebp + 0xc]
call fcn.0043f510
sub eax, 4
cmp dword [ebp - 0x7f8], eax
jae 0x403d01
push 5
push str._app:
mov ecx, dword [ebp - 0x7f4]
add ecx, dword [ebp - 0x7f8]
push ecx
call fcn.0047891e
add esp, 0xc
test eax, eax
jne 0x403d01
lea ecx, [ebp - 0xa6c]
call fcn.0043f500
push str._app:
call fcn.0045f9f0
add esp, 4
add eax, dword [ebp - 0x7f8]
mov dword [ebp - 0x7f8], eax
jmp 0x40395c
mov edx, dword [ebp - 0x7f8]
add edx, 1
mov dword [ebp - 0x7f8], edx
mov ecx, dword [ebp + 0xc]
call fcn.0043f510
cmp dword [ebp - 0x7f8], eax
jae 0x4039a1
mov eax, dword [ebp - 0x7f4]
add eax, dword [ebp - 0x7f8]
movsx ecx, byte [eax]
cmp ecx, 0x25
jne 0x403984
jmp 0x4039a1
mov edx, dword [ebp - 0x7f4]
add edx, dword [ebp - 0x7f8]
movzx eax, byte [edx]
push eax
lea ecx, [ebp - 0xa6c]
call fcn.0043fc90
jmp 0x40394d
mov dword [ebp - 0xa64], 0
mov dword [ebp - 0xa70], 0
lea ecx, [ebp - 0xa64]
push ecx
lea edx, [ebp - 0xa6c]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths_
lea eax, [ebp - 0xc70]
push eax
call fcn.004400e0
add esp, 0xc
mov ecx, eax
call fcn.00401029
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0xc65], al
lea ecx, [ebp - 0xc70]
call fcn.0043f790
movzx ecx, byte [ebp - 0xc65]
test ecx, ecx
je 0x403aee
mov dword [ebp - 0xa74], 0
mov dword [ebp - 0xa78], 0x104
mov dl, byte [0x47e7fe]
mov byte [ebp - 0xb80], dl
push 0x103
push 0
lea eax, [ebp - 0xb7f]
push eax
call fcn.0045f090
add esp, 0xc
lea ecx, [ebp - 0xa78]
push ecx
lea edx, [ebp - 0xb80]
push edx
lea eax, [ebp - 0xa74]
push eax
push 0
push 0
mov ecx, dword [ebp - 0xa64]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403ae1
cmp dword [ebp - 0xa78], 0
jbe 0x403ae1
mov edx, dword [ebp - 0xa78]
sub edx, 1
mov dword [ebp - 0xb84], edx
jmp 0x403a9a
mov eax, dword [ebp - 0xb84]
sub eax, 1
mov dword [ebp - 0xb84], eax
cmp dword [ebp - 0xb84], 0
jle 0x403ac8
mov ecx, dword [ebp - 0xb84]
movsx edx, byte [ebp + ecx - 0xb80]
cmp edx, 0x5c
jne 0x403ac6
mov eax, dword [ebp - 0xb84]
mov byte [ebp + eax - 0xb80], 0
jmp 0x403ac8
jmp 0x403a8b
lea ecx, [ebp - 0xb80]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0043fc10
mov dword [ebp - 0xa70], 1
mov edx, dword [ebp - 0xa64]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xa70], 0
jne 0x403bf2
push str.realplay.exe
lea eax, [ebp - 0xa6c]
push eax
call fcn.00401046
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x403bf2
lea ecx, [ebp - 0xb8c]
call fcn.0043f500
push 0
lea edx, [ebp - 0xb8c]
push edx
push str.MainApp
push 0x47e950
push 0x80000000
call fcn.00402bf4
add esp, 0x14
test eax, eax
je 0x403be2
lea eax, [ebp - 0xb8c]
push eax
lea ecx, [ebp - 0xbf4]
call fcn.00448800
lea ecx, [ebp - 0xbbc]
push ecx
lea ecx, [ebp - 0xbf4]
call fcn.00448980
lea edx, [ebp - 0xbc4]
push edx
lea ecx, [ebp - 0xbbc]
call fcn.00448940
lea ecx, [ebp - 0xbc4]
call fcn.0043f510
sub eax, 1
push eax
lea ecx, [ebp - 0xbc4]
call fcn.00401034
movsx eax, al
cmp eax, 0x5c
je 0x403bb2
push 0x5c
lea ecx, [ebp - 0xbc4]
call fcn.0043fc90
lea ecx, [ebp - 0xbc4]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0043fcf0
lea ecx, [ebp - 0xbc4]
call fcn.0043f790
lea ecx, [ebp - 0xbbc]
call fcn.00448840
lea ecx, [ebp - 0xbf4]
call fcn.00448840
lea ecx, [ebp - 0xb8c]
call fcn.0043f790
jmp 0x403cf1
cmp dword [ebp - 0xa70], 0
jne 0x403cf1
push str.realdownloader.exe
lea edx, [ebp - 0xa6c]
push edx
call fcn.00401046
add esp, 8
movzx eax, al
test eax, eax
je 0x403cf1
lea ecx, [ebp - 0xbfc]
call fcn.0043f500
push 0
lea ecx, [ebp - 0xbfc]
push ecx
push str.MainApp
push 0x47e92c
push 0x80000000
call fcn.00402bf4
add esp, 0x14
test eax, eax
je 0x403ce6
lea edx, [ebp - 0xbfc]
push edx
lea ecx, [ebp - 0xc64]
call fcn.00448800
lea eax, [ebp - 0xc2c]
push eax
lea ecx, [ebp - 0xc64]
call fcn.00448980
lea ecx, [ebp - 0xc34]
push ecx
lea ecx, [ebp - 0xc2c]
call fcn.00448940
lea ecx, [ebp - 0xc34]
call fcn.0043f510
sub eax, 1
push eax
lea ecx, [ebp - 0xc34]
call fcn.00401034
movsx edx, al
cmp edx, 0x5c
je 0x403cb6
push 0x5c
lea ecx, [ebp - 0xc34]
call fcn.0043fc90
lea eax, [ebp - 0xc34]
push eax
lea ecx, [ebp - 0x10]
call fcn.0043fcf0
lea ecx, [ebp - 0xc34]
call fcn.0043f790
lea ecx, [ebp - 0xc2c]
call fcn.00448840
lea ecx, [ebp - 0xc64]
call fcn.00448840
lea ecx, [ebp - 0xbfc]
call fcn.0043f790
lea ecx, [ebp - 0xa6c]
call fcn.0043f790
jmp 0x403d83
mov ecx, dword [ebp + 0xc]
call fcn.0043f510
sub eax, 5
cmp dword [ebp - 0x7f8], eax
jae 0x403d6b
push 6
push str.quot_
mov ecx, dword [ebp - 0x7f4]
add ecx, dword [ebp - 0x7f8]
push ecx
call fcn.0047891e
add esp, 0xc
test eax, eax
jne 0x403d6b
push str.quot_
call fcn.0045f9f0
add esp, 4
add eax, dword [ebp - 0x7f8]
mov dword [ebp - 0x7f8], eax
mov edx, dword [ebp - 0x7f8]
sub edx, 1
mov dword [ebp - 0x7f8], edx
push 0x47e920
lea ecx, [ebp - 0x10]
call fcn.0043fc10
jmp 0x403d83
mov eax, dword [ebp - 0x7f4]
add eax, dword [ebp - 0x7f8]
movzx ecx, byte [eax]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0043fc90
jmp 0x4030e7
push 0x7d0
lea edx, [ebp - 0x7f0]
push edx
lea ecx, [ebp - 0x10]
call fcn.00401029
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x7f0]
push eax
lea ecx, [ebp - 8]
call fcn.0043f7b0
push 0xffffffffffffffff
mov ecx, dword [ebp + 0xc]
call fcn.004401f0
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0043f6f0
lea ecx, [ebp - 8]
call fcn.0043f790
lea ecx, [ebp - 0x10]
call fcn.0043f790
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045f4ee
mov esp, ebp
pop ebp
ret