Function at 0x4415e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479b96
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x49c128]
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 edi, edx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push eax
push 0x202
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
je 0x44178c
push str.SetRegKeyValue
mov edx, 4
lea ecx, [ebp - 0xc8]
call fcn.00404b20
add esp, 4
mov esi, eax
mov dword [ebp - 4], 0
mov al, byte [esi + 0x48]
test al, al
je 0x4416a9
mov edx, str.RegOpenKeyEx
mov ecx, esi
call fcn.00416af0
mov al, byte [esi + 0x48]
test al, al
je 0x4416a9
mov edx, edi
mov ecx, esi
call fcn.00416e30
mov al, byte [esi + 0x48]
test al, al
je 0x4416a9
mov edx, str._failed
mov ecx, esi
call fcn.00416af0
cmp byte [esi + 0x48], 0
je 0x4416a9
push ebx
mov ecx, esi
call fcn.00435b20
lea ecx, [ebp - 0x68]
call fcn.004048b0
lea eax, [ebp - 0x68]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - 0x68], vtable.std::ios_base.0
call fcn.00452e26
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x14]
push 0
push eax
push 0
push 0xf023f
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test ebx, ebx
je 0x441789
push str.SetRegKeyValue
mov edx, 4
lea ecx, [ebp - 0xc8]
call fcn.00404b20
add esp, 4
mov esi, eax
mov dword [ebp - 4], 2
mov al, byte [esi + 0x48]
test al, al
je 0x441760
mov edx, str.RegCreateKeyEx
mov ecx, esi
call fcn.00416af0
mov al, byte [esi + 0x48]
test al, al
je 0x441760
mov edx, edi
mov ecx, esi
call fcn.00416e30
mov al, byte [esi + 0x48]
test al, al
je 0x441760
mov edx, str._failed
mov ecx, esi
call fcn.00416af0
cmp byte [esi + 0x48], 0
je 0x441760
push ebx
mov ecx, esi
call fcn.00435b20
lea ecx, [ebp - 0x68]
call fcn.004048b0
lea eax, [ebp - 0x68]
mov dword [ebp - 4], 3
push eax
mov dword [ebp - 0x68], vtable.std::ios_base.0
call fcn.00452e26
add esp, 4
xor al, al
jmp 0x441862
mov esi, dword [ebp - 0x18]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x441791
mov ebx, dword [ebp - 0x1c]
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x441854
push str.SetRegKeyValue
mov edx, 4
lea ecx, [ebp - 0x170]
call fcn.00404b20
add esp, 4
mov esi, eax
mov dword [ebp - 4], 4
mov al, byte [esi + 0x48]
test al, al
je 0x441829
mov edx, str.RegSetValueEx
mov ecx, esi
call fcn.00416af0
mov al, byte [esi + 0x48]
test al, al
je 0x441829
mov edx, ebx
mov ecx, esi
call fcn.00416e30
mov al, byte [esi + 0x48]
test al, al
je 0x441829
mov edx, str._failed
mov ecx, esi
call fcn.00416af0
cmp byte [esi + 0x48], 0
je 0x441829
push edi
mov ecx, esi
call fcn.00435b20
lea ecx, [ebp - 0x110]
call fcn.004048b0
lea eax, [ebp - 0x110]
mov dword [ebp - 4], 5
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00452e26
add esp, 4
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
sete al
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.004553e7
mov esp, ebp
pop ebp
ret