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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565935
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x5bf094]
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
xor ebx, ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x98], ebx
push 0x2001f
push reloc.WS2_32.dll_accept
push 0x5c17f4
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], ebx
call fcn.00404ef0
push 9
xor eax, eax
mov edi, 7
push str.Layout_ID
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.00403510
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x84], 0xffffffff
jae 0x4528f2
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0xa4]
push ecx
lea edx, [ebp - 0x84]
push edx
mov edx, dword [ebp - 0xa0]
lea ecx, [ebp - 0x88]
push ecx
push ebx
push eax
push edx
mov dword [ebp - 0xa4], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x452928
mov esi, eax
jmp 0x452938
mov esi, dword [ebp - 0x88]
sub esi, 4
neg esi
sbb esi, esi
and esi, 0xd
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
neg esi
sbb esi, esi
not esi
and esi, dword [ebp - 0x84]
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x84], esi
mov byte [ebp - 4], 1
jb 0x452967
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b8946
add esp, 4
cmp esi, ebx
je 0x452cd8
xor ecx, ecx
push edi
mov word [ebp - 0x2c], cx
push 0x587700
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
call fcn.00403510
xor edx, edx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
push 0x58a220
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.00404090
xor eax, eax
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xb0], ebx
mov word [ebp - 0xc0], ax
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], ebx
push 1
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 7
call fcn.00404ef0
lea edx, [ebp - 0xc0]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 8
call fcn.00404b10
mov eax, dword [ebp - 0x94]
cmp eax, ebx
je 0x452a16
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 8
cmp dword [ebp - 0xac], esi
jb 0x452a32
mov edx, dword [ebp - 0xc0]
push edx
call fcn.004b8946
add esp, 4
cmp dword [ebp - 0x34], esi
jb 0x452a43
mov eax, dword [ebp - 0x48]
push eax
call fcn.004b8946
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x18], esi
jb 0x452a64
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b8946
add esp, 4
xor ecx, ecx
push ebx
xor eax, eax
mov word [ebp - 0x64], cx
push 0x581cac
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
call fcn.00403510
mov eax, dword [ebp - 0x80]
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x6c], esi
jae 0x452a99
lea eax, [ebp - 0x80]
cmp word [eax], 0x37
lea ecx, [ebp - 0x64]
jb 0x452aab
push 0xc
push str.ITBar7Layout
jmp 0x452ab2
push 0xb
push str.ITBarLayout
call fcn.00403510
xor edx, edx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
push str.Software_Microsoft_Internet_Explorer_Toolbar_WebBrowser
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xf
call fcn.00404090
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], ebx
push 0x2001f
push reloc.WS2_32.dll_accept
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0x11
call fcn.00404ef0
mov byte [ebp - 4], 0x13
cmp dword [ebp - 0x34], esi
jb 0x452b18
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004b8946
add esp, 4
xor edx, edx
push ebx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.00412010
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0x14
call fcn.00416860
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 0x16
cmp eax, ebx
je 0x452b65
push eax
call fcn.004b8946
add esp, 4
mov esi, dword [ebp - 0x3c]
movzx ecx, byte [esi + 0x18]
mov eax, dword [ebp - 0x84]
mov edi, 0x18
cmp ecx, eax
je 0x452b97
jmp 0x452b80
add edi, 0xc
cmp edi, 0x100
jg 0x452d05
movzx edx, byte [esi + edi]
cmp edx, eax
jne 0x452b80
lea ecx, [edi - 7]
lea eax, [edi + 4]
cmp ecx, eax
jg 0x452bb2
sub eax, ecx
inc eax
push eax
lea edx, [esi + ecx]
push ebx
push edx
call fcn.004b9850
add esp, 0xc
xor eax, eax
lea edi, [esi + edi + 5]
jmp 0x452bc0
mov cl, byte [edi + eax]
mov byte [edi + eax - 0xc], cl
mov byte [edi + eax], bl
inc eax
cmp eax, 0x48
jl 0x452bc0
mov eax, dword [ebp - 0x84]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add eax, eax
lea eax, [esi + eax*8 + 0xb4]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov eax, dword [ebp - 0x38]
cmp esi, eax
je 0x452c1b
mov ecx, dword [ebp - 0x64]
sub eax, esi
cmp dword [ebp - 0x50], 8
jae 0x452c05
lea ecx, [ebp - 0x64]
mov edx, dword [ebp - 0x94]
push eax
push esi
push 3
push ebx
push ecx
push edx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 9
xor eax, eax
push str.Layout_ID
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.00403510
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x452c46
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0xa0]
push 4
lea ecx, [ebp - 0x88]
push ecx
push 4
push ebx
push eax
push edx
mov dword [ebp - 0x88], ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, 8
cmp dword [ebp - 0x18], edi
jb 0x452c7f
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b8946
add esp, 4
push esi
call fcn.004b8946
mov eax, dword [ebp - 0x94]
add esp, 4
cmp eax, ebx
je 0x452c99
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x50], edi
jb 0x452caa
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004b8946
add esp, 4
xor edx, edx
mov esi, 7
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
cmp dword [ebp - 0x6c], edi
jb 0x452ccc
mov eax, dword [ebp - 0x80]
push eax
call fcn.004b8946
add esp, 4
xor ecx, ecx
mov word [ebp - 0x80], cx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], esi
mov eax, dword [ebp - 0xa0]
cmp eax, ebx
je 0x452ce9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.004b92b7
mov esp, ebp
pop ebp
ret
push esi
call fcn.004b8946
mov eax, dword [ebp - 0x94]
add esp, 4
cmp eax, ebx
je 0x452d1f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 8
cmp dword [ebp - 0x50], edi
jb 0x452d35
mov eax, dword [ebp - 0x64]
push eax
call fcn.004b8946
add esp, 4
xor ecx, ecx
mov esi, 7
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], cx
cmp dword [ebp - 0x6c], edi
jb 0x452d57
mov edx, dword [ebp - 0x80]
push edx
call fcn.004b8946
add esp, 4
xor eax, eax
mov word [ebp - 0x80], ax
jmp 0x452cd2