Function at 0x405230
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4d595b
push eax
mov eax, 0x127c
mov dword fs:[0], esp
call fcn.004d2930
push ebx
push ebp
push esi
mov ebx, 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 [0x4ef364]
xor edx, edx
stosw word es:[edi], ax
mov eax, dword [0x4ef360]
mov dword [esp + 0x30], edx
lea edi, [ebx + 0x4c]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], edx
mov ecx, edi
mov dword [esp + 0x28], eax
mov word [esp + 0x38], dx
mov dword [esp + 0x14], 1
call fcn.004b4620
push esi
call fcn.00442060
add esp, 4
mov ecx, edi
push eax
call fcn.004b4660
mov ecx, dword [ebx + 0x38]
mov eax, dword [ebx + 0x3c]
lea ebp, [ebx + 0x34]
push ecx
push eax
push eax
call fcn.004089f0
add esp, 0xc
mov edi, eax
mov eax, dword [ebp + 8]
mov ecx, ebp
push eax
push edi
call fcn.00408610
lea eax, [esp + 0x1c]
mov dword [ebp + 8], edi
push eax
push str.SoftwareMicrosoftInternet_ExplorerTypedUrls
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40559c
lea ecx, [esp + 0x2e]
push 0xa
push ecx
push 1
mov dword [esp + 0x24], 0x1046
call dword [sym.imp.MSVCRT.dll__itow]
add esp, 0xc
lea edx, [esp + 0x18]
lea eax, [esp + 0x244]
lea ecx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x20]
push eax
push esi
push esi
push ecx
push edx
mov dword [esp + 0x38], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405443
cmp word [esp + 0x244], si
je 0x4053f2
mov eax, dword [0x4eee90]
lea ecx, [esp + 0x244]
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x40539f
lea edx, [esp + 0x244]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
cmp edi, esi
je 0x40539f
push edi
lea ecx, [esp + 0x14]
call fcn.00408da0
test eax, eax
je 0x40539f
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]
xor esi, esi
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
mov ecx, ebp
mov dword [esp + 0x12a0], esi
call fcn.00408310
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4ee0f0]
mov dword [esp + 0x1294], 0xffffffff
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4053f2
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4053f2
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.004d2909
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 + 0x18]
lea eax, [esp + 0x244]
lea ecx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x20]
push eax
push esi
push esi
push ecx
push edx
mov dword [esp + 0x30], 0x1046
mov word [esp + 0x25c], si
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40533d
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0043b6d0
cmp eax, esi
mov dword [esp + 0x24], eax
je 0x40559c
mov ecx, dword [ebp + 4]
cmp ecx, esi
jne 0x40546a
xor ebp, ebp
jmp 0x405472
mov ebp, dword [ebp + 8]
sub ebp, ecx
sar ebp, 2
cmp ebp, esi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
jle 0x405596
mov ecx, dword [esp + 0x14]
mov edi, dword [ebx + 0x38]
push 7
push str.file:__
lea esi, [ecx*4]
add edi, esi
mov eax, dword [edi]
push eax
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x405581
mov eax, dword [edi]
push eax
call fcn.004a6e20
add esp, 4
test eax, eax
jne 0x405581
mov edi, dword [edi]
cmp dword [edi - 8], 2
jl 0x4054fd
mov ax, word [edi]
mov di, word [edi + 2]
cmp di, 0x3a
jne 0x4054ee
and eax, 0xffff
push eax
call dword [sym.imp.MSVCRT.dll_isalpha]
add esp, 4
test eax, eax
jne 0x405581
jmp 0x4054fd
cmp ax, 0x5c
jne 0x4054fd
cmp di, ax
je 0x405581
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x3e]
mov word [esp + 0x3c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebx + 0x38]
lea edx, [esp + 0x3c]
push 0x104
push edx
mov ecx, dword [eax + esi]
mov edx, dword [esp + 0x2c]
push ecx
push edx
mov ecx, ebx
call fcn.00404d80
mov eax, dword [ebx + 0x38]
mov eax, dword [eax + esi]
push eax
call fcn.00406340
mov ecx, dword [esp + 0x24]
add esp, 4
mov edi, eax
mov edx, dword [ebx + 0x4c]
push 0
push 0
push 0
lea ebp, [esp + 0x48]
mov eax, ecx
push edi
inc ecx
push ebp
mov ebp, dword [ebx + 0x38]
mov dword [esp + 0x34], ecx
lea ecx, [ebx + 0x4c]
mov esi, dword [esi + ebp]
push esi
push eax
call dword [edx + 0xc]
push edi
call fcn.00442040
add esp, 4
test eax, eax
jne 0x40557d
push edi
call dword [sym.imp.USER32.dll_DestroyIcon]
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
inc eax
cmp eax, ebp
mov dword [esp + 0x14], eax
jl 0x405482
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x128c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1288
ret