Function at 0x41b570
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x482bf6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a0
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ecx
mov byte [ebp - 0x11], bl
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], ebx
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 1
call fcn.0041b380
test al, al
je 0x41b84d
mov edi, dword [ebp - 0x34]
cmp edi, ebx
sete al
test al, al
jne 0x41b849
mov esi, dword [ebp - 0x28]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], esi
call fcn.0041a420
test al, al
je 0x41b84d
shl esi, 4
push esi
mov byte [ebp - 4], 2
call sub.MSVCR71.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x41b63a
push ebx
push 1
push 1
push 0x2e7
push str.._tvt_registry_key.cpp
push str.pValent
lea ecx, [ebp - 0xec]
call fcn.0040368a
push 0x4afc14
lea edx, [ebp - 0xec]
push edx
call sub.MSVCR71.dll__CxxThrowException
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], 1
xor ebx, ebx
mov edi, 0x48aee4
jmp 0x41b650
lea ecx, [ebp - 0x44]
call fcn.00414090
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.0040d71d
test al, al
je 0x41b70a
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x3c]
mov ecx, ebx
shl ecx, 4
lea esi, [ecx + edx]
lea ecx, [eax + eax]
push ecx
mov dword [esi], 0
call sub.MSVCR71.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
mov dword [esi], eax
je 0x41b6a9
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
push edx
push ecx
push eax
call sub.MSVCR71.dll_wcsncpy
add esp, 0xc
jmp 0x41b709
push 0
push 1
lea ecx, [ebp - 0x90]
call fcn.00402612
push 0
push 0
push 0
push 0
push 0
push 0
push 1
push 0
push str.pValent.ve_valuename__NULL
push 0x20
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 5
mov dword [ebp - 0x90], edi
call fcn.00410e60
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 6
call fcn.00402681
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 4
mov dword [ebp - 0x90], 0x48ffa0
call fcn.004027cc
inc ebx
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.004034a5
lea ecx, [ebp - 0x34]
call fcn.0040d794
test al, al
jne 0x41b650
mov edx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x1c]
inc edx
imul edx, edi
push edx
lea ecx, [ebp - 0x50]
call fcn.00413bb0
mov eax, dword [ebp - 0x48]
mov esi, dword [ebp - 0x20]
lea ecx, [eax + eax]
mov al, byte [esi + 0x1d]
test al, al
mov byte [ebp - 4], 7
mov dword [ebp - 0x38], ecx
jne 0x41b762
mov ecx, esi
call fcn.00419d50
mov al, byte [esi + 0x1d]
test al, al
je 0x41b801
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x38]
push edx
mov edx, dword [esi + 0x18]
push eax
push edi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryMultipleValuesW]
test eax, eax
je 0x41b7ae
mov ecx, dword [esi + 8]
push 0
push 1
push 1
push 0x326
push str.._tvt_registry_key.cpp
push eax
push ecx
lea ecx, [ebp - 0x16c]
call fcn.004195f0
push 0x4b51b4
lea eax, [ebp - 0x16c]
push eax
call sub.MSVCR71.dll__CxxThrowException
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00419e60
mov ebx, dword [ebp - 0x18]
xor esi, esi
lea ecx, [ecx]
cmp esi, dword [ebp - 0x1c]
jae 0x41b7fd
mov ecx, esi
shl ecx, 4
add ecx, ebx
push ecx
lea ecx, [ebp - 0xac]
call fcn.00427a60
push esi
lea edx, [ebp - 0xac]
push edx
mov ecx, edi
mov byte [ebp - 4], 8
call fcn.0041a5e0
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 7
call fcn.00427a10
inc esi
jmp 0x41b7c0
mov byte [ebp - 0x11], 1
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.004034a5
jmp 0x41b84d
mov byte [ebp - 0x11], 1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.0040d7aa
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41b8ce
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xa
xor esi, esi
mov edi, eax
mov edi, edi
cmp esi, ebx
jae 0x41b8c5
mov ecx, esi
shl ecx, 4
mov eax, dword [ecx + edi]
test eax, eax
je 0x41b889
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
inc esi
jmp 0x41b870
push edi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0x20]
mov al, byte [ecx + 0x1d]
test al, al
mov dword [ebp - 4], 0xffffffff
je 0x41b8e4
call fcn.00419ab0
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x11]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4