Function at 0x10040370
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x126c
call fcn.101f99e0
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov byte [ebp - 0x126c], al
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x1268], eax
mov eax, dword [ebp + 0x14]
push 0x208
mov dword [ebp - 0x1264], eax
lea eax, [ebp - 0x234]
push 0
push eax
mov dword [ebp - 0x1258], edi
call sub.msvcrt.dll_memset
push 0x1000
lea eax, [ebp - 0x1234]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
mov dword [ebp - 0x1254], 0x1000
mov dword [ebp - 0x1260], 0x104
mov dword [ebp - 0x1250], 1
mov dword [ebp - 0x125c], 0
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x10040418
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x3f
call fcn.10003680
add esp, 4
push 0
push 0
test eax, eax
je 0x1004044c
lea ecx, [ebp - 0x1250]
push ecx
push 0
lea ecx, [ebp - 0x1260]
push ecx
lea ecx, [ebp - 0x234]
push ecx
push dword [ebp - 0x125c]
push edi
call eax
jmp 0x10040470
lea eax, [ebp - 0x1250]
push eax
push 0
lea eax, [ebp - 0x1260]
push eax
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x125c]
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
test esi, esi
je 0x1004047d
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x1004070f
mov eax, dword [ebp - 0x1250]
mov dword [ebp - 0x1260], 0x104
mov dword [ebp - 0x1254], 0x1000
cmp eax, 1
je 0x100405d0
cmp eax, 2
je 0x100405d0
cmp eax, 4
jne 0x100406fe
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x100404d0
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x41
call fcn.10003680
add esp, 4
test eax, eax
je 0x10040506
lea ecx, [ebp - 0x1254]
push ecx
lea ecx, [ebp - 0x1234]
push ecx
lea ecx, [ebp - 0x1250]
push ecx
push 0
lea ecx, [ebp - 0x234]
push ecx
push dword [ebp - 0x1258]
call eax
jmp 0x10040530
lea eax, [ebp - 0x1254]
push eax
lea eax, [ebp - 0x1234]
push eax
lea eax, [ebp - 0x1250]
push eax
push 0
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x1258]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test esi, esi
je 0x1004053d
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x100406fe
push dword [ebp - 0x1234]
lea eax, [ebp - 0x2c]
push 0x102054a8
push 0x14
push eax
call fcn.1000aa70
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x1264]
lea eax, [ebp - 0x124c]
push dword [ebp - 0x1268]
push dword [ebp - 0x126c]
push eax
call fcn.10040bd0
mov esi, dword [ebx]
add esp, 0x28
mov ecx, ebx
mov edi, dword [esi + 4]
push eax
push edi
push esi
call fcn.1002e130
mov edx, dword [ebx + 4]
mov ecx, 0x7fffffe
sub ecx, edx
cmp ecx, 1
jb 0x10040720
lea ecx, [edx + 1]
mov dword [ebx + 4], ecx
lea ecx, [ebp - 0x124c]
mov dword [esi + 4], eax
mov dword [edi], eax
call fcn.10005250
inc dword [ebp - 0x125c]
mov edi, dword [ebp - 0x1258]
jmp 0x10040402
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x100405e6
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x41
call fcn.10003680
add esp, 4
test eax, eax
je 0x1004061c
lea ecx, [ebp - 0x1254]
push ecx
lea ecx, [ebp - 0x1234]
push ecx
lea ecx, [ebp - 0x1250]
push ecx
push 0
lea ecx, [ebp - 0x234]
push ecx
push dword [ebp - 0x1258]
call eax
jmp 0x10040646
lea eax, [ebp - 0x1254]
push eax
lea eax, [ebp - 0x1234]
push eax
lea eax, [ebp - 0x1250]
push eax
push 0
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x1258]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test esi, esi
je 0x10040653
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x10040660
lea eax, [ebp - 0x1234]
push eax
jmp 0x10040671
cmp edi, 0xea
jne 0x100406fe
push 0x10202940
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x1264]
lea eax, [ebp - 0x124c]
push dword [ebp - 0x1268]
push dword [ebp - 0x126c]
push eax
call fcn.10040bd0
mov esi, dword [ebx]
add esp, 0x18
mov ecx, ebx
mov edi, dword [esi + 4]
push eax
push edi
push esi
call fcn.1002e130
mov edx, dword [ebx + 4]
mov ecx, 0x7fffffe
sub ecx, edx
cmp ecx, 1
jb 0x10040720
lea ecx, [edx + 1]
mov dword [ebx + 4], ecx
mov dword [esi + 4], eax
mov dword [edi], eax
mov edx, dword [ebp - 0x1238]
cmp edx, 8
jb 0x100406fe
mov ecx, dword [ebp - 0x124c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100406f4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004072a
push edx
push ecx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
inc dword [ebp - 0x125c]
mov edi, dword [ebp - 0x1258]
jmp 0x10040402
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
push str.list_T__too_long
call fcn.101bf360
call fcn.101e6c40
int3