Function at 0x45c400
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9b50
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x848
mov eax, dword [0x4e0138]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x84a], cl
lea eax, [ebp - 0x824]
mov dword [ebp - 0x850], 0
push eax
push 1
push 0
push str.SOFTWAREValveSteamApps2630
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 0x849], 0
mov esi, 0x4e0df0
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x820], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x45c660
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x81c], 4
push eax
lea eax, [ebp - 0x820]
push eax
push 0
push 0
push str.Installed
push dword [ebp - 0x824]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45c64b
cmp dword [ebp - 0x820], 1
jne 0x45c64b
mov dword [ebp - 0x828], eax
lea eax, [ebp - 0x828]
push eax
push 1
push 0
push str.SOFTWAREValveSteam
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x45c64b
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x81c], 0x8000
push eax
push 0x4ef5a0
push 0
push 0
push str.SteamExe
push dword [ebp - 0x828]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45c643
mov ecx, 0x4ef5a0
mov dword [ebp - 0x830], eax
xorps xmm0, xmm0
mov dword [ebp - 0x82c], eax
movups xmmword [ebp - 0x840], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45c556
sub ecx, edx
push ecx
push 0x4ef5a0
lea ecx, [ebp - 0x840]
call fcn.004127b0
lea ecx, [ebp - 0x840]
call fcn.0045b280
cmp dword [ebp - 0x82c], 0x10
lea ecx, [ebp - 0x840]
cmovae ecx, dword [ebp - 0x840]
call fcn.0045ffd0
test al, al
je 0x45c609
cmp dword [ebp - 0x82c], 0x10
lea eax, [ebp - 0x840]
cmovae eax, dword [ebp - 0x840]
push eax
push str.__s___applaunch_2630
push 0x8000
push 0x50f6a0
call fcn.00408d90
push 0x50f6a0
push str.2Successfully_built_your_3Call_of_Duty_2__Steam__2games_launch_command:_5_s_n
lea eax, [ebp - 0x418]
mov byte [ebp - 0x849], 1
push 0x400
push eax
call fcn.00408d90
add esp, 0x20
lea edx, [ebp - 0x418]
push 1
push 1
push ecx
mov ecx, dword [0x4e3440]
call fcn.004600e0
add esp, 0xc
mov dword [str.SOFTWAREActivisionCall_of_Duty_2], 0
mov ecx, dword [ebp - 0x82c]
cmp ecx, 0x10
jb 0x45c643
mov edx, dword [ebp - 0x840]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x45c639
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45cf84
push ecx
push edx
call fcn.004885c3
add esp, 8
push dword [ebp - 0x828]
call edi
push dword [ebp - 0x824]
call edi
cmp byte [ebp - 0x849], 0
jne 0x45cc14
lea eax, [ebp - 0x824]
mov dword [ebp - 0x824], 0
push eax
push 1
push 0
push str.SOFTWAREValveSteamApps2630
push closesocket
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x81c], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x45c860
lea eax, [ebp - 0x81c]
push eax
lea eax, [ebp - 0x820]
push eax
push 0
push 0
push str.Installed
push dword [ebp - 0x824]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45c848
cmp dword [ebp - 0x820], 1
jne 0x45c848
mov dword [ebp - 0x828], eax
lea eax, [ebp - 0x828]
push eax
push 1
push 0
push str.SOFTWAREValveSteam
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x45c848
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x81c], 0x8000
push eax
push 0x4ef5a0
push 0
push 0
push str.SteamExe
push dword [ebp - 0x828]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45c840
mov ecx, 0x4ef5a0
mov dword [ebp - 0x830], eax
xorps xmm0, xmm0
mov dword [ebp - 0x82c], eax
movups xmmword [ebp - 0x840], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45c753
sub ecx, edx
push ecx
push 0x4ef5a0
lea ecx, [ebp - 0x840]
call fcn.004127b0
lea ecx, [ebp - 0x840]
call fcn.0045b280
cmp dword [ebp - 0x82c], 0x10
lea ecx, [ebp - 0x840]
cmovae ecx, dword [ebp - 0x840]
call fcn.0045ffd0
test al, al
je 0x45c806
cmp dword [ebp - 0x82c], 0x10
lea eax, [ebp - 0x840]
cmovae eax, dword [ebp - 0x840]
push eax
push str.__s___applaunch_2630
push 0x8000
push 0x50f6a0
call fcn.00408d90
push 0x50f6a0
push str.2Successfully_built_your_3Call_of_Duty_2__Steam__2games_launch_command:_5_s_n
lea eax, [ebp - 0x418]
mov byte [ebp - 0x849], 1
push 0x400
push eax
call fcn.00408d90
add esp, 0x20
lea edx, [ebp - 0x418]
push 1
push 1
push ecx
mov ecx, dword [0x4e3440]
call fcn.004600e0
add esp, 0xc
mov dword [str.SOFTWAREActivisionCall_of_Duty_2], 0
mov ecx, dword [ebp - 0x82c]
cmp ecx, 0x10
jb 0x45c840
mov edx, dword [ebp - 0x840]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x45c836
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45cf89
push ecx
push edx
call fcn.004885c3
add esp, 8
push dword [ebp - 0x828]
call edi
push dword [ebp - 0x824]
call edi
cmp byte [ebp - 0x849], 0
jne 0x45cc14
nop dword [eax]
mov eax, dword [esi]
test eax, eax
je 0x45c99e
lea ecx, [ebp - 0x824]
mov dword [ebp - 0x824], 0
push ecx
push 1
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x81c], 0x8000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x45c957
lea eax, [ebp - 0x81c]
push eax
push 0x4ef5a0
push 0
push 0
push str.InstallPath
push dword [ebp - 0x824]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45c94f
push 0x140
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.0048f850
xor eax, eax
add esp, 0xc
cmp byte [0x4ef5a0], al
je 0x45c91c
inc eax
cmp byte [eax + 0x4ef5a0], 0
jne 0x45c8e5
test eax, eax
je 0x45c91c
add eax, 0xffffffff
je 0x45c91c
nop dword [eax + eax]
mov cl, byte [eax + 0x4ef5a0]
cmp cl, 0x5c
je 0x45c910
cmp cl, 0x2f
jne 0x45c91c
mov byte [eax + 0x4ef5a0], 0
sub eax, 1
jne 0x45c900
push 0x4ef5a0
push str._scod2mp_s.exe
push 0x8000
push 0x50f6a0
call fcn.00408d90
add esp, 0x10
lea eax, [ebp - 0x158]
push eax
push 0x50f6a0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x45c95f
push dword [ebp - 0x824]
call edi
add esi, 4
jmp 0x45c860
push 0x50f6a0
push str.2Successfully_built_your_3Call_of_Duty_2_2games_launch_command:_5_s_n
lea eax, [ebp - 0x818]
push 0x400
push eax
call fcn.00408d90
add esp, 0x10
lea edx, [ebp - 0x818]
push 1
push 1
push ecx
mov ecx, dword [0x4e3440]
call fcn.004600e0
mov dword [esi], 0
jmp 0x45cc11
mov esi, 0x4e0df0
mov eax, dword [esi]
test eax, eax
je 0x45caa6
lea ecx, [ebp - 0x824]
mov dword [ebp - 0x824], 0
push ecx
push 1
push 0
push eax
push closesocket
mov dword [ebp - 0x81c], 0x8000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x45ca9e
lea eax, [ebp - 0x81c]
push eax
push 0x4ef5a0
push 0
push 0
push str.InstallPath
push dword [ebp - 0x824]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45ca96
push 0x140
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.0048f850
xor eax, eax
add esp, 0xc
cmp byte [0x4ef5a0], al
je 0x45ca5f
nop dword [eax + eax]
inc eax
cmp byte [eax + 0x4ef5a0], 0
jne 0x45ca30
test eax, eax
je 0x45ca5f
add eax, 0xffffffff
je 0x45ca5f
mov cl, byte [eax + 0x4ef5a0]
cmp cl, 0x5c
je 0x45ca53
cmp cl, 0x2f
jne 0x45ca5f
mov byte [eax + 0x4ef5a0], 0
sub eax, 1
jne 0x45ca43
push 0x4ef5a0
push str._scod2mp_s.exe
push 0x8000
push 0x50f6a0
call fcn.00408d90
add esp, 0x10
lea eax, [ebp - 0x158]
push eax
push 0x50f6a0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x45c95f
push dword [ebp - 0x824]
call edi
add esi, 4
jmp 0x45c9a3
cmp byte [ebp - 0x84a], 0
je 0x45cc14
sub esp, 8
mov ecx, 0x4ef5a0
call fcn.00435ca0
push str.Please__select_your_Call_of_Duty_2_games_installation_folder_and_click_OK.
push 0x400
push 0x54d018
call fcn.00408d90
add esp, 0x14
mov dword [ebp - 4], 0
lea eax, [ebp - 0x848]
xorps xmm0, xmm0
mov dword [ebp - 0x840], 0
push eax
movlpd qword [ebp - 0x848], xmm0
mov dword [ebp - 0x82c], 0
mov dword [ebp - 0x83c], 0x54d018
mov dword [ebp - 0x838], 0x51
mov dword [ebp - 0x834], 0x45b450
mov dword [ebp - 0x830], 0x4ef5a0
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
mov esi, eax
test esi, esi
je 0x45cb7a
push 0x54dc48
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [ebp - 0x828]
mov dword [ebp - 0x828], 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x45cb81
mov ecx, dword [ebp - 0x828]
push esi
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, dword [ebp - 0x828]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x45cb81
mov byte [0x54dc48], 0
push 0x4c663e
mov dword [ebp - 4], 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push 0x54dc48
call esi
test eax, eax
je 0x45cbcc
push 0x4c970c
push 0x54dc48
call esi
test eax, eax
je 0x45cbcc
push 0x54dc48
push str._scod2mp_s.exe
push 0x8000
push 0x50f6a0
call fcn.00408d90
add esp, 0x10
jmp 0x45cc14
push 1
push 1
push ecx
mov ecx, dword [0x4e3440]
mov edx, str.1_n__Error__You_havent_selected_a_valid_folder_for_your_game_installation.
call fcn.004600e0
add esp, 0xc
mov edx, str.3_n__You_have_to_select_your_games_installation_directory_and_click_the_OK_button.
push 1
push 1
push ecx
mov ecx, dword [0x4e3440]
call fcn.004600e0
add esp, 0xc
mov edx, str.2_n__Restart_the_program_and_try_again._n
push 1
push 1
push ecx
mov ecx, dword [0x4e3440]
call fcn.004600e0
add esp, 0xc
push 1
mov dword [ebp - 4], 1
call fcn.0048615f
xor edx, edx
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov esi, eax
cmp byte [0x50f6a0], dl
je 0x45cc59
nop dword [eax + eax]
inc edx
cmp edx, 0x8000
je 0x45cc54
cmp byte [edx + 0x50f6a0], 0
jne 0x45cc40
jmp 0x45cc59
mov edx, 0x8000
xor eax, eax
nop dword [eax + eax]
inc eax
cmp eax, 0x10
je 0x45cc71
cmp byte [eax + str._applaunch_2630], 0
jne 0x45cc60
jmp 0x45cc76
mov eax, 0x10
test edx, edx
je 0x45cca3
test eax, eax
je 0x45cca3
cmp eax, edx
ja 0x45cca3
push eax
push str._applaunch_2630
push 0
mov ecx, 0x50f6a0
call fcn.004217d0
add esp, 0xc
cmp eax, 0xffffffff
sete byte [ebp - 0x849]
jmp 0x45ccaa
mov byte [ebp - 0x849], 1
test esi, esi
je 0x45ccc5
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x45ccc5
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
cmp byte [ebp - 0x849], 0
je 0x45cd87
mov ecx, 0x50f6a0
mov dword [ebp - 0x830], 0
xorps xmm0, xmm0
mov dword [ebp - 0x82c], 0
movups xmmword [ebp - 0x840], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45ccf8
sub ecx, edx
push ecx
push 0x50f6a0
lea ecx, [ebp - 0x840]
call fcn.004127b0
lea ecx, [ebp - 0x840]
call fcn.0045b280
cmp dword [ebp - 0x82c], 0x10
lea eax, [ebp - 0x840]
lea edx, [ebp - 0x828]
mov ecx, 0x50f6a0
cmovae eax, dword [ebp - 0x840]
sub esp, 8
mov dword [ebp - 0x828], eax
call fcn.00474570
mov ecx, dword [ebp - 0x82c]
add esp, 8
cmp ecx, 0x10
jb 0x45cd87
mov edx, dword [ebp - 0x840]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x45cd7d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45cf8e
push ecx
push edx
call fcn.004885c3
add esp, 8
mov ecx, 0x50f6a0
call fcn.0045ffd0
test al, al
jne 0x45ce34
push 1
mov dword [ebp - 4], 2
call fcn.0048615f
xor edx, edx
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov esi, eax
cmp byte [0x50f6a0], dl
je 0x45cdd9
nop dword [eax]
inc edx
cmp edx, 0x8000
je 0x45cdd4
cmp byte [edx + 0x50f6a0], 0
jne 0x45cdc0
jmp 0x45cdd9
mov edx, 0x8000
xor eax, eax
nop dword [eax + eax]
inc eax
cmp eax, 0x10
je 0x45cdf1
cmp byte [eax + str._applaunch_2630], 0
jne 0x45cde0
jmp 0x45cdf6
mov eax, 0x10
test edx, edx
je 0x45ce26
test eax, eax
je 0x45ce26
cmp eax, edx
ja 0x45ce26
push eax
push str._applaunch_2630
push 0
mov ecx, 0x50f6a0
mov dword [ebp - 0x850], 1
call fcn.004217d0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x45ce3a
mov byte [ebp - 0x849], 1
mov eax, 1
jmp 0x45ce47
mov esi, dword [ebp - 0x850]
mov eax, dword [ebp - 0x850]
mov byte [ebp - 0x849], 0
test al, 1
je 0x45ce64
test esi, esi
je 0x45ce64
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x45ce64
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp byte [ebp - 0x849], 0
xorps xmm0, xmm0
mov dword [ebp - 0x830], 0
mov dword [ebp - 0x82c], 0
movups xmmword [ebp - 0x840], xmm0
je 0x45ceee
push 0
push 0x4c663e
lea ecx, [ebp - 0x840]
call fcn.004127b0
lea eax, [ebp - 0x840]
mov ecx, 0x4e69f4
push eax
call fcn.004102c0
mov ecx, dword [ebp - 0x82c]
cmp ecx, 0x10
jb 0x45cf61
mov edx, dword [ebp - 0x840]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x45cee2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45cf93
push ecx
push edx
call fcn.004885c3
add esp, 8
jmp 0x45cf61
mov ecx, 0x50f6a0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45cef6
sub ecx, edx
push ecx
push 0x50f6a0
lea ecx, [ebp - 0x840]
call fcn.004127b0
lea eax, [ebp - 0x840]
mov ecx, 0x4e69f4
push eax
call fcn.004102c0
mov ecx, dword [ebp - 0x82c]
cmp ecx, 0x10
jb 0x45cf57
mov edx, dword [ebp - 0x840]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x45cf4d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45cf93
push ecx
push edx
call fcn.004885c3
add esp, 8
mov ecx, str.config_tinyrcon.json
call fcn.0043c730
mov eax, 0x50f6a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048824f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0049a67c
call fcn.0049a67c
call fcn.0049a67c
call fcn.0049a67c
int3