Function at 0x403940
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4ce5eb
push eax
mov eax, 0x127c
mov dword fs:[0], esp
call fcn.0049bb40
push ebx
push ebp
push esi
mov ebp, ecx
push edi
xor esi, esi
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x246]
mov word [esp + 0x244], si
rep stosd dword es:[edi], eax
mov ecx, dword [0x4e3450]
xor edx, edx
stosw word es:[edi], ax
mov eax, dword [0x4e344c]
mov dword [esp + 0x30], edx
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x38], edx
push str.SoftwareMicrosoftInternet_ExplorerTypedUrls
push reloc.DSOUND.dll_DirectSoundCreate
mov dword [esp + 0x38], ecx
mov word [esp + 0x44], dx
mov dword [esp + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x403cd7
lea ecx, [esp + 0x2e]
push 0xa
push ecx
push 1
mov dword [esp + 0x2c], 0x1046
call dword [sym.imp.MSVCRT.dll__itow]
lea edi, [ebp + 0x4c]
add esp, 0xc
mov ecx, edi
call fcn.00480970
push esi
call fcn.0042f980
add esp, 4
mov ecx, edi
push eax
call fcn.004809a0
mov ecx, dword [ebp + 0x38]
mov eax, dword [ebp + 0x3c]
lea ebx, [ebp + 0x34]
push ecx
push eax
push eax
call fcn.00405050
add esp, 0xc
mov edi, eax
mov eax, dword [ebx + 8]
mov ecx, ebx
push eax
push edi
call fcn.00405000
lea edx, [esp + 0x20]
mov dword [ebx + 8], edi
lea eax, [esp + 0x244]
push edx
mov edx, dword [esp + 0x20]
xor edi, edi
push eax
push edi
lea ecx, [esp + 0x34]
push edi
push ecx
push edx
mov dword [esp + 0x3c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403b89
lea eax, [esp + 0x244]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x403b38
mov ecx, dword [0x4e30fc]
lea edx, [esp + 0x244]
test edx, edx
mov dword [esp + 0x10], ecx
je 0x403ae5
lea eax, [esp + 0x244]
shr eax, 0x10
jne 0x403aa1
xor eax, eax
lea ecx, [esp + 0x244]
mov ax, cx
lea ecx, [esp + 0x10]
push eax
call fcn.00405590
jmp 0x403ae5
lea edx, [esp + 0x244]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x403ae3
push edi
lea ecx, [esp + 0x14]
call fcn.004052b0
test eax, eax
je 0x403ae3
lea ecx, [edi + edi]
mov edi, dword [esp + 0x10]
mov eax, ecx
lea esi, [esp + 0x244]
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 [esp + 0x24]
xor edi, edi
mov eax, dword [ebx + 8]
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
mov ecx, ebx
mov dword [esp + 0x12a0], edi
call fcn.00404d00
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4e3090]
mov dword [esp + 0x1294], 0xffffffff
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x403b38
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x403b38
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.0049bb1b
add esp, 4
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x2e]
inc eax
push 0xa
push ecx
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.MSVCRT.dll__itow]
add esp, 0xc
lea edx, [esp + 0x20]
lea eax, [esp + 0x244]
lea ecx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x20]
push eax
push edi
push edi
push ecx
push edx
mov dword [esp + 0x38], 0x1046
mov word [esp + 0x25c], di
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x403a4f
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], edi
push ecx
push 0x4d51b8
push 3
push edi
push 0x4d5128
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [esp + 0x18]
cmp ecx, edi
je 0x403cd7
mov eax, dword [ebx + 4]
cmp eax, edi
jne 0x403bc9
mov dword [esp + 0x14], edi
jmp 0x403bd5
mov ebx, dword [ebx + 8]
sub ebx, eax
sar ebx, 2
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], edi
cmp eax, edi
jle 0x403cd1
mov edx, dword [esp + 0x10]
mov edi, dword [ebp + 0x38]
push 7
push str.file:__
lea ebx, [edx*4]
add edi, ebx
mov eax, dword [edi]
push eax
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x403cb8
mov eax, dword [edi]
push eax
call fcn.004757b0
add esp, 4
test eax, eax
jne 0x403cb8
mov edi, dword [edi]
cmp dword [edi - 8], 2
jl 0x403c58
mov ax, word [edi]
mov di, word [edi + 2]
cmp di, 0x3a
jne 0x403c4d
and eax, 0xffff
push eax
call dword [sym.imp.MSVCRT.dll_isalpha]
add esp, 4
test eax, eax
jne 0x403cb8
jmp 0x403c58
cmp ax, 0x5c
jne 0x403c58
cmp di, ax
je 0x403cb8
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x3e]
mov word [esp + 0x3c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x38]
push 0x104
stosw word es:[edi], ax
mov edx, dword [ecx + ebx]
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x20]
push edx
push eax
mov ecx, ebp
call fcn.00403470
mov ecx, dword [ebp + 0x38]
mov eax, dword [ecx + ebx]
mov ecx, ebp
push eax
call fcn.004045f0
push 0
push 0
push 0
push eax
mov eax, dword [ebp + 0x38]
lea edx, [esp + 0x4c]
push edx
mov ecx, esi
mov edx, dword [eax + ebx]
inc esi
push edx
push ecx
lea ecx, [ebp + 0x4c]
call fcn.00480a10
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x403be5
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0x128c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1288
ret