Function at 0x4089e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d7e7b
push eax
mov eax, 0x1070
mov dword fs:[0], esp
call fcn.004d4ce0
mov eax, dword [0x4ed808]
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 [0x4ed80c]
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 0x408c09
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 0x408bfe
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 0x408bb3
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
je 0x408bb3
mov edx, dword [0x4ed0fc]
mov dword [esp + 0xc], edx
lea eax, [esp + 0xc]
mov dword [esp + 0x1084], 0
push eax
push esi
call fcn.004333f0
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 0x408b60
lea edx, [esp + 0x34]
test edx, edx
jne 0x408b01
xor ebx, ebx
jmp 0x408b0e
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 0x408b1d
cmp ebx, dword [eax - 4]
jle 0x408b34
lea ecx, [esp + 0xc]
call fcn.00406610
push ebx
lea ecx, [esp + 0x10]
call fcn.00406580
test eax, eax
je 0x408b60
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.00408840
mov eax, dword [esp + 0xc]
mov ecx, dword [0x4ed100]
mov dword [esp + 0x1084], 0xffffffff
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x408bb3
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x408bb3
mov eax, dword [esp + 0xc]
add eax, 0xfffffff4
push eax
call fcn.004d4cc1
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 0x408a95
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