Function at 0x40c970
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x461062
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x484c64]
xor eax, esp
mov dword [esp + 0x19c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x484c64]
xor eax, esp
push eax
lea eax, [esp + 0x1b4]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c4]
push esi
push str.IsThirdPartyBucketInstalled__s__n
push 0x4866f8
mov edi, ecx
mov dword [esp + 0x40], esi
xor ebx, ebx
xor ebp, ebp
call fcn.0041a1b0
push 0x103
lea eax, [esp + 0xbd]
push ebx
push eax
mov byte [esp + 0xc4], bl
call fcn.00447ba0
mov edx, dword [edi + 0xe8]
add esp, 0x18
push 0x104
lea ecx, [esp + 0xb0]
push ecx
push str.BucketRegValue
push esi
push edx
lea ecx, [edi + 0x2c8]
call fcn.0041fb3b
test eax, eax
je 0x40cef0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0xb4]
push edx
mov ecx, edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.0040af30
cmp dword [esp + 0x24], ebx
je 0x40cef0
mov esi, dword [esp + 0x28]
cmp esi, ebx
je 0x40cef0
push esi
push str.HrIdentifyRegistryRootKey_returned_subkey_s
push 0x20
push 0x4866f8
call fcn.00401000
mov eax, 0xf
add esp, 0x10
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
mov dword [esp + 0x1bc], ebx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
push esi
lea ecx, [esp + 0x5c]
mov byte [esp + 0x1c0], 1
call fcn.00402f00
push 2
push ebx
push 0x469944
lea ecx, [esp + 0x64]
mov byte [esp + 0x1c8], 2
call fcn.0040b340
mov esi, eax
cmp esi, 0xffffffff
je 0x40cb4a
push esi
push ebx
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x64]
call fcn.0040c340
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x80]
mov byte [esp + 0x1c8], 3
call fcn.00402b90
lea ecx, [esp + 0x90]
mov byte [esp + 0x1bc], 2
call fcn.00401d50
mov ecx, dword [esp + 0x6c]
push ecx
add esi, 2
push esi
lea edx, [esp + 0x98]
push edx
lea ecx, [esp + 0x64]
call fcn.0040c340
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x1c8], 4
call fcn.00402b90
lea ecx, [esp + 0x90]
mov byte [esp + 0x1bc], 2
call fcn.00401d50
jmp 0x40cb5e
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x80]
call fcn.00402b90
lea ecx, [esp + 0xac]
push ecx
push str.BucketRegValue_found_s
push 0x20
push 0x4866f8
call fcn.00401000
mov eax, dword [esp + 0x88]
mov esi, 0x10
add esp, 0x10
cmp dword [esp + 0x8c], esi
jae 0x40cb93
lea eax, [esp + 0x78]
push ebx
lea edx, [esp + 0x18]
push edx
push 0x20019
push ebx
push eax
mov eax, dword [esp + 0x38]
push eax
call fcn.0041cccb
add esp, 0x18
test eax, eax
jne 0x40ce4b
cmp dword [esp + 0x50], ebx
je 0x40ce23
mov dword [esp + 0x38], 1
mov dword [esp + 0x30], 0x104
mov dword [esp + 0xa8], 0xf
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
mov esi, dword [esp + 0x34]
push 0x104
lea ecx, [esp + 0xb0]
push ecx
push str.BucketRegVersion
push esi
mov ecx, edi
mov byte [esp + 0x1cc], 5
mov byte [esp + 0xbc], bl
call fcn.0040ab60
test eax, eax
lea eax, [esp + 0xac]
je 0x40cd46
lea edx, [esp + 0x18]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x4c], esp
push eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
call fcn.00402f00
mov ecx, edi
call fcn.0040c7d0
cmp eax, ebx
jne 0x40cc65
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0xb0]
push 0x469914
push edx
call fcn.00448c02
add esp, 0xc
cmp dword [esp + 0x54], 0x10
mov eax, dword [esp + 0x40]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebx
jae 0x40cc7c
lea eax, [esp + 0x40]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x2c]
push ecx
push ebx
lea edx, [esp + 0x28]
push edx
push ebx
push eax
mov eax, dword [esp + 0x28]
push eax
call esi
cmp eax, ebx
jne 0x40cd32
mov eax, dword [esp + 0x20]
cmp eax, 4
jne 0x40ccd0
cmp dword [esp + 0x54], 0x10
mov eax, dword [esp + 0x40]
jae 0x40ccb6
lea eax, [esp + 0x40]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push ecx
push ebx
push eax
push edx
call esi
jmp 0x40cd25
cmp eax, 1
jne 0x40cd25
cmp dword [esp + 0x54], 0x10
mov eax, dword [esp + 0x40]
jae 0x40cce4
lea eax, [esp + 0x40]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0xb0]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push ecx
push ebx
push eax
push edx
call esi
test eax, eax
jne 0x40cd25
lea eax, [esp + 0x1c]
push eax
sub esp, 0x1c
lea edx, [esp + 0xcc]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.00402f00
mov ecx, edi
call fcn.0040c7d0
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x18]
sbb ebp, ebp
add ebp, 1
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
push str.BucketRegVersion_d_and_version_from_registry_d
jmp 0x40cdec
push 0x104
push eax
push str.BucketRegData
push esi
mov ecx, edi
call fcn.0040ab60
test eax, eax
je 0x40cdfb
lea ecx, [esp + 0xac]
push ecx
lea ecx, [esp + 0x5c]
call fcn.004049f0
mov eax, dword [esp + 0x40]
mov esi, 0x10
cmp dword [esp + 0x54], esi
jae 0x40cd85
lea eax, [esp + 0x40]
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0xb0]
push ecx
lea edx, [esp + 0x40]
push edx
push ebx
push eax
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40cdd0
cmp dword [esp + 0x70], esi
mov eax, dword [esp + 0x5c]
jae 0x40cdb6
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0xb0]
push ecx
call fcn.00448634
add esp, 8
mov ebp, eax
neg ebp
sbb ebp, ebp
add ebp, 1
cmp dword [esp + 0x70], esi
mov eax, dword [esp + 0x5c]
jae 0x40cdde
lea eax, [esp + 0x5c]
push eax
lea edx, [esp + 0xb0]
push edx
push str.BucketRegData_d_and_value_data_from_registry_d
push 0x20
push 0x4866f8
call fcn.00401000
add esp, 0x14
lea ecx, [esp + 0x90]
mov byte [esp + 0x1bc], 2
call fcn.00401d50
mov eax, dword [esp + 0x14]
push eax
mov esi, 0x10
call fcn.0041cf12
add esp, 4
jmp 0x40ce71
push str.Bucket_is_already_installed.__Only_BucketRegKey_was_specified_in_dat_file.
push 0x20
push 0x4866f8
call fcn.00401000
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
mov ebp, 1
call fcn.0041cf12
add esp, 4
jmp 0x40ce71
cmp dword [esp + 0x8c], esi
mov eax, dword [esp + 0x78]
jae 0x40ce5c
lea eax, [esp + 0x78]
push eax
push str.Could_not_open_BucketRegValue:__s
push 0x20
push 0x4866f8
call fcn.00401000
add esp, 0x10
cmp dword [esp + 0x70], esi
jb 0x40ce84
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.0042abf8
add esp, 4
cmp dword [esp + 0x8c], esi
mov edi, 0xf
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
jb 0x40ceab
mov edx, dword [esp + 0x78]
push edx
call fcn.0042abf8
add esp, 4
cmp dword [esp + 0x54], esi
mov dword [esp + 0x8c], edi
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
mov dword [esp + 0x1bc], 0xffffffff
jb 0x40cedb
mov eax, dword [esp + 0x40]
push eax
call fcn.0042abf8
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
mov eax, 0x469824
jne 0x40cef5
mov eax, str.is_NOT
mov ecx, dword [esp + 0x34]
push eax
push ecx
push str.Third_party_bucket___s___s_already_installed
push 0x20
push 0x4866f8
call fcn.00401000
add esp, 0x14
mov eax, ebp
mov ecx, dword [esp + 0x1b4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x19c]
xor ecx, esp
call fcn.00447b4c
add esp, 0x1ac
ret 4