Function at 0x457620
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4afb28
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4ecba0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
xor esi, esi
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], ebx
call fcn.0046d74a
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x45767e
push 0x80004005
call fcn.00402240
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.004024f0
mov ecx, edi
call fcn.00456db0
movzx eax, ax
cmp ax, 9
je 0x457703
mov ecx, edi
call fcn.00456db0
movzx eax, ax
cmp ax, 6
je 0x457703
mov ecx, edi
call fcn.00456db0
movzx eax, ax
cmp ax, bx
jne 0x4576f4
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push ecx
push 0xf003f
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
push edi
push 0x9ff
push str.CUSBUtility::GetDiskRegisterCount
push str._s:_d:_RegOpenKeyEx____WIN32____dwErrorCode:_d
jmp 0x45772d
mov ecx, edi
call fcn.00456db0
movzx ecx, ax
mov dword [ebp - 0x2c], ecx
jmp 0x45773d
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x1c]
push edx
push 0x20119
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
push edi
push 0x9fa
push str.CUSBUtility::GetDiskRegisterCount
push str._s:_d:_RegOpenKeyEx____WIN64____dwErrorCode:_d
call fcn.0044b7f0
add esp, 0x10
cmp edi, ebx
jne 0x457817
push 0x2000
mov dword [ebp - 0x18], 0x2000
call fcn.00490201
add esp, 4
mov esi, eax
lea edx, [ebp - 0x18]
push edx
push esi
push ebx
mov dword [esi], ebx
mov ecx, dword [ebp - 0x1c]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
push eax
push ecx
call ebx
mov edi, eax
test edi, edi
je 0x4577c7
mov eax, dword [ebp - 0x18]
add eax, 0x1000
push eax
push esi
mov dword [ebp - 0x18], eax
call fcn.00491c1a
add esp, 8
mov esi, eax
lea edx, [ebp - 0x18]
push edx
push esi
push 0
mov dword [esi], 0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x1c]
push 0
push eax
push ecx
mov dword [ebp - 0x20], esi
call ebx
mov edx, dword [ebp - 0x18]
push edx
push 0xa1a
push str.CUSBUtility::GetDiskRegisterCount
push str._s:_d:_realloc___BufferSize:_d
mov edi, eax
call fcn.0044b7f0
add esp, 0x10
jmp 0x457771
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push esi
lea ecx, [ebp - 0x28]
push ecx
push 0
push edx
push eax
call ebx
test eax, eax
je 0x457804
movzx ecx, byte [esi]
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
push 0xa2e
push str.CUSBUtility::GetDiskRegisterCount
push str._s:_d:_RegQueryValueEx_RootKey_Fail___strKeyPath__s__strKeyName__s__bValueData__d___ErrorCode:_d
call fcn.0044b7f0
add esp, 0x1c
mov edx, dword [ebp - 0x1c]
mov cl, byte [esi]
push edx
mov byte [ebp - 0x11], cl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
jmp 0x457841
mov byte [ebp - 0x11], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
push ecx
push 0xa37
push str.CUSBUtility::GetDiskRegisterCount
push str._s:_d:_RegOpenKeyEx_RootKey_Fail___strKeyPath__s__strKeyName__s__Fail__ErrorCode:_d
call fcn.0044b7f0
add esp, 0x18
cmp esi, ebx
je 0x45784e
push esi
call fcn.00490330
add esp, 4
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x457878
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45789b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4578c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc