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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004c8b9
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 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 0x1002675e
mov edi, edi
lea eax, [esp + 0x38]
push eax
push SysReAllocStringLen
push ebx
lea ecx, [esp + 0xf0]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x1002676c
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 0x10026341
mov esi, eax
jmp 0x10026719
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 0x10026372
or eax, 0xffffffff
lea esi, [esp + 0x54]
call fcn.1000a860
jmp 0x1002637e
push ebx
mov eax, ecx
lea edi, [esp + 0x58]
call fcn.10011f20
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 0x100263d4
push eax
lea esi, [esp + 0x18]
call fcn.100270f0
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, esi
sub eax, ecx
add eax, edi
je 0x100263c4
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 0x10026442
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 0x10026651
cmp dword [esp + 0x44], 1
jne 0x10026642
mov eax, dword [esp + 0x54]
mov esi, 8
cmp dword [esp + 0x68], esi
jae 0x1002648e
lea eax, [esp + 0x54]
push str.host
push eax
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x100264d3
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x100264a6
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea esi, [esp + 0xac]
call fcn.1000a770
inc dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
xor ecx, ecx
jmp 0x10026426
mov eax, dword [esp + 0x54]
cmp dword [esp + 0x68], esi
jae 0x100264e1
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 0x1002658e
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 0x10026520
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10026520
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea esi, [esp + 0x90]
call fcn.1000a770
mov ecx, esi
lea ebx, [esp + 0xc4]
mov byte [esp + 0x2f8], 3
call fcn.10026b00
mov byte [esp + 0x2f8], 2
cmp dword [esp + 0xa0], 8
jb 0x1002663e
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 0x10026426
cmp dword [esp + 0x68], 8
mov eax, dword [esp + 0x54]
jae 0x1002659d
lea eax, [esp + 0x54]
push str.sourceNone
push eax
call esi
add esp, 8
test eax, eax
je 0x10026642
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 0x100265d0
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea esi, [esp + 0x74]
call fcn.1000a770
mov ecx, esi
lea ebx, [esp + 0xd4]
mov byte [esp + 0x2f8], 4
call fcn.10026b00
mov byte [esp + 0x2f8], 2
cmp dword [esp + 0x84], 8
jb 0x10026621
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 0x10026426
cmp esi, 0x103
jne 0x100266be
mov edi, dword [esp + 0x48]
add edi, 0x3c
lea ecx, [esp + 0xa8]
call fcn.10026bd0
lea eax, [esp + 0xa8]
push eax
mov byte [esp + 0x2fc], 1
call fcn.10021b40
xor esi, esi
mov byte [esp + 0x2f8], 0
cmp ebx, esi
je 0x10026699
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 0x10026715
mov ecx, dword [esp + 0x54]
push ecx
jmp 0x1002670c
lea edx, [esp + 0xa8]
push edx
mov byte [esp + 0x2fc], 1
call fcn.10021b40
mov byte [esp + 0x2f8], 0
cmp ebx, edi
je 0x100266e9
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 0x10026715
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 0x1002676c
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 0x100262f0
lea eax, [ecx - 0x103]
neg eax
sbb eax, eax
and eax, ecx
jmp 0x1002676e
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.10045a28
mov esp, ebp
pop ebp
ret 4