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

Disassembly:
sub esp, 0x53c
mov eax, dword [0x10dc4e80]
mov edx, dword [0x10dc4e88]
mov ecx, dword [0x10dc4e84]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x54c]
mov dword [esp + 0x34], eax
mov eax, dword [0x10dc4e8c]
xor ebx, ebx
mov dword [esp + 0x40], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x145]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x38], ecx
mov dword [eax + 0x10], edx
lea ecx, [esp + 0x44]
lea edx, [esp + 0x14]
push edi
mov dword [eax + 0xc], ecx
push edx
lea ecx, [esp + 0x24e]
push ebx
push Ordinal_2
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x40], eax
mov dword [eax + 0x14], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10b31d00
mov eax, dword [esi]
push ebx
push ebx
push 0x184
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esp + 0x20], ebx
cmp dword [esp + 0x10], ebx
je 0x10b31a34
lea ecx, [esp + 0x1c]
push ecx
push 1
call dword [sym.imp.ole32.dll_CoGetMalloc]
test eax, eax
jne 0x10b31a30
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [esp + 0x1c]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov eax, ecx
inc ecx
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x149]
push 0x100
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, 0xea
je 0x10b31a00
cmp eax, ebx
jne 0x10b31cd0
lea edi, [esp + 0x149]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
call fcn.10bd19f0
test eax, eax
lea ebp, [esp + esi + 0x149]
je 0x10b31a9b
push 0x10dee1f4
push ebp
call dword [sym.imp.MSVCRT.dll__mbscpy]
add esp, 8
jmp 0x10b31abd
mov edi, str.NotInsertable
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24a]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x14d]
push edx
push eax
push ecx
mov dword [esp + 0x24], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
cmp eax, ebx
jne 0x10b31afc
mov edx, dword [esp + 0x14]
cmp eax, ebx
mov byte [esp + edx + 0x24a], bl
je 0x10b31a00
call fcn.10bd19f0
test eax, eax
je 0x10b31b16
push 0x10dee214
push ebp
call dword [sym.imp.MSVCRT.dll__mbscpy]
add esp, 8
jmp 0x10b31b38
mov edi, str.protocolStdFileEditing_server
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24a]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x14d]
push edx
mov edi, 0x100
push eax
push ecx
mov dword [esp + 0x24], edi
call esi
cmp eax, ebx
jne 0x10b31bb4
mov edx, dword [esp + 0x14]
cmp eax, ebx
mov byte [esp + edx + 0x24a], bl
jne 0x10b31bb4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], edi
lea ecx, [esp + 0x24a]
mov byte [ebp], bl
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14d]
push ecx
push edx
push eax
call esi
cmp eax, ebx
jne 0x10b31a00
mov ecx, dword [esp + 0x14]
cmp eax, ebx
mov byte [esp + ecx + 0x24a], bl
jne 0x10b31a00
lea edx, [esp + 0x149]
push 0x100
lea eax, [esp + 0x350]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_mbstowcs]
add esp, 0xc
lea ecx, [esp + 0x24]
lea edx, [esp + 0x34c]
push ecx
push edx
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.ole32.dll_StringFromCLSID]
cmp dword [esp + 0x10], ebx
je 0x10b31a34
mov ecx, 0x10
lea edi, [esp + 0x38]
lea esi, [esp + 0x24]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x10b31a00
mov edx, dword [esp + 0x554]
xor ecx, ecx
xor eax, eax
cmp edx, ebx
jbe 0x10b31c57
mov ebp, dword [esp + 0x558]
cmp ecx, ebx
jne 0x10b31a00
mov ecx, 0x10
mov edi, ebp
lea esi, [esp + 0x24]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
sete dl
mov ecx, edx
mov edx, dword [esp + 0x554]
inc eax
add ebp, 0x10
cmp eax, edx
jb 0x10b31c2c
cmp ecx, ebx
jne 0x10b31a00
mov eax, dword [esp + 0x55c]
cmp eax, ebx
je 0x10b31c90
mov edx, dword [esp + 0x24]
sub esp, 0x10
mov ecx, esp
push eax
mov dword [ecx], edx
mov edx, dword [esp + 0x3c]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x40]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x44]
mov dword [ecx + 0xc], edx
call fcn.10b36a50
mov eax, dword [esp + 0x10]
push 0xff
lea ecx, [esp + 0x14d]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcstombs]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [eax + 0x18], edx
mov ecx, dword [esp + 0x18]
mov dword [eax + 8], ecx
push eax
mov eax, dword [esp + 0x554]
mov edx, dword [eax]
push edx
call dword [eax + 8]
jmp 0x10b31a00
cmp dword [esp + 0x10], ebx
je 0x10b31d00
lea eax, [esp + 0x1c]
push eax
push 1
call dword [sym.imp.ole32.dll_CoGetMalloc]
test eax, eax
jne 0x10b31d00
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, dword [esp + 0x18]
pop ebp
pop ebx
add esp, 0x53c
ret 0x10