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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x478
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x474], eax
push ebx
push esi
lea eax, [esp + 8]
push eax
xor esi, esi
push str.software_asio
push 0x80000002
mov dword [esp + 0x14], esi
mov dword [edi + 4], esi
mov dword [edi], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10001a76
jmp 0x10001890
mov edx, dword [esp + 8]
push 0x80
lea ecx, [esp + 0x34]
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ebx, eax
inc esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], esi
test ebx, ebx
jne 0x10001a76
mov esi, dword [edi]
mov edx, dword [esp + 8]
lea ecx, [esp + 0x30]
test esi, esi
jne 0x10001a4f
lea eax, [esp + 0x14]
push eax
push 0x20019
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001a68
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0xb4]
push ecx
lea edx, [esp + 0x18]
push edx
push esi
push str.clsid
push eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10001a3e
lea ecx, [esp + 0x278]
push ecx
lea ebx, [esp + 0xb4]
call fcn.100013c0
add esp, 4
test eax, eax
jne 0x10001a3e
push 0x29c
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
add esp, 4
test esi, esi
je 0x10001a3e
push 0x29c
push 0
push esi
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x64
lea edx, [esp + 0x1b4]
push edx
push 0xffffffffffffffff
mov eax, ebx
push eax
push 0
push 0
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1b4]
push edx
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jne 0x100019ba
mov eax, dword [esp + 0x20]
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x24]
mov dword [esi + 8], ecx
mov edx, dword [esp + 0x28]
mov dword [esi + 0xc], edx
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x10], eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0xb4]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push str.description
push ecx
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, esi
test eax, eax
jne 0x10001a1f
lea eax, [esp + 0xb0]
mov ecx, eax
sub edx, ecx
nop
mov cl, byte [eax]
mov byte [edx + eax + 0x214], cl
inc eax
test cl, cl
jne 0x10001a00
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x1c]
jmp 0x10001a68
lea eax, [esp + 0x30]
mov ecx, eax
sub edx, ecx
jmp 0x10001a30
mov cl, byte [eax]
mov byte [edx + eax + 0x214], cl
inc eax
test cl, cl
jne 0x10001a30
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x1c]
jmp 0x10001a68
mov eax, dword [esi + 0x298]
push eax
push 1
push ecx
push edx
call fcn.100015f0
add esp, 0x10
mov dword [esi + 0x298], eax
mov dword [edi], esi
mov esi, dword [esp + 0x18]
test ebx, ebx
je 0x10001890
mov eax, dword [esp + 8]
test eax, eax
je 0x10001a85
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [edi]
test eax, eax
je 0x10001a9e
mov ecx, dword [edi + 4]
mov edi, edi
inc ecx
mov dword [edi + 4], ecx
mov eax, dword [eax + 0x298]
test eax, eax
jne 0x10001a90
cmp dword [edi + 4], 0
je 0x10001aac
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov ecx, dword [esp + 0x47c]
pop esi
pop ebx
xor ecx, esp
mov eax, edi
call fcn.10005a0e
mov esp, ebp
pop ebp
ret