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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4b0
mov eax, dword [0x43c064]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x4a4], edx
push 1
mov esi, 0x80000002
mov dword [ebp - 0x498], edi
push edi
lea edx, [ebp - 0x47c]
mov dword [ebp - 0x48c], edi
mov ecx, esi
mov dword [ebp - 0x488], edi
mov ebx, edi
mov dword [ebp - 0x484], edi
mov dword [ebp - 0x47c], edi
mov dword [ebp - 0x480], edi
call fcn.00405e3c
push 1
push 1
lea edx, [ebp - 0x480]
mov ecx, esi
call fcn.00405e3c
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x480], ebx
je 0x405a29
push dword [ebp - 0x480]
call esi
mov dword [ebp - 0x480], edi
cmp dword [ebp - 0x47c], ebx
je 0x405a3f
push dword [ebp - 0x47c]
call esi
push 0xa
push 0x32
push edi
push 0x10
lea edx, [ebp - 0x68]
pop ecx
call fcn.0040b6c5
lea eax, [ebp - 0x490]
mov edx, 0x41c290
push eax
lea eax, [ebp - 0x498]
mov ecx, Ordinal_1
push eax
sub esp, 0x14
call fcn.0040bb2f
test eax, eax
jne 0x405d11
mov ecx, dword [ebp - 0x498]
lea eax, [ebp - 0x490]
push eax
lea eax, [ebp - 0x48c]
mov edx, str.42042206_2D85_11D3_8CFF_005004838597
push eax
sub esp, 0x14
call fcn.0040bb2f
test eax, eax
jne 0x405d11
mov ecx, dword [ebp - 0x48c]
lea eax, [ebp - 0x490]
push eax
lea eax, [ebp - 0x488]
mov edx, str.Version
push eax
sub esp, 0x14
call fcn.0040bb2f
test eax, eax
jne 0x405d11
mov ecx, dword [ebp - 0x488]
lea eax, [ebp - 0x490]
push eax
lea eax, [ebp - 0x484]
push eax
sub esp, 0x14
lea edx, [ebp - 0x68]
call fcn.0040bb2f
test eax, eax
jne 0x405d11
push 2
lea ecx, [ebp - 0x478]
call fcn.00409c60
test eax, eax
je 0x405d11
lea ecx, [ebp - 0x478]
call fcn.0040b2d4
add eax, eax
push eax
lea eax, [ebp - 0x478]
push eax
push 1
push edi
push edi
push dword [ebp - 0x484]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x405d11
xor ebx, ebx
lea eax, [ebp - 0x480]
mov dword [ebp - 0x480], ebx
push eax
push 0x20019
mov eax, str..htm
mov dword [ebp - 0x47c], ebx
test edi, edi
mov dword [ebp - 0x49c], 0x208
push ecx
mov edx, str..mht
mov ecx, Ordinal_1
cmove edx, eax
call fcn.0040bac7
test eax, eax
je 0x405ba2
lea eax, [ebp - 0x480]
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.0040bac7
test eax, eax
jne 0x405ce6
movzx eax, byte [ebp - 0x270]
xor ecx, ecx
cmp dword [ebp - 0x4a0], 1
cmove eax, ecx
mov byte [ebp - 0x270], al
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x4a0]
push eax
push ebx
push ebx
push dword [ebp - 0x480]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405ce6
lea eax, [ebp - 0x270]
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 - 0x4a8], eax
mov edx, 0x851
lea eax, [ebp - 0x4b0]
mov dword [ebp - 0x4ac], str.Param
push eax
push str.Got_HTML_browser_ID:
push 0x64
mov ecx, 0x170b00f
call fcn.00401cbf
lea eax, [ebp - 0x490]
mov ecx, Ordinal_1
push eax
lea eax, [ebp - 0x47c]
push eax
sub esp, 0x14
lea edx, [ebp - 0x270]
call fcn.0040bb2f
test eax, eax
jne 0x405ce6
mov edx, edi
lea ecx, [ebp - 0x270]
call fcn.004096fe
mov ebx, dword [ebp - 0x4a4]
mov edx, edi
push ebx
push ecx
mov ecx, dword [ebp - 0x47c]
push 0x41bc44
call fcn.00406226
push ebx
push ecx
mov ecx, dword [ebp - 0x47c]
mov edx, edi
push 0x41bb84
call fcn.00406226
mov ecx, dword [ebp - 0x47c]
lea eax, [ebp - 0x270]
push eax
mov edx, edi
call fcn.00406eb5
xor ebx, ebx
mov edx, edi
mov ecx, ebx
call fcn.0040756a
inc ebx
cmp ebx, 9
jb 0x405c9d
cmp dword [ebp - 0x47c], 0
je 0x405cbd
push dword [ebp - 0x47c]
call esi
xor ebx, ebx
mov dword [ebp - 0x47c], ebx
cmp dword [ebp - 0x480], ebx
je 0x405cd5
push dword [ebp - 0x480]
call esi
inc edi
cmp edi, 1
jle 0x405b34
xor ebx, ebx
inc ebx
xor edi, edi
jmp 0x405d11
cmp dword [ebp - 0x47c], 0
je 0x405cf7
push dword [ebp - 0x47c]
call esi
xor edi, edi
mov dword [ebp - 0x47c], edi
cmp dword [ebp - 0x480], edi
je 0x405d0f
push dword [ebp - 0x480]
call esi
mov ebx, edi
cmp dword [ebp - 0x484], 0
je 0x405d22
push dword [ebp - 0x484]
call esi
cmp dword [ebp - 0x488], 0
mov dword [ebp - 0x484], edi
je 0x405d39
push dword [ebp - 0x488]
call esi
cmp dword [ebp - 0x48c], 0
mov dword [ebp - 0x488], edi
je 0x405d50
push dword [ebp - 0x48c]
call esi
cmp dword [ebp - 0x498], 0
mov dword [ebp - 0x48c], edi
je 0x405d67
push dword [ebp - 0x498]
call esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416bd0
mov esp, ebp
pop ebp
ret