Function at 0x10091d20
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x220], eax
or edi, 0x20019
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], 0
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x10091d74
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x31
call fcn.10003680
add esp, 4
test eax, eax
je 0x10091d97
lea ecx, [ebp - 0x224]
push ecx
push edi
push 0
push dword [ebp - 0x220]
push ebx
call eax
jmp 0x10091dae
lea eax, [ebp - 0x224]
push eax
push edi
push 0
push dword [ebp - 0x220]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test esi, esi
je 0x10091dbb
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x10091f62
xor ebx, ebx
mov edi, dword [ebp - 0x224]
mov dword [ebp - 0x220], 0x100
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x10091deb
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x3d
call fcn.10003680
add esp, 4
push 0
push 0
push 0
push 0
test eax, eax
je 0x10091e15
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x204]
push ecx
push ebx
push edi
call eax
jmp 0x10091e2b
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x204]
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test esi, esi
je 0x10091e38
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x10091f22
xor eax, eax
mov dword [ebp - 0x20c], edi
lea ecx, [ebp - 0x204]
mov dword [ebp - 0x208], 7
mov word [ebp - 0x21c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10091e62
sub ecx, edx
lea eax, [ebp - 0x204]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.100070c0
mov edx, dword [ebp - 0x228]
mov ecx, dword [edx + 4]
cmp dword [edx + 8], ecx
je 0x10091ed1
mov eax, dword [ebp - 0x21c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x218]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x214]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x210]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x20c]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x208]
mov dword [ecx + 0x14], eax
add dword [edx + 4], 0x18
inc ebx
jmp 0x10091dc5
lea eax, [ebp - 0x21c]
push eax
push ecx
mov ecx, edx
call fcn.1001df20
mov edx, dword [ebp - 0x208]
cmp edx, 8
jb 0x10091f1c
mov ecx, dword [ebp - 0x21c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10091f12
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10091f73
push edx
push ecx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
inc ebx
jmp 0x10091dc5
mov edi, dword [ebp - 0x224]
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x10091f3e
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x44
call fcn.10003680
add esp, 4
push edi
test eax, eax
je 0x10091f51
call eax
jmp 0x10091f57
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x10091f62
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
call fcn.101e6c40
int3