Function at 0x10030a50
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004cfd3
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x10063068]
xor eax, esp
mov dword [esp + 0x2d8], eax
push ebx
push esi
push edi
mov eax, dword [0x10063068]
xor eax, esp
push eax
lea eax, [esp + 0x2f0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push ebx
mov esi, ecx
push ebx
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0xf8]
push edx
push ebx
push esi
mov dword [esp + 0x6c], eax
mov dword [esp + 0x60], esi
mov dword [esp + 0x58], ebx
mov dword [esp + 0x4c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, eax
cmp ecx, ebx
jne 0x10030fbb
mov edi, edi
lea eax, [esp + 0x3c]
push eax
push SysReAllocStringLen
push ebx
lea ecx, [esp + 0xf0]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, ebx
jne 0x10030fc9
mov eax, dword [esp + 0x3c]
push ebx
push ebx
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x40]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
mov dword [esp + 0x84], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, ebx
je 0x10030b24
mov edi, eax
jmp 0x10030f78
xor edx, edx
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], dx
mov dword [esp + 0x2f8], ebx
mov ecx, dword [esp + 0x34]
inc ecx
cmp ecx, ebx
ja 0x10030b55
or eax, 0xffffffff
lea esi, [esp + 0x58]
call fcn.1000a860
jmp 0x10030b61
push ebx
mov eax, ecx
lea edi, [esp + 0x5c]
call fcn.10011f20
xor esi, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x2f8], 1
mov eax, dword [esp + 0x28]
mov edi, eax
cmp eax, ebx
jbe 0x10030bb4
push eax
lea esi, [esp + 0x1c]
call fcn.100270f0
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, esi
sub eax, ecx
add eax, edi
je 0x10030ba6
push eax
push ebx
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov eax, dword [esp + 0x28]
add esi, edi
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x18]
mov ecx, 7
xor edx, edx
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], dx
mov dword [esp + 0xa8], ecx
xor ecx, ecx
mov dword [esp + 0xa4], ebx
mov word [esp + 0x94], cx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0x74], 1
mov byte [esp + 0x2f8], 3
mov byte [esp + 0x17], cl
mov dword [esp + 0x30], ebx
mov edx, dword [esp + 0x34]
inc edx
mov ebx, 8
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x48], edx
cmp dword [esp + 0x6c], ebx
jae 0x10030c33
lea eax, [esp + 0x58]
lea ecx, [esp + 0x44]
push ecx
push esi
lea edx, [esp + 0x58]
push edx
mov edx, dword [esp + 0x3c]
push 0
lea ecx, [esp + 0x58]
push ecx
push eax
mov eax, dword [esp + 0x6c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
test edi, edi
jne 0x10030e22
cmp dword [esp + 0x50], 1
jne 0x10030e15
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x6c], ebx
jae 0x10030c79
lea eax, [esp + 0x58]
mov edi, dword [sym.imp.MSVCR100.dll__wcsicmp]
push str.type
push eax
call edi
add esp, 8
test eax, eax
jne 0x10030cac
lea edi, [esp + 0x74]
call fcn.10031000
mov esi, dword [esp + 0x18]
inc dword [esp + 0x30]
mov byte [esp + 0x17], al
mov eax, dword [esp + 0x28]
jmp 0x10030c13
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x6c], ebx
jae 0x10030cba
lea eax, [esp + 0x58]
push str.replacement
push eax
call edi
add esp, 8
test eax, eax
jne 0x10030cfc
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10030cd0
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea esi, [esp + 0x7c]
call fcn.1000a770
mov esi, dword [esp + 0x18]
inc dword [esp + 0x30]
mov eax, dword [esp + 0x28]
jmp 0x10030c13
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x6c], ebx
jae 0x10030d0a
lea eax, [esp + 0x58]
push str.category
push eax
call edi
add esp, 8
test eax, eax
jne 0x10030d4f
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10030d20
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea esi, [esp + 0x98]
call fcn.1000a770
mov esi, dword [esp + 0x18]
inc dword [esp + 0x30]
mov eax, dword [esp + 0x28]
jmp 0x10030c13
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x6c], ebx
jae 0x10030d5d
lea eax, [esp + 0x58]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10030d60
sub eax, edx
sar eax, 1
cmp eax, 6
jb 0x10030e15
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x6c], ebx
jae 0x10030d86
lea eax, [esp + 0x58]
xor ecx, ecx
mov word [eax + 0xc], cx
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x6c], ebx
jae 0x10030d9a
lea eax, [esp + 0x58]
push 0x10056f10
push eax
call edi
add esp, 8
test eax, eax
jne 0x10030e15
mov eax, esi
lea ecx, [esp + 0xc8]
call fcn.10009040
lea ecx, [esp + 0xc8]
lea edi, [esp + 0xb0]
mov byte [esp + 0x2f8], 4
call fcn.10031a00
mov byte [esp + 0x2f8], 3
cmp dword [esp + 0xdc], 8
jb 0x10030df5
mov edx, dword [esp + 0xc8]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0xdc], 7
mov dword [esp + 0xd8], 0
mov word [esp + 0xc8], ax
inc dword [esp + 0x30]
mov eax, dword [esp + 0x28]
jmp 0x10030c13
cmp edi, 0x103
jne 0x10030f1b
cmp byte [esp + 0x17], 0
je 0x10030ecd
lea ecx, [esp + 0x74]
push ecx
call fcn.10031880
mov ebx, dword [esp + 0x4c]
mov edi, dword [ebx + 0x48]
lea edx, [esp + 0x74]
cmp edx, edi
jae 0x10030e9e
mov eax, dword [ebx + 0x44]
mov ecx, edx
cmp eax, ecx
ja 0x10030e9e
sub ecx, eax
mov eax, 0x6bca1af3
imul ecx
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp edi, dword [ebx + 0x4c]
jne 0x10030e7b
lea ecx, [ebx + 0x44]
call fcn.10031b10
mov eax, dword [ebx + 0x48]
imul esi, esi, 0x4c
add esi, dword [ebx + 0x44]
mov byte [esp + 0x2f8], 5
test eax, eax
je 0x10030e98
push eax
mov edi, esi
call fcn.10031f90
mov esi, dword [esp + 0x18]
jmp 0x10030ec4
cmp edi, dword [ebx + 0x4c]
jne 0x10030eab
lea ecx, [ebx + 0x44]
call fcn.10031b10
mov eax, dword [ebx + 0x48]
mov byte [esp + 0x2f8], 6
test eax, eax
je 0x10030ec4
push eax
lea edi, [esp + 0x78]
call fcn.10031f90
add dword [ebx + 0x48], 0x4c
mov ebx, 8
lea edx, [esp + 0x74]
push edx
mov byte [esp + 0x2fc], 1
call fcn.10012270
xor edi, edi
mov byte [esp + 0x2f8], 0
cmp esi, edi
je 0x10030ef7
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x2f8], 0xffffffff
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
cmp dword [esp + 0x6c], ebx
jb 0x10030f72
mov eax, dword [esp + 0x58]
push eax
jmp 0x10030f69
lea ecx, [esp + 0x74]
push ecx
mov byte [esp + 0x2fc], 1
call fcn.10012270
xor eax, eax
mov byte [esp + 0x2f8], 0
cmp esi, eax
je 0x10030f47
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x2f8], 0xffffffff
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
cmp dword [esp + 0x6c], ebx
jb 0x10030f72
mov edx, dword [esp + 0x58]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, dword [esp + 0x40]
xor ebx, ebx
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
jne 0x10030fc9
mov eax, dword [esp + 0x38]
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0xf8]
inc eax
push edx
push eax
push esi
mov dword [esp + 0x58], eax
mov dword [esp + 0x4c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, eax
cmp ecx, ebx
je 0x10030ad0
lea eax, [ecx - 0x103]
neg eax
sbb eax, eax
and eax, ecx
jmp 0x10030fcb
mov eax, edi
mov ecx, dword [esp + 0x2f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2d8]
xor ecx, esp
call fcn.10045a28
mov esp, ebp
pop ebp
ret 4