Function at 0x45c590
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x48
mov eax, dword [str.CheckClient__]
mov edx, dword [0x4e9638]
push ebp
push esi
mov dword [esp + 0x18], eax
mov ax, word [0x4e963c]
mov esi, ecx
mov word [esp + 0x24], ax
mov ecx, dword [0x4e9634]
push edi
mov eax, dword [esi + 0x12a0]
mov dword [esp + 0x20], ecx
cmp eax, 6
mov dword [esp + 0x24], edx
jl 0x45ca30
mov ecx, esi
call fcn.0045d580
cmp eax, 0x10
jb 0x45c615
push 0x4e9608
lea ecx, [esi + 0x55]
push 0xfff
push ecx
call fcn.00466ca7
mov ecx, dword [0x4d30ac]
mov edx, dword [esi]
add esp, 0xc
lea eax, [esp + 0x1c]
push 0x2ef
push eax
push ecx
mov ecx, esi
call dword [edx + 0x10]
pop edi
pop esi
mov eax, 0x10
pop ebp
add esp, 0x48
ret
mov ecx, esi
call fcn.0045d7f0
test eax, eax
mov dword [esi + 0x12b0], eax
jne 0x45c660
push 0x4e95e8
lea edx, [esi + 0x55]
push 0xfff
push edx
call fcn.00466ca7
mov edx, dword [0x4d30ac]
mov eax, dword [esi]
add esp, 0xc
lea ecx, [esp + 0x1c]
push 0x2f8
push ecx
push edx
mov ecx, esi
call dword [eax + 0x10]
pop edi
pop esi
mov eax, 0x10
pop ebp
add esp, 0x48
ret
cmp eax, 1
jne 0x45c6dd
lea edi, [esi + 0x55]
push 0x4e95b8
push 0xfff
push edi
call fcn.00466ca7
mov edx, dword [0x4d30ac]
mov eax, dword [esi]
add esp, 0xc
lea ecx, [esp + 0x1c]
push 0x2ff
push ecx
push edx
mov ecx, esi
call dword [eax + 0x10]
cmp dword [esi + 0x12a0], 7
jne 0x45c6d1
mov eax, dword [esi + 0x12a4]
test eax, eax
jne 0x45c6d1
push str.WinXP
push 0xfff
push edi
call fcn.00466ca7
mov edx, dword [0x4d30a8]
mov eax, dword [esi]
add esp, 0xc
lea ecx, [esp + 0x1c]
push 0x304
push ecx
push edx
mov ecx, esi
call dword [eax + 0x10]
pop edi
pop esi
mov eax, 0x60
pop ebp
add esp, 0x48
ret
cmp eax, 2
jne 0x45ca30
mov ecx, dword [str.SOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdate]
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x45c74a
mov edx, dword [str.SOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdate]
push eax
push edx
push 0x4e9558
lea eax, [esi + 0x55]
push 0xfff
push eax
call fcn.00466ca7
mov ecx, dword [0x4d30ac]
mov edx, dword [esi]
add esp, 0x14
lea eax, [esp + 0x1c]
push 0x310
push eax
push ecx
mov ecx, esi
call dword [edx + 0x10]
pop edi
pop esi
mov eax, 0x10
pop ebp
add esp, 0x48
ret
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x2c]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x2c]
push edx
mov edx, dword [0x4d311c]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x2c], 0x25
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x45c878
cmp eax, 2
je 0x45c7dd
mov ecx, dword [0x4d311c]
push eax
push ecx
push 0x4e953c
lea edx, [esi + 0x55]
push 0xfff
push edx
call fcn.00466ca7
mov edx, dword [0x4d30ac]
mov eax, dword [esi]
add esp, 0x14
lea ecx, [esp + 0x1c]
push 0x31b
push ecx
push edx
mov ecx, esi
call dword [eax + 0x10]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 0x10
pop ebp
add esp, 0x48
ret
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 0x12b4]
test eax, eax
jne 0x45ca30
mov edx, dword [0x4d311c]
lea edi, [esi + 0x55]
push edx
push 0x4e9514
push 0xfff
push edi
call fcn.00466ca7
mov edx, dword [0x4d30a8]
mov eax, dword [esi]
add esp, 0x10
lea ecx, [esp + 0x1c]
push 0x326
push ecx
push edx
mov ecx, esi
call dword [eax + 0x10]
mov ecx, esi
call fcn.0045e850
cmp eax, 0x10
jb 0x45ca30
mov eax, dword [0x4d311c]
push eax
push 0x4e9504
push 0xfff
push edi
call fcn.00466ca7
mov ecx, dword [0x4d30ac]
mov edx, dword [esi]
add esp, 0x10
lea eax, [esp + 0x1c]
push 0x32b
push eax
push ecx
mov ecx, esi
call dword [edx + 0x10]
pop edi
pop esi
mov eax, 0x10
pop ebp
add esp, 0x48
ret
mov edx, dword [esp + 0xc]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ebp, [esi + 0x1278]
mov dword [esi + 0x12b4], 0
mov edi, ebp
lea eax, [esp + 0x30]
mov dl, byte [eax]
mov bl, byte [edi]
mov cl, dl
cmp dl, bl
jne 0x45c8c2
test cl, cl
je 0x45c8be
mov dl, byte [eax + 1]
mov bl, byte [edi + 1]
mov cl, dl
cmp dl, bl
jne 0x45c8c2
add eax, 2
add edi, 2
test cl, cl
jne 0x45c89a
xor eax, eax
jmp 0x45c8c7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
pop ebx
je 0x45ca30
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
call fcn.0045ea10
cmp eax, 0x10
jb 0x45c920
lea ecx, [esp + 0x2c]
lea edx, [esi + 0x55]
push ecx
push 0x4e94e8
push 0xfff
push edx
call fcn.00466ca7
mov edx, dword [0x4d30ac]
mov eax, dword [esi]
add esp, 0x10
lea ecx, [esp + 0x1c]
push 0x339
push ecx
push edx
mov ecx, esi
call dword [eax + 0x10]
pop edi
pop esi
mov eax, 0x23
pop ebp
add esp, 0x48
ret
mov eax, dword [str.ECOP_CL_RES_CONFIG]
push eax
call fcn.0044b1e0
mov ecx, eax
call fcn.0044b650
test eax, eax
mov dword [esp + 0x10], eax
jne 0x45c97b
mov ecx, dword [str.ECOP_CL_RES_CONFIG]
lea edx, [esi + 0x55]
push ecx
push 0x4e05ac
push 0xfff
push edx
call fcn.00466ca7
mov edx, dword [0x4d30ac]
mov eax, dword [esi]
add esp, 0x10
lea ecx, [esp + 0x1c]
push 0x345
push ecx
push edx
mov ecx, esi
call dword [eax + 0x10]
pop edi
pop esi
mov eax, 0x23
pop ebp
add esp, 0x48
ret
mov edx, dword [0x4d311c]
push 0x25
lea ecx, [esp + 0x30]
push 1
push ecx
mov ecx, dword [str.SOFTWAREBaosightlsagentupdateconfig]
push edx
push ecx
mov ecx, eax
call fcn.0043f5f0
cmp eax, 0x10
jb 0x45c9fc
mov edx, dword [0x4d311c]
mov eax, dword [str.SOFTWAREBaosightlsagentupdateconfig]
push edx
push eax
push 0x4e94d4
lea ecx, [esi + 0x55]
push 0xfff
push ecx
call fcn.00466ca7
mov ecx, dword [0x4d30ac]
mov edx, dword [esi]
add esp, 0x14
lea eax, [esp + 0x1c]
push 0x34e
push eax
push ecx
mov ecx, esi
call dword [edx + 0x10]
mov eax, dword [str.ECOP_CL_RES_CONFIG]
lea edx, [esp + 0x10]
push edx
push eax
call fcn.0044b1e0
mov ecx, eax
call fcn.0044b740
pop edi
pop esi
mov eax, 0x10
pop ebp
add esp, 0x48
ret
mov edx, dword [str.ECOP_CL_RES_CONFIG]
lea ecx, [esp + 0x10]
push ecx
push edx
call fcn.0044b1e0
mov ecx, eax
call fcn.0044b740
lea eax, [esp + 0x2c]
push 0x24
push eax
push ebp
call fcn.00466df0
mov ecx, dword [str.SOFTWAREBaosightlsagentupdateconfig]
push ecx
call fcn.00436bb0
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x48
ret