Function at 0x49ff80
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 0x507280
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x8a0
mov eax, dword [0x55b18c]
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 - 0x88f], cl
lea eax, [ebp - 0x87c]
mov dword [ebp - 0x894], 0
push eax
push 1
push 0
push str.SOFTWAREValveSteamApps2620
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 0x88d], 0
mov esi, 0x55be28
mov dword [ebp - 0x87c], 0
mov dword [ebp - 0x83c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4a0254
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x81c], 4
push eax
lea eax, [ebp - 0x83c]
push eax
push 0
push 0
push str.Installed
push dword [ebp - 0x87c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4a023f
cmp dword [ebp - 0x83c], 1
jne 0x4a023f
mov dword [ebp - 0x880], eax
lea eax, [ebp - 0x880]
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 0x4a023f
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x81c], 0x8000
push eax
push 0x579c70
push 0
push 0
push str.SteamExe
push dword [ebp - 0x880]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4a0237
mov ecx, 0x579c70
mov dword [ebp - 0x828], eax
xorps xmm0, xmm0
mov dword [ebp - 0x824], eax
movups xmmword [ebp - 0x838], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a00d6
sub ecx, edx
push ecx
push 0x579c70
lea ecx, [ebp - 0x838]
call fcn.00417660
lea ecx, [ebp - 0x838]
call fcn.0049fc80
cmp dword [ebp - 0x824], 0x10
lea eax, [ebp - 0x838]
cmovae eax, dword [ebp - 0x838]
mov dword [ebp - 0x888], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x888]
mov byte [ebp - 0x884], 0
push dword [ebp - 0x884]
push eax
lea eax, [ebp - 0x8ac]
push eax
call fcn.004c1290
add esp, 0xc
lea eax, [ebp - 0x8ac]
lea ecx, [ebp - 0x878]
push eax
call fcn.00477a00
lea ecx, [ebp - 0x8ac]
call fcn.00414f50
lea ecx, [ebp - 0x878]
call fcn.00477ad0
lea ecx, [ebp - 0x858]
mov byte [ebp - 0x88e], al
call fcn.00414f50
cmp byte [ebp - 0x88e], 0
mov dword [ebp - 4], 0xffffffff
je 0x4a01fd
cmp dword [ebp - 0x824], 0x10
lea eax, [ebp - 0x838]
cmovae eax, dword [ebp - 0x838]
push eax
push str.__s___applaunch_2620
push 0x8000
push 0x5b1c78
call fcn.00409c40
push 0x5b1c78
push str.2Successfully_built_your_3Call_of_Duty__4Steam_version3__2games_launch_command:_5_s_n
lea eax, [ebp - 0x418]
mov byte [ebp - 0x88d], 1
push 0x400
push eax
call fcn.00409c40
add esp, 0x20
lea edx, [ebp - 0x418]
push 1
push 0
push 1
push 1
push ecx
mov ecx, dword [0x5653c4]
call fcn.004a4e90
add esp, 0x14
mov dword [str.SOFTWAREActivisionCall_of_Duty], 0
mov ecx, dword [ebp - 0x824]
cmp ecx, 0x10
jb 0x4a0237
mov edx, dword [ebp - 0x838]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a022d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a0b7c
push ecx
push edx
call fcn.004d25e8
add esp, 8
push dword [ebp - 0x880]
call edi
push dword [ebp - 0x87c]
call edi
cmp byte [ebp - 0x88d], 0
jne 0x4a0787
lea eax, [ebp - 0x87c]
mov dword [ebp - 0x87c], 0
push eax
push 1
push 0
push str.SOFTWAREValveSteamApps2620
push closesocket
mov dword [ebp - 0x83c], 0
mov dword [ebp - 0x81c], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4a04c5
lea eax, [ebp - 0x81c]
push eax
lea eax, [ebp - 0x83c]
push eax
push 0
push 0
push str.Installed
push dword [ebp - 0x87c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4a04b0
cmp dword [ebp - 0x83c], 1
jne 0x4a04b0
mov dword [ebp - 0x880], eax
lea eax, [ebp - 0x880]
push eax
push 1
push 0
push str.SOFTWAREValveSteam
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4a04b0
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x81c], 0x8000
push eax
push 0x579c70
push 0
push 0
push str.SteamExe
push dword [ebp - 0x880]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4a04a8
mov ecx, 0x579c70
mov dword [ebp - 0x828], eax
xorps xmm0, xmm0
mov dword [ebp - 0x824], eax
movups xmmword [ebp - 0x838], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a0347
sub ecx, edx
push ecx
push 0x579c70
lea ecx, [ebp - 0x838]
call fcn.00417660
lea ecx, [ebp - 0x838]
call fcn.0049fc80
cmp dword [ebp - 0x824], 0x10
lea eax, [ebp - 0x838]
cmovae eax, dword [ebp - 0x838]
mov dword [ebp - 0x884], eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x884]
mov byte [ebp - 0x888], 0
push dword [ebp - 0x888]
push eax
lea eax, [ebp - 0x8ac]
push eax
call fcn.004c1290
add esp, 0xc
lea eax, [ebp - 0x8ac]
lea ecx, [ebp - 0x878]
push eax
call fcn.00477a00
lea ecx, [ebp - 0x8ac]
call fcn.00414f50
lea ecx, [ebp - 0x878]
call fcn.00477ad0
lea ecx, [ebp - 0x858]
mov byte [ebp - 0x88e], al
call fcn.00414f50
cmp byte [ebp - 0x88e], 0
mov dword [ebp - 4], 0xffffffff
je 0x4a046e
cmp dword [ebp - 0x824], 0x10
lea eax, [ebp - 0x838]
cmovae eax, dword [ebp - 0x838]
push eax
push str.__s___applaunch_2620
push 0x8000
push 0x5b1c78
call fcn.00409c40
push 0x5b1c78
push str.2Successfully_built_your_3Call_of_Duty__4Steam_version3__2games_launch_command:_5_s_n
lea eax, [ebp - 0x418]
mov byte [ebp - 0x88d], 1
push 0x400
push eax
call fcn.00409c40
add esp, 0x20
lea edx, [ebp - 0x418]
push 1
push 0
push 1
push 1
push ecx
mov ecx, dword [0x5653c4]
call fcn.004a4e90
add esp, 0x14
mov dword [str.SOFTWAREActivisionCall_of_Duty], 0
mov ecx, dword [ebp - 0x824]
cmp ecx, 0x10
jb 0x4a04a8
mov edx, dword [ebp - 0x838]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a049e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a0b81
push ecx
push edx
call fcn.004d25e8
add esp, 8
push dword [ebp - 0x880]
call edi
push dword [ebp - 0x87c]
call edi
cmp byte [ebp - 0x88d], 0
jne 0x4a0787
mov eax, dword [esi]
test eax, eax
je 0x4a0608
lea ecx, [ebp - 0x87c]
mov dword [ebp - 0x87c], 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 0x4a05ba
lea eax, [ebp - 0x81c]
push eax
push 0x579c70
push 0
push 0
push str.InstallPath
push dword [ebp - 0x87c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4a05b2
push 0x140
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.004db730
xor eax, eax
add esp, 0xc
cmp byte [0x579c70], al
je 0x4a057f
nop word [eax + eax]
inc eax
cmp byte [eax + 0x579c70], 0
jne 0x4a0550
test eax, eax
je 0x4a057f
add eax, 0xffffffff
je 0x4a057f
mov cl, byte [eax + 0x579c70]
cmp cl, 0x5c
je 0x4a0573
cmp cl, 0x2f
jne 0x4a057f
mov byte [eax + 0x579c70], 0
sub eax, 1
jne 0x4a0563
push 0x579c70
push str._scodmp.exe
push 0x8000
push 0x5b1c78
call fcn.00409c40
add esp, 0x10
lea eax, [ebp - 0x158]
push eax
push 0x5b1c78
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x4a05c2
push dword [ebp - 0x87c]
call edi
add esi, 4
jmp 0x4a04c5
push 0x5b1c78
push str.2Successfully_built_your_3Call_of_Duty_2games_launch_command:_5_s_n
lea eax, [ebp - 0x818]
push 0x400
push eax
call fcn.00409c40
add esp, 0x10
lea edx, [ebp - 0x818]
push 1
push 0
push 1
push 1
push ecx
mov ecx, dword [0x5653c4]
call fcn.004a4e90
add esp, 0x14
mov dword [esi], 0
jmp 0x4a0787
mov esi, 0x55be28
nop dword [eax]
mov eax, dword [esi]
test eax, eax
je 0x4a0713
lea ecx, [ebp - 0x87c]
mov dword [ebp - 0x87c], 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 0x4a070b
lea eax, [ebp - 0x81c]
push eax
push 0x579c70
push 0
push 0
push str.InstallPath
push dword [ebp - 0x87c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4a0703
push 0x140
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.004db730
xor eax, eax
add esp, 0xc
cmp byte [0x579c70], al
je 0x4a06cc
inc eax
cmp byte [eax + 0x579c70], 0
jne 0x4a0695
test eax, eax
je 0x4a06cc
add eax, 0xffffffff
je 0x4a06cc
nop dword [eax + eax]
mov cl, byte [eax + 0x579c70]
cmp cl, 0x5c
je 0x4a06c0
cmp cl, 0x2f
jne 0x4a06cc
mov byte [eax + 0x579c70], 0
sub eax, 1
jne 0x4a06b0
push 0x579c70
push str._scodmp.exe
push 0x8000
push 0x5b1c78
call fcn.00409c40
add esp, 0x10
lea eax, [ebp - 0x158]
push eax
push 0x5b1c78
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x4a05c2
push dword [ebp - 0x87c]
call edi
add esi, 4
jmp 0x4a0610
cmp byte [ebp - 0x88f], 0
je 0x4a0787
sub esp, 8
mov ecx, 0x579c70
call fcn.00470de0
push str.Please__select_your_Call_of_Duty_games_installation_folder_and_click_OK.
push 0x400
push 0x5cf100
call fcn.00409c40
add esp, 0x14
mov edx, 0x5cf100
mov ecx, 0x579c70
call fcn.0049feb0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov esi, eax
push 0x532bd2
push esi
call edi
test eax, eax
je 0x4a0787
push 0x53d348
push esi
call edi
test eax, eax
je 0x4a0787
push esi
push str._scodmp.exe
push 0x8000
push 0x5b1c78
call fcn.00409c40
add esp, 0x10
push 1
mov dword [ebp - 4], 2
call fcn.004cfd1d
xor edx, edx
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov esi, eax
cmp byte [0x5b1c78], dl
je 0x4a07c9
nop dword [eax + eax]
inc edx
cmp edx, 0x8000
je 0x4a07c4
cmp byte [edx + 0x5b1c78], 0
jne 0x4a07b0
jmp 0x4a07c9
mov edx, 0x8000
xor eax, eax
nop dword [eax + eax]
inc eax
cmp eax, 0x10
je 0x4a07e1
cmp byte [eax + str._applaunch_2620], 0
jne 0x4a07d0
jmp 0x4a07e6
mov eax, 0x10
test edx, edx
je 0x4a0813
test eax, eax
je 0x4a0813
cmp eax, edx
ja 0x4a0813
push eax
push str._applaunch_2620
push 0
mov ecx, 0x5b1c78
call fcn.0042fe80
add esp, 0xc
cmp eax, 0xffffffff
sete byte [ebp - 0x88d]
jmp 0x4a081a
mov byte [ebp - 0x88d], 1
test esi, esi
je 0x4a0835
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x4a0835
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
cmp byte [ebp - 0x88d], 0
je 0x4a08f7
mov ecx, 0x5b1c78
mov dword [ebp - 0x828], 0
xorps xmm0, xmm0
mov dword [ebp - 0x824], 0
movups xmmword [ebp - 0x838], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a0868
sub ecx, edx
push ecx
push 0x5b1c78
lea ecx, [ebp - 0x838]
call fcn.00417660
lea ecx, [ebp - 0x838]
call fcn.0049fc80
cmp dword [ebp - 0x824], 0x10
lea eax, [ebp - 0x838]
lea edx, [ebp - 0x888]
mov ecx, 0x5b1c78
cmovae eax, dword [ebp - 0x838]
sub esp, 8
mov dword [ebp - 0x888], eax
call fcn.004bf570
mov ecx, dword [ebp - 0x824]
add esp, 8
cmp ecx, 0x10
jb 0x4a08f7
mov edx, dword [ebp - 0x838]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a08ed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a0b86
push ecx
push edx
call fcn.004d25e8
add esp, 8
mov dword [ebp - 0x884], 0x5b1c78
mov dword [ebp - 4], 3
lea eax, [ebp - 0x884]
mov byte [ebp - 0x888], 0
push dword [ebp - 0x888]
push eax
lea eax, [ebp - 0x8ac]
push eax
call fcn.004c1290
add esp, 0xc
lea eax, [ebp - 0x8ac]
lea ecx, [ebp - 0x878]
push eax
call fcn.00477a00
lea ecx, [ebp - 0x8ac]
call fcn.00414f50
lea ecx, [ebp - 0x878]
call fcn.00477ad0
lea ecx, [ebp - 0x858]
mov byte [ebp - 0x88f], al
call fcn.00414f50
cmp byte [ebp - 0x88f], 0
mov dword [ebp - 4], 0xffffffff
jne 0x4a0a14
push 1
mov dword [ebp - 4], 4
call fcn.004cfd1d
xor edx, edx
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov esi, eax
cmp byte [0x5b1c78], dl
je 0x4a09b9
nop dword [eax]
inc edx
cmp edx, 0x8000
je 0x4a09b4
cmp byte [edx + 0x5b1c78], 0
jne 0x4a09a0
jmp 0x4a09b9
mov edx, 0x8000
xor eax, eax
nop dword [eax + eax]
inc eax
cmp eax, 0x10
je 0x4a09d1
cmp byte [eax + str._applaunch_2620], 0
jne 0x4a09c0
jmp 0x4a09d6
mov eax, 0x10
test edx, edx
je 0x4a0a06
test eax, eax
je 0x4a0a06
cmp eax, edx
ja 0x4a0a06
push eax
push str._applaunch_2620
push 0
mov ecx, 0x5b1c78
mov dword [ebp - 0x894], 1
call fcn.0042fe80
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4a0a1a
mov byte [ebp - 0x88d], 1
mov eax, 1
jmp 0x4a0a27
mov esi, dword [ebp - 0x888]
mov eax, dword [ebp - 0x894]
mov byte [ebp - 0x88d], 0
test al, 1
je 0x4a0a44
test esi, esi
je 0x4a0a44
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x4a0a44
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp byte [ebp - 0x88d], 0
xorps xmm0, xmm0
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x824], 0
movups xmmword [ebp - 0x838], xmm0
je 0x4a0ad1
push 0
push 0x532bd2
lea ecx, [ebp - 0x838]
call fcn.00417660
lea eax, [ebp - 0x838]
mov ecx, 0x56896c
push eax
call fcn.00413fd0
mov ecx, dword [ebp - 0x824]
cmp ecx, 0x10
jb 0x4a0b59
mov edx, dword [ebp - 0x838]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a0ac2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a0b8b
push ecx
push edx
call fcn.004d25e8
add esp, 8
jmp 0x4a0b59
mov ecx, 0x5b1c78
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a0ae0
sub ecx, edx
push ecx
push 0x5b1c78
lea ecx, [ebp - 0x838]
call fcn.00417660
lea eax, [ebp - 0x838]
mov ecx, 0x56896c
push eax
call fcn.00413fd0
mov ecx, dword [ebp - 0x824]
cmp ecx, 0x10
jb 0x4a0b41
mov edx, dword [ebp - 0x838]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a0b37
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a0b8b
push ecx
push edx
call fcn.004d25e8
add esp, 8
cmp dword [0x569178], 0x10
mov ecx, 0x569164
cmovae ecx, dword [0x569164]
call fcn.0047c360
mov eax, 0x5b1c78
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.004d20a0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004e5df6
call fcn.004e5df6
call fcn.004e5df6
call fcn.004e5df6
int3