Function at 0x1002a5c0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004fb99
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x10067068]
xor eax, esp
mov dword [esp + 0x2d8], eax
push ebx
push esi
push edi
mov eax, dword [0x10067068]
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 edi, ecx
push ebx
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0xf8]
push edx
push ebx
push edi
mov dword [esp + 0x68], eax
mov dword [esp + 0x5c], edi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x48], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, eax
cmp ecx, ebx
jne 0x1002aaae
mov edi, edi
lea eax, [esp + 0x38]
push eax
push SysReAllocString
push ebx
lea ecx, [esp + 0xf0]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x1002aabc
mov eax, dword [esp + 0x38]
push ebx
push ebx
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x3c]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
mov dword [esp + 0x7c], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, ebx
je 0x1002a691
mov esi, eax
jmp 0x1002aa69
xor edx, edx
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], dx
mov dword [esp + 0x2f8], ebx
mov ecx, dword [esp + 0x30]
inc ecx
cmp ecx, ebx
ja 0x1002a6c2
or eax, 0xffffffff
lea esi, [esp + 0x54]
call fcn.1000d050
jmp 0x1002a6ce
push ebx
mov eax, ecx
lea edi, [esp + 0x58]
call fcn.10016e20
xor ecx, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x2f8], 1
mov eax, dword [esp + 0x24]
mov edi, eax
cmp eax, ecx
jbe 0x1002a724
push eax
lea esi, [esp + 0x18]
call fcn.10029360
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, esi
sub eax, ecx
add eax, edi
je 0x1002a714
push eax
push 0
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x14]
add esi, edi
mov dword [esp + 0x18], esi
xor ecx, ecx
xor edx, edx
mov dword [esp + 0xbc], 7
mov dword [esp + 0xb8], ecx
mov word [esp + 0xa8], dx
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xd8], ecx
mov dword [esp + 0xdc], ecx
mov byte [esp + 0x2f8], 2
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x30]
inc edx
cmp dword [esp + 0x68], 8
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x40], edx
jae 0x1002a792
lea eax, [esp + 0x54]
lea edx, [esp + 0x50]
push edx
push ebx
lea edx, [esp + 0x4c]
push edx
mov edx, dword [esp + 0x38]
push ecx
lea ecx, [esp + 0x50]
push ecx
push eax
mov eax, dword [esp + 0x64]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
xor edi, edi
cmp esi, edi
jne 0x1002a9a1
cmp dword [esp + 0x44], 1
jne 0x1002a992
mov eax, dword [esp + 0x54]
mov esi, 8
cmp dword [esp + 0x68], esi
jae 0x1002a7de
lea eax, [esp + 0x54]
push str.host
push eax
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x1002a823
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1002a7f6
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea esi, [esp + 0xac]
call fcn.1000cf60
inc dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
xor ecx, ecx
jmp 0x1002a776
mov eax, dword [esp + 0x54]
cmp dword [esp + 0x68], esi
jae 0x1002a831
lea eax, [esp + 0x54]
mov esi, dword [sym.imp.MSVCR100.dll_wcsstr]
push str.sourceReplace
push eax
call esi
add esp, 8
test eax, eax
je 0x1002a8de
xor ecx, ecx
mov eax, ebx
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], edi
mov word [esp + 0x8c], cx
lea edx, [eax + 2]
jmp 0x1002a870
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1002a870
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea esi, [esp + 0x90]
call fcn.1000cf60
mov ecx, esi
lea ebx, [esp + 0xc4]
mov byte [esp + 0x2f8], 3
call fcn.10028aa0
mov byte [esp + 0x2f8], 2
cmp dword [esp + 0xa0], 8
jb 0x1002a98e
mov edx, dword [esp + 0x8c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
inc dword [esp + 0x30]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
add esp, 4
xor ecx, ecx
jmp 0x1002a776
cmp dword [esp + 0x68], 8
mov eax, dword [esp + 0x54]
jae 0x1002a8ed
lea eax, [esp + 0x54]
push str.sourceNone
push eax
call esi
add esp, 8
test eax, eax
je 0x1002a992
xor eax, eax
mov word [esp + 0x70], ax
mov eax, ebx
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1002a920
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea esi, [esp + 0x74]
call fcn.1000cf60
mov ecx, esi
lea ebx, [esp + 0xd4]
mov byte [esp + 0x2f8], 4
call fcn.10028aa0
mov byte [esp + 0x2f8], 2
cmp dword [esp + 0x84], 8
jb 0x1002a971
mov ecx, dword [esp + 0x70]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], 0
mov word [esp + 0x70], dx
mov ebx, dword [esp + 0x14]
inc dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
xor ecx, ecx
jmp 0x1002a776
cmp esi, 0x103
jne 0x1002aa0e
mov edi, dword [esp + 0x48]
add edi, 0x3c
lea ecx, [esp + 0xa8]
call fcn.1002b0b0
lea eax, [esp + 0xa8]
push eax
mov byte [esp + 0x2fc], 1
call fcn.10023540
xor esi, esi
mov byte [esp + 0x2f8], 0
cmp ebx, esi
je 0x1002a9e9
push ebx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x2f8], 0xffffffff
cmp dword [esp + 0x68], 8
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jb 0x1002aa65
mov ecx, dword [esp + 0x54]
push ecx
jmp 0x1002aa5c
lea edx, [esp + 0xa8]
push edx
mov byte [esp + 0x2fc], 1
call fcn.10023540
mov byte [esp + 0x2f8], 0
cmp ebx, edi
je 0x1002aa39
push ebx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x2f8], 0xffffffff
cmp dword [esp + 0x68], 8
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
jb 0x1002aa65
mov eax, dword [esp + 0x54]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
cmp esi, ebx
jne 0x1002aabc
mov eax, dword [esp + 0x34]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0xf8]
inc eax
push ecx
push eax
push edi
mov dword [esp + 0x54], eax
mov dword [esp + 0x48], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, eax
cmp ecx, ebx
je 0x1002a640
lea eax, [ecx - 0x103]
neg eax
sbb eax, eax
and eax, ecx
jmp 0x1002aabe
mov eax, esi
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.10048188
mov esp, ebp
pop ebp
ret 4