Function at 0x405cf0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438d04
mov eax, dword fs:[0]
push eax
sub esp, 0x4bc
mov eax, dword [0x468080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4b4], edx
xor edi, edi
lea edx, [ebp - 0x48c]
push 1
mov esi, 0x80000002
mov dword [ebp - 0x4a8], edi
push edi
mov ecx, esi
mov dword [ebp - 0x49c], edi
mov ebx, edi
mov dword [ebp - 0x498], edi
mov dword [ebp - 0x494], edi
mov dword [ebp - 0x48c], edi
mov dword [ebp - 0x490], edi
call fcn.004061ad
push 1
push 1
lea edx, [ebp - 0x490]
mov ecx, esi
call fcn.004061ad
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x490], ebx
je 0x405d88
push dword [ebp - 0x490]
call esi
mov dword [ebp - 0x490], edi
cmp dword [ebp - 0x48c], ebx
je 0x405d9e
push dword [ebp - 0x48c]
call esi
push 0xa
push 0x32
push edi
push 0x10
lea edx, [ebp - 0x78]
pop ecx
call fcn.0040be03
lea eax, [ebp - 0x4a0]
mov edx, 0x43d2e0
push eax
lea eax, [ebp - 0x4a8]
mov ecx, Ordinal_1
push eax
sub esp, 0x14
call fcn.0040c24b
test eax, eax
jne 0x40607b
mov ecx, dword [ebp - 0x4a8]
lea eax, [ebp - 0x4a0]
push eax
lea eax, [ebp - 0x49c]
mov edx, str.42042206_2D85_11D3_8CFF_005004838597
push eax
sub esp, 0x14
call fcn.0040c24b
test eax, eax
jne 0x40607b
mov ecx, dword [ebp - 0x49c]
lea eax, [ebp - 0x4a0]
push eax
lea eax, [ebp - 0x498]
mov edx, str.Version
push eax
sub esp, 0x14
call fcn.0040c24b
test eax, eax
jne 0x40607b
mov ecx, dword [ebp - 0x498]
lea eax, [ebp - 0x4a0]
push eax
lea eax, [ebp - 0x494]
push eax
sub esp, 0x14
lea edx, [ebp - 0x78]
call fcn.0040c24b
test eax, eax
jne 0x40607b
push 2
lea ecx, [ebp - 0x488]
call fcn.00409f33
test eax, eax
je 0x40607b
lea ecx, [ebp - 0x488]
call fcn.0040b9b7
add eax, eax
push eax
lea eax, [ebp - 0x488]
push eax
push 1
push edi
push edi
push dword [ebp - 0x494]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40607b
xor ebx, ebx
lea eax, [ebp - 0x490]
mov dword [ebp - 0x490], ebx
push eax
push 0x20019
mov eax, str..htm
mov dword [ebp - 0x48c], ebx
test edi, edi
mov dword [ebp - 0x4ac], 0x208
push ecx
mov edx, str..mht
mov ecx, Ordinal_1
cmove edx, eax
call fcn.0040c1f1
test eax, eax
je 0x405f01
lea eax, [ebp - 0x490]
test edi, edi
push eax
push 0x20019
mov eax, str..html
mov edx, str..mhtml
push ecx
cmove edx, eax
mov ecx, Ordinal_1
call fcn.0040c1f1
test eax, eax
jne 0x406050
movzx eax, byte [ebp - 0x280]
xor ecx, ecx
cmp dword [ebp - 0x4b0], 1
cmove eax, ecx
mov byte [ebp - 0x280], al
lea eax, [ebp - 0x4ac]
push eax
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x4b0]
push eax
push ebx
push ebx
push dword [ebp - 0x490]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406050
lea eax, [ebp - 0x280]
mov dword [ebp - method.Mso::Logging::StructuredObject_wchar_t_const___1_.virtual_0], vtable.Mso::Logging::StructuredObject_wchar_t_const___1_.0
mov dword [ebp - 0x4bc], eax
mov edx, 0x851
xor eax, eax
mov dword [ebp - 0x4c0], str.Param
mov word [ebp - 0x4b8], ax
mov ecx, 0x170b00f
lea eax, [ebp - 0x4c4]
push eax
push str.Got_HTML_browser_ID:
push 0x64
call fcn.00401c4f
lea eax, [ebp - 0x4a0]
mov ecx, Ordinal_1
push eax
lea eax, [ebp - 0x48c]
push eax
sub esp, 0x14
lea edx, [ebp - 0x280]
call fcn.0040c24b
test eax, eax
jne 0x406050
mov edx, edi
lea ecx, [ebp - 0x280]
call fcn.00409c8d
mov ebx, dword [ebp - 0x4b4]
mov edx, edi
mov ecx, dword [ebp - 0x48c]
push ebx
push 1
push 0x43cc4c
call fcn.004065b1
mov ecx, dword [ebp - 0x48c]
mov edx, edi
push ebx
push 1
push 0x43cc40
call fcn.004065b1
mov ecx, dword [ebp - 0x48c]
lea eax, [ebp - 0x280]
push eax
mov edx, edi
call fcn.0040738d
xor ebx, ebx
mov edx, edi
mov ecx, ebx
call fcn.00407a40
inc ebx
cmp ebx, 9
jb 0x406007
cmp dword [ebp - 0x48c], 0
je 0x406027
push dword [ebp - 0x48c]
call esi
xor ebx, ebx
mov dword [ebp - 0x48c], ebx
cmp dword [ebp - 0x490], ebx
je 0x40603f
push dword [ebp - 0x490]
call esi
inc edi
cmp edi, 1
jle 0x405e93
xor ebx, ebx
inc ebx
xor edi, edi
jmp 0x40607b
cmp dword [ebp - 0x48c], 0
je 0x406061
push dword [ebp - 0x48c]
call esi
xor edi, edi
mov dword [ebp - 0x48c], edi
cmp dword [ebp - 0x490], edi
je 0x406079
push dword [ebp - 0x490]
call esi
mov ebx, edi
cmp dword [ebp - 0x494], 0
je 0x40608c
push dword [ebp - 0x494]
call esi
cmp dword [ebp - 0x498], 0
mov dword [ebp - 0x494], edi
je 0x4060a3
push dword [ebp - 0x498]
call esi
cmp dword [ebp - 0x49c], 0
mov dword [ebp - 0x498], edi
je 0x4060ba
push dword [ebp - 0x49c]
call esi
cmp dword [ebp - 0x4a8], 0
mov dword [ebp - 0x49c], edi
je 0x4060d1
push dword [ebp - 0x4a8]
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004370bb
leave
ret