Function at 0x477710
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x223c
call fcn.004fe1a0
mov eax, dword [0x5a4aa8]
xor eax, esp
mov dword [esp + 0x2238], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp esi, ebx
push edi
mov edi, edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], eax
mov byte [esp + 0x12], bl
je 0x477b27
cmp edi, ebx
je 0x477b27
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x477760
sub eax, edx
sar eax, 1
je 0x477b27
push 0x800
lea ecx, [esp + 0xa44]
push ebx
push ecx
call fcn.004fd670
add esp, 0xc
mov dword [esp + 0x14], ebx
jmp 0x47779b
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
xor ebx, ebx
mov edx, dword [esp + 0x14]
push edx
push str.INSTALLED_VER
push edi
push str._s__s__d_
lea edx, [esp + 0xa50]
mov byte [esp + 0x23], bl
call fcn.00404380
lea eax, [esp + 0xa50]
push eax
call fcn.004c81d0
push 0x200
lea ecx, [esp + 0x58]
push ebx
push ecx
call fcn.004fd670
add esp, 0x20
push pe_nt_image_headers32
push str.rootkey
lea ebx, [esp + 0x48]
lea edx, [esp + 0xa48]
mov ecx, esi
mov edi, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00487fa0
test eax, eax
jne 0x477819
mov edx, ebx
push str.HKCU
push edx
call fcn.004f9f1e
add esp, 8
test eax, eax
jne 0x477819
mov edi, bind
push 0x800
lea eax, [esp + 0x1244]
push 0
push eax
call fcn.004fd670
push 0x800
lea ecx, [esp + 0x250]
push 0
push ecx
call fcn.004fd670
add esp, 0x18
push 0x400
lea edx, [esp + 0x244]
push edx
mov ebx, 0x560d9c
lea edx, [esp + 0xa48]
mov ecx, esi
call fcn.00487fa0
test eax, eax
jne 0x477b15
call fcn.004e4d97
mov eax, dword [eax + 4]
lea ecx, [esp + 0x240]
lea esi, [ecx + 2]
mov edi, edi
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x477880
sub ecx, esi
sar ecx, 1
lea ecx, [esp + 0x1240]
je 0x4778ba
push 0
push 0x56407c
push 0x400
push ecx
lea edx, [esp + 0x250]
push edx
lea ecx, [eax + 0x5ef4]
call fcn.00480880
jmp 0x4778d5
push 0x3ff
lea eax, [esp + 0x244]
push eax
push 0x400
push ecx
call fcn.004fa71b
add esp, 0x10
cmp byte [0x64a078], 0
je 0x47793e
push 0x800
lea edx, [esp + 0x244]
push 0
push edx
call fcn.004fd670
mov ecx, dword [esp + 0x34]
add esp, 0xc
push 0x400
lea eax, [esp + 0x244]
push eax
mov ebx, str.wow_rd
lea edx, [esp + 0xa48]
mov byte [esp + 0x1a], 0
call fcn.00487fa0
test eax, eax
jne 0x47793e
lea ecx, [esp + 0x240]
push str.TRUE
push ecx
call fcn.004f9f1e
add esp, 8
test eax, eax
jne 0x47793e
mov byte [esp + 0x12], 1
mov bl, byte [esp + 0x12]
xor esi, esi
test bl, bl
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], 1
mov dword [esp + 0x34], pe_nt_image_headers32
mov eax, 0x20019
je 0x47797a
mov eax, dword [0x64a070]
cmp eax, esi
je 0x477975
lea edx, [esp + 0x24]
push edx
call eax
mov eax, 0x20119
lea ecx, [esp + 0x1c]
push ecx
push eax
push esi
lea edx, [esp + 0x124c]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x477ab5
mov eax, dword [0x560e08]
mov ecx, dword [0x560e0c]
push 0x800
lea edx, [esp + 0x1a44]
push esi
push edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x24], esi
call fcn.004fd670
mov edi, dword [esp + 0x38]
add esp, 0xc
cmp dword [edi], esi
jne 0x4779d2
call fcn.004f9d7d
mov eax, dword [edi]
mov ecx, dword [edi + 4]
cmp ecx, dword [eax + 8]
jb 0x4779e1
call fcn.004f9d7d
mov edx, dword [edi + 4]
push 0x3ff
add edx, 0x202
push edx
lea eax, [esp + 0x1a48]
push 0x400
push eax
call fcn.004fa71b
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x1a58]
push eax
call fcn.004fa864
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x477aa8
cmp dword [edi], 0
jne 0x477a30
call fcn.004f9d7d
mov ecx, dword [edi]
mov edx, dword [edi + 4]
cmp edx, dword [ecx + 8]
jb 0x477a3f
call fcn.004f9d7d
mov eax, dword [edi + 4]
lea ecx, [esp + 0x34]
push ecx
add eax, 0x3a02
push eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x28]
push edx
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x477aa3
push esi
lea ecx, [esp + 0x1244]
push ecx
push str.Get_Version_value_fail___s__s_
mov ecx, 0x649e50
call fcn.004918f0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x48]
push eax
push 0
call fcn.004fa864
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x477a26
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x477acf
mov byte [esp + 0x13], 1
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x477acf
lea edx, [esp + 0x1240]
push edx
push str.Open_Version_registry_key__s__fail__
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
test bl, bl
je 0x477ae3
mov eax, dword [0x64a074]
test eax, eax
je 0x477ae3
mov ecx, dword [esp + 0x24]
push ecx
call eax
cmp byte [esp + 0x13], 0
jne 0x477b27
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, 5
mov dword [esp + 0x14], eax
jl 0x477791
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2238]
xor ecx, esp
call fcn.004fa103
mov esp, ebp
pop ebp
ret 4
push str.Key_path_in_Installed_Version_Data_was_invalid
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov ecx, dword [esp + 0x2244]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004fa103
mov esp, ebp
pop ebp
ret 4