Function at 0x10058ab0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edi
push dword [ecx + 0xc]
mov dword [ebp - 0x214], ecx
lea ecx, [ebp - 0x22c]
push edx
push eax
mov dword [ebp - 0x218], edx
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0xffffffff
call fcn.10058810
mov edi, eax
test edi, edi
jne 0x10058d9a
push esi
mov dword [ebp - 0x210], 0x100
mov dword [ebp - 0x208], eax
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
push ebx
lea esi, [eax + 0x10]
mov dword [ebp - 0x20c], esi
mov ebx, dword [ebp - 0x22c]
call fcn.10003180
mov edi, dword [eax + 0x154]
test edi, edi
je 0x10058b51
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x3d
call fcn.10003680
add esp, 4
test eax, eax
je 0x10058b85
lea ecx, [ebp - 0x234]
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x204]
push ecx
push dword [ebp - 0x208]
push ebx
call eax
jmp 0x10058bad
lea eax, [ebp - 0x234]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x208]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
test edi, edi
je 0x10058bba
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x22c]
test ebx, ebx
jne 0x10058d29
lea eax, [ebp - 0x204]
push eax
call fcn.100588d0
test eax, eax
jne 0x10058bec
lea eax, [ebp - 0x204]
push eax
push esi
call sub.msvcrt.dll__wcsicmp
add esp, 8
test eax, eax
jne 0x10058bf2
inc dword [ebp - 0x208]
lea edi, [ebp - 0x204]
lea ecx, [edi + 2]
jmp 0x10058c00
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x10058c00
sub edi, ecx
sar edi, 1
jne 0x10058c77
cmp dword [esi - 0xc], 0
lea edx, [esi - 0x10]
mov edi, dword [edx]
je 0x10058d1a
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x10058c44
mov dword [esi - 0xc], 0
xor eax, eax
mov word [esi], ax
mov dword [ebp - 0x210], 0x100
jmp 0x10058b35
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10058c58
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
mov dword [ebp - 0x210], 0x100
lea esi, [eax + 0x10]
mov dword [ebp - 0x20c], esi
jmp 0x10058b35
mov eax, dword [esi - 0xc]
lea ebx, [ebp - 0x204]
mov dword [ebp - 0x21c], eax
sub ebx, esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
sar ebx, 1
or ecx, eax
jge 0x10058cad
push edi
lea ecx, [ebp - 0x20c]
call fcn.10003310
mov esi, dword [ebp - 0x20c]
cmp ebx, dword [ebp - 0x21c]
ja 0x10058cfd
mov eax, dword [esi - 8]
lea ecx, [edi + edi]
lea edx, [esi + ebx*2]
test ecx, ecx
je 0x10058d11
test edx, edx
jne 0x10058cd8
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
call fcn.101e6c20
jmp 0x10058d11
add eax, eax
cmp eax, ecx
jae 0x10058cf0
call sub.msvcrt.dll__errno
mov dword [eax], 0x22
call fcn.101e6c20
jmp 0x10058d11
push ecx
push edx
push esi
call sub.msvcrt.dll_memmove
add esp, 0xc
jmp 0x10058d11
push edi
lea eax, [ebp - 0x204]
push eax
push dword [esi - 8]
push esi
call fcn.10008010
add esp, 0x10
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
mov dword [ebp - 0x210], 0x100
jmp 0x10058b35
call fcn.10008220
mov ecx, dword [ebp - 0x214]
xor ebx, ebx
xor edi, edi
mov eax, dword [ecx]
test eax, eax
je 0x10058d57
push dword [ebp - 0x218]
push eax
call fcn.10058720
mov ecx, dword [ebp - 0x214]
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
mov eax, dword [ecx + 4]
test eax, eax
je 0x10058d71
push dword [ebp - 0x218]
push eax
call fcn.10058720
mov edi, eax
neg edi
sbb edi, edi
inc edi
test ebx, ebx
pop ebx
jne 0x10058d7f
test edi, edi
jne 0x10058d7f
or edi, 0xffffffff
jmp 0x10058d81
xor edi, edi
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10058d99
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
pop esi
lea ecx, [ebp - 0x22c]
call fcn.10008220
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 8