Function at 0x4b0426
Capabilities:
Query or enumerate registry value

Disassembly:
push pe_nt_image_headers32
mov eax, 0x509381
call fcn.004fb730
mov dword [ebp - 0x12c], ecx
mov esi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x144], esi
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x13c], eax
xor eax, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
inc eax
mov dword [ebp - 4], eax
mov edi, ecx
cmp edi, eax
jne 0x4b0547
mov ecx, dword [ebp - 0x134]
inc ecx
and ecx, 0xfffffffe
mov dword [ebp - 0x134], ecx
shr ecx, 1
cmp ecx, dword [ebp - 0x18]
ja 0x4b0533
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
xor edx, edx
mov word [eax + ecx*2], dx
mov dword [ebp - 0x130], 1
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp dword [ebx + 0x14], 8
mov ecx, ebx
jb 0x4b04d0
mov ecx, dword [ebx]
lea edx, [ebp - 0x134]
push edx
mov edx, dword [ebp - 0x12c]
push eax
lea eax, [ebp - 0x130]
push eax
xor eax, eax
push eax
push ecx
push dword [edx + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x4b068e
cmp eax, 0x3fa
je 0x4b068e
test eax, eax
js 0x4b05f2
xor eax, eax
inc eax
cmp dword [ebp - 0x130], eax
je 0x4b0526
cmp dword [ebp - 0x130], 2
jne 0x4b06af
inc edi
cmp edi, 2
jge 0x4b055c
xor ecx, ecx
jmp 0x4b047a
sub ecx, dword [ebp - 0x18]
xor eax, eax
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.004b09fd
jmp 0x4b04b1
mov dword [ebp - 0x130], eax
test edi, edi
jne 0x4b04bb
mov eax, ecx
jmp 0x4b04c6
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4b0585
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
xor ebx, ebx
cmp word [eax + ecx*2 - 2], bx
jne 0x4b0587
lea eax, [ecx - 1]
push eax
lea ecx, [ebp - 0x28]
call fcn.0045d244
jmp 0x4b0587
xor ebx, ebx
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00455bff
mov dword [ebp - 0x138], 1
mov byte [ebp - 4], bl
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4b05d8
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b05cf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b06aa
push edx
push ecx
call fcn.0047834a
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, esi
call fcn.004fb6da
ret 0xc
push str.RegQueryValueEx_failure_reading_registry_value_
lea ecx, [ebp - 0x58]
call fcn.00455432
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 0x12c]
push 0x5c
add edx, 8
call fcn.004afdd7
mov byte [ebp - 4], 3
mov edx, eax
push ebx
lea ecx, [ebp - 0x70]
call fcn.004ad311
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
push eax
call fcn.00455429
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.00455362
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.00455362
push 0x534610
lea ecx, [ebp - 0x58]
call fcn.0045b59a
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x58]
call fcn.00457f7a
push str.WT::System::Win32::CRegistryKey::GetString
push 0x10d
push str.E:_bamboo_agent_home_2xml_data_build_dirPGSC_MON_JOB1monolith_sourcePhoenixWtSystemWin32RegistryKey.cpp
push dword [eax + 4]
lea ecx, [ebp - 0xcc]
push dword [eax]
call fcn.004b3ef8
mov byte [ebp - 4], 5
jmp 0x4b0746
push dword [ebp - 0x13c]
xor eax, eax
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
call fcn.00455579
xor ebx, ebx
jmp 0x4b0592
call fcn.004d7bfa
push str.Unexpected_type_for_registry_value_
lea ecx, [ebp - 0x40]
call fcn.00455432
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x70]
mov edx, dword [ebp - 0x12c]
push 0x5c
add edx, 8
call fcn.004afdd7
mov byte [ebp - 4], 7
mov edx, eax
push ebx
lea ecx, [ebp - 0x58]
call fcn.004ad311
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x40]
push eax
call fcn.00455429
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x58]
call fcn.00455362
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x70]
call fcn.00455362
push str.._REG_SZ_or_REG_EXPAND_SZ_expected.
lea ecx, [ebp - 0x40]
call fcn.0045b59a
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x40]
call fcn.00457f7a
push str.WT::System::Win32::CRegistryKey::GetString
push 0x115
push str.E:_bamboo_agent_home_2xml_data_build_dirPGSC_MON_JOB1monolith_sourcePhoenixWtSystemWin32RegistryKey.cpp
push dword [eax + 4]
lea ecx, [ebp - 0xcc]
push dword [eax]
call fcn.004b3ef8
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xcc]
call fcn.004b4228
lea eax, [ebp - 0xcc]
push eax
lea ecx, [ebp - 0x128]
call fcn.004b3c43
push 0x5626ac
lea eax, [ebp - 0x128]
push eax
call fcn.004d4a8e
int3