Function at 0x4142c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563841
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x5f7448]
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 dword [ebp - 0x64], ecx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 1
push 9
push str.Software_
lea ecx, [ebp - 0x28]
call fcn.004059b0
push 6
push 0x58133c
lea ecx, [ebp - 0x28]
call fcn.00405750
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x5c]
push ecx
push 0xf003f
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4144a6
lea eax, [ebp - 0x5c]
push eax
push 4
push 0
push str.software
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x414422
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00425090
add esp, 8
mov esi, eax
mov byte [ebp - 4], 2
push str.Failed_to_open_software_key_with_error
lea ecx, [ebp - 0x58]
call fcn.00405090
mov byte [ebp - 4], 3
push esi
push eax
push edi
call fcn.00406fc0
add esp, 0xc
mov dword [ebp - 0x60], 1
mov byte [ebp - 4], 2
cmp dword [ebp - 0x44], 0x10
jb 0x4143e4
push dword [ebp - 0x58]
call fcn.004ad196
add esp, 4
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x2c], 0x10
jb 0x41440b
push dword [ebp - 0x40]
call fcn.004ad196
add esp, 4
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jmp 0x41457c
lea eax, [ebp - 0x68]
push eax
push 0x58133c
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x41447d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00425090
add esp, 8
mov esi, eax
mov byte [ebp - 4], 4
push str.Failed_to_create_software_key_with_error
lea ecx, [ebp - 0x40]
call fcn.00405090
mov byte [ebp - 4], 5
push esi
push eax
push edi
call fcn.00406fc0
add esp, 0xc
mov dword [ebp - 0x60], 1
mov byte [ebp - 4], 4
jmp 0x414532
push dword [ebp - 0x5c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x68]
call esi
mov ecx, dword [ebp - 0x64]
push ebx
push dword [ebp - 0x6c]
push edi
call fcn.004142c0
mov dword [ebp - 0x60], 1
jmp 0x41457c
cmp dword [ebx + 0x14], 0x10
mov eax, dword [ebx + 0x10]
jb 0x4144b1
mov ebx, dword [ebx]
cmp dword [esi + 0x14], 0x10
jb 0x4144b9
mov esi, dword [esi]
push eax
push ebx
push 1
push 0
push esi
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x5c]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4144f8
push 0x5876d8
mov ecx, edi
call fcn.00405090
mov dword [ebp - 0x60], 1
jmp 0x41457c
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.00425090
add esp, 8
mov esi, eax
mov byte [ebp - 4], 6
push str.Failed_to_set_value_with_error
lea ecx, [ebp - 0x40]
call fcn.00405090
mov byte [ebp - 4], 7
push esi
push eax
push edi
call fcn.00406fc0
add esp, 0xc
mov dword [ebp - 0x60], 1
mov byte [ebp - 4], 6
cmp dword [ebp - 0x2c], 0x10
jb 0x414543
push dword [ebp - 0x40]
call fcn.004ad196
add esp, 4
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x44], 0x10
jb 0x41456a
push dword [ebp - 0x58]
call fcn.004ad196
add esp, 4
mov byte [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
jb 0x414591
push dword [ebp - 0x28]
call fcn.004ad196
add esp, 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov eax, edi
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.004adbd4
mov esp, ebp
pop ebp
ret 0xc