Function at 0x405780
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6896b8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x71a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x4f4]
mov edi, dword [ebp + 8]
test eax, eax
je 0x4057d0
push eax
push dword [esi + 0x4f8]
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [esi + 0x4f4], 0
lea ecx, [esi + 0x414]
call fcn.0041e940
mov dword [ebp - 0x64], vtable.win32only::CRegistry.0
mov dword [ebp - 0x60], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0x26
push 0x6aefc0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004023e0
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x405826
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x60], 0
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x60]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edx, dword [ebp - 0x14]
test eax, eax
sete al
mov byte [ebp - 0x55], al
cmp edx, 0x10
jb 0x405871
mov ecx, dword [ebp - 0x28]
inc edx
push 1
call fcn.004020c0
mov al, byte [ebp - 0x55]
add esp, 4
test al, al
je 0x4059c6
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], 0x2c
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowPlacement]
test eax, eax
je 0x4059c6
push 0x6aefe8
lea ecx, [ebp - 0x28]
call fcn.004022b0
mov ecx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x38]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x5c], eax
test ecx, ecx
je 0x4058cc
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x5c]
push 4
push edx
push 4
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push ecx
call edi
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4058e2
mov ecx, dword [ebp - 0x28]
inc edx
push 1
call fcn.004020c0
add esp, 4
push 0x6aeff0
lea ecx, [ebp - 0x28]
call fcn.004022b0
mov ecx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x5c], eax
test ecx, ecx
je 0x405915
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x5c]
push 4
push edx
push 4
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push ecx
call edi
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x40592b
mov ecx, dword [ebp - 0x28]
inc edx
push 1
call fcn.004020c0
add esp, 4
push 0x6aeff8
lea ecx, [ebp - 0x28]
call fcn.004022b0
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x5c], eax
test ecx, ecx
je 0x405961
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x5c]
push 4
push edx
push 4
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push ecx
call edi
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x405977
mov ecx, dword [ebp - 0x28]
inc edx
push 1
call fcn.004020c0
add esp, 4
push 0x6af004
lea ecx, [ebp - 0x28]
call fcn.004022b0
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x5c], eax
test ecx, ecx
je 0x4059b0
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x5c]
push 4
push edx
push 4
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push ecx
call edi
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4059c9
mov ecx, dword [ebp - 0x28]
inc edx
push 1
call fcn.004020c0
add esp, 4
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x64], vtable.win32only::CRegistry.0
test ecx, ecx
je 0x4059db
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, esi
call fcn.0041ddf0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0066bc45
mov esp, ebp
pop ebp
ret 0xc