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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x44e134]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x258], ecx
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x258]
mov ecx, dword [ecx + 0x270]
call fcn.004014a1
test eax, eax
jne 0x40a4c0
xor eax, eax
jmp 0x40aad0
xor edx, edx
mov word [ebp - 0x218], dx
push 0x206
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.0041c290
add esp, 0xc
push str.Toolbar
push 0x447f64
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, dword [ebp - 0x258]
call fcn.004013a7
test eax, eax
je 0x40a52f
mov edx, dword [ebp - 0x258]
mov eax, dword [edx + 0x274]
push eax
push str.Toolbar
push str._sDisplay::_d
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov dword [ebp - 0x21c], 0
mov dword [ebp - 4], 0
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x21c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40aac1
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x228], 0
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x25c], eax
lea ecx, [ebp - 0x228]
push ecx
mov edx, dword [ebp - 0x25c]
push edx
mov ecx, dword [ebp - 0x258]
call fcn.00401285
mov ecx, dword [ebp - 0x224]
add ecx, 1
mov dword [ebp - 0x224], ecx
test eax, eax
je 0x40a5dd
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x228]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x228]
mov eax, dword [edx + 0xc]
call eax
jmp 0x40a585
mov ecx, dword [ebp - 0x258]
call fcn.00401415
mov dword [ebp - 0x220], eax
cmp dword [ebp + 8], 0
je 0x40a79f
push 4
mov ecx, dword [ebp - 0x220]
add ecx, 0x24
push ecx
push 4
push 0
push str.Side
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
mov eax, dword [ebp - 0x220]
add eax, 0x1c
push eax
push 4
push 0
push str.Monitor
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x220]
cmp dword [edx + 0x24], 4
jne 0x40a665
mov eax, dword [ebp - 0x220]
add eax, 0x28
push eax
mov ecx, dword [ebp - 0x258]
mov edx, dword [ecx + 0x228]
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0x10
mov eax, dword [ebp - 0x220]
add eax, 0x28
push eax
push 3
push 0
push str.FloatingPosition
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
mov edx, dword [ebp - 0x220]
add edx, 4
push edx
push 4
push 0
push str.AlwaysOnTop
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
mov ecx, dword [ebp - 0x258]
add ecx, 0x284
push ecx
push 4
push 0
push 0x447ec0
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
mov eax, dword [ebp - 0x220]
add eax, 0xc
push eax
push 4
push 0
push str.ShowTitlebar
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
mov edx, dword [ebp - 0x258]
add edx, 0x28c
push edx
push 4
push 0
push str.LargeIcons
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
mov ecx, dword [ebp - 0x258]
add ecx, 0x288
push ecx
push 4
push 0
push str.Locked
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
mov eax, dword [ebp - 0x220]
push eax
push 4
push 0
push str.AutoHide
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0
push 0
push 0x40d
mov edx, dword [ebp - 0x258]
mov eax, dword [edx + 0x22c]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x22c], eax
push 4
lea ecx, [ebp - 0x22c]
push ecx
push 4
push 0
push str.Rows
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x40aab4
mov eax, dword [ebp - 0x220]
add eax, 0x24
push eax
push str.Side
mov ecx, dword [ebp - 0x21c]
push ecx
call fcn.0040126c
add esp, 0xc
mov edx, dword [ebp - 0x220]
add edx, 0x1c
push edx
push str.Monitor
mov eax, dword [ebp - 0x21c]
push eax
call fcn.0040126c
add esp, 0xc
mov dword [ebp - 0x244], 0
xor ecx, ecx
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x23c], ecx
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x234], 0x10
mov dword [ebp - 0x230], 3
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x230]
push ecx
push 0
push str.FloatingPosition
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a86b
mov eax, dword [ebp - 0x220]
add eax, 0x28
mov ecx, dword [ebp - 0x244]
mov dword [eax], ecx
mov edx, dword [ebp - 0x240]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x23c]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x238]
mov dword [eax + 0xc], edx
jmp 0x40a909
lea eax, [ebp - 0x254]
push eax
mov ecx, dword [ebp - 0x258]
call fcn.004010aa
mov ecx, dword [ebp - 0x258]
call fcn.004013a7
test eax, eax
je 0x40a8b1
mov ecx, dword [ebp - 0x258]
mov dword [ecx + 0x28c], 1
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp - 0x258]
mov ecx, dword [eax + 0x274]
mov dword [edx + 0x1c], ecx
mov edx, dword [ebp - 0x220]
add edx, 0x28
mov eax, dword [ebp - 0x254]
mov dword [edx], eax
mov ecx, dword [ebp - 0x250]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x24c]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x248]
mov dword [edx + 0xc], ecx
mov edx, dword [ebp - 0x220]
mov dword [edx + 4], 1
push 0x23
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 0x258]
mov ecx, dword [eax + 0x228]
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [ebp - 0x220]
cmp dword [edx + 0x24], 4
jne 0x40a973
mov eax, dword [ebp - 0x258]
cmp dword [eax + 0x2b8], 0
je 0x40a973
push 1
mov ecx, dword [ebp - 0x220]
mov edx, dword [ebp - 0x220]
mov eax, dword [ecx + 0x34]
sub eax, dword [edx + 0x2c]
push eax
mov ecx, dword [ebp - 0x220]
mov edx, dword [ebp - 0x220]
mov eax, dword [ecx + 0x30]
sub eax, dword [edx + 0x28]
push eax
mov ecx, dword [ebp - 0x220]
mov edx, dword [ecx + 0x2c]
push edx
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax + 0x28]
push ecx
mov edx, dword [ebp - 0x258]
mov eax, dword [edx + 0x228]
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [ebp - 0x220]
add ecx, 4
push ecx
push str.AlwaysOnTop
mov edx, dword [ebp - 0x21c]
push edx
call fcn.0040126c
add esp, 0xc
test eax, eax
je 0x40a9c4
mov eax, dword [ebp - 0x258]
mov ecx, dword [eax + 0x228]
push ecx
mov edx, dword [ebp - 0x220]
mov eax, dword [edx + 4]
push eax
push 0
push 0x400000
mov ecx, dword [ebp - 0x258]
mov ecx, dword [ecx + 0x270]
call fcn.004010d7
mov edx, dword [ebp - 0x258]
add edx, 0x284
push edx
push 0x447ec0
mov eax, dword [ebp - 0x21c]
push eax
call fcn.0040126c
add esp, 0xc
test eax, eax
je 0x40aa1b
mov ecx, dword [ebp - 0x258]
mov edx, dword [ecx + 0x228]
push edx
mov eax, dword [ebp - 0x258]
mov ecx, dword [eax + 0x284]
push ecx
push 0
push 0x800
mov edx, dword [ebp - 0x258]
mov ecx, dword [edx + 0x270]
call fcn.004010d7
mov eax, dword [ebp - 0x220]
add eax, 0xc
push eax
push str.ShowTitlebar
mov ecx, dword [ebp - 0x21c]
push ecx
call fcn.0040126c
add esp, 0xc
mov edx, dword [ebp - 0x258]
add edx, 0x28c
push edx
push str.LargeIcons
mov eax, dword [ebp - 0x21c]
push eax
call fcn.0040126c
add esp, 0xc
mov ecx, dword [ebp - 0x258]
add ecx, 0x288
push ecx
push str.Locked
mov edx, dword [ebp - 0x21c]
push edx
call fcn.0040126c
add esp, 0xc
mov eax, dword [ebp - 0x220]
push eax
push str.AutoHide
mov ecx, dword [ebp - 0x21c]
push ecx
call fcn.0040126c
add esp, 0xc
mov edx, dword [ebp - 0x220]
add edx, 0x20
push edx
push str.Rows
mov eax, dword [ebp - 0x21c]
push eax
call fcn.0040126c
add esp, 0xc
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0041c275
mov esp, ebp
pop ebp
ret 4