Function at 0x409990
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d690b
push eax
mov eax, 0x1070
mov dword fs:[0], esp
call fcn.004d3780
mov eax, dword [0x4ebb84]
xor edx, edx
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], edx
mov ecx, dword [0x4ebb88]
push eax
mov dword [esp + 0x20], edx
push str.SoftwareMicrosoftInternet_ExplorerTypedUrls
push reloc.DSOUND.dll_DirectSoundCreate
mov dword [esp + 0x20], ecx
mov word [esp + 0x2c], dx
mov dword [esp + 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x409bb9
lea ecx, [esp + 0x16]
push 0xa
push ecx
push 1
mov word [esp + 0x107a], ax
mov dword [esp + 0x10], 0x1046
call dword [sym.imp.MSVCRT.dll__itow]
add esp, 0xc
lea edx, [esp + 4]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
push edx
mov edx, dword [esp + 0xc]
push eax
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409bae
push ebx
push esi
push edi
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x409b63
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
je 0x409b63
mov edx, dword [0x4eb4c0]
mov dword [esp + 0xc], edx
lea eax, [esp + 0xc]
mov dword [esp + 0x1084], 0
push eax
push esi
call fcn.00433030
add esp, 8
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x409b10
lea edx, [esp + 0x34]
test edx, edx
jne 0x409ab1
xor ebx, ebx
jmp 0x409abe
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov eax, dword [esp + 0xc]
cmp dword [eax - 0xc], 1
jg 0x409acd
cmp ebx, dword [eax - 4]
jle 0x409ae4
lea ecx, [esp + 0xc]
call fcn.00407610
push ebx
lea ecx, [esp + 0x10]
call fcn.00407580
test eax, eax
je 0x409b10
mov edi, dword [esp + 0xc]
lea eax, [ebx + ebx]
mov ecx, eax
lea esi, [esp + 0x34]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xc]
mov dword [ecx - 8], ebx
mov edx, dword [esp + 0xc]
mov word [eax + edx], 0
mov eax, dword [esp + 0xc]
push 0
push 5
push 1
lea ecx, [esp + 0x40]
push eax
push ecx
mov ecx, dword [esp + 0x44]
call fcn.004097f0
mov eax, dword [esp + 0xc]
mov ecx, dword [0x4eb24c]
mov dword [esp + 0x1084], 0xffffffff
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x409b63
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x409b63
mov eax, dword [esp + 0xc]
add eax, 0xfffffff4
push eax
call fcn.004d3765
add esp, 4
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x22]
inc eax
push 0xa
push ecx
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.MSVCRT.dll__itow]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x34]
lea ecx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
push eax
push 0
push 0
push ecx
push edx
mov dword [esp + 0x28], 0x1046
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x409a45
pop edi
pop esi
pop ebx
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1070]
mov dword fs:[0], ecx
add esp, 0x107c
ret