Function at 0x405680
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436bf6
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x446f30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x88], ecx
mov dword [ebp - 4], 1
push 0
push 0x439df8
mov ecx, dword [ebp - 0x88]
add ecx, 0x2c
call fcn.00405dc0
cmp eax, 0xffffffff
jne 0x405a56
mov dword [ebp - 0x14], 0x12c
mov eax, dword [ebp - 0x88]
movzx ecx, byte [eax + 1]
test ecx, ecx
jne 0x405898
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x88]
add eax, 0x20
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov ecx, dword [ebp - 0x88]
add ecx, 0x2c
call fcn.00404780
push eax
mov ecx, dword [ebp - 0x88]
mov edx, dword [ecx + 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40588e
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x40577d
mov byte [ebp - 0x61], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00404760
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.00404760
mov al, byte [ebp - 0x61]
jmp 0x405af0
push 0x439e08
lea ecx, [ebp - 0x38]
call fcn.004046e0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push 0x142
lea ecx, [ebp - 0x38]
call fcn.00404780
push eax
call fcn.0041a027
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 4
jne 0x405847
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x68], esp
lea edx, [ebp + 0x24]
push edx
call fcn.00404720
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x90], eax
mov byte [ebp - 4], 3
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x6c], esp
lea edx, [ebp + 8]
push edx
call fcn.00404720
mov dword [ebp - 0x94], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x88]
call fcn.00405680
mov byte [ebp - 0x95], al
mov al, byte [ebp - 0x95]
mov byte [ebp - 0x62], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.00404760
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00404760
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.00404760
mov al, byte [ebp - 0x62]
jmp 0x405af0
cmp dword [ebp - 0x3c], 3
jne 0x405880
mov byte [ebp - 0x6d], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.00404760
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00404760
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.00404760
mov al, byte [ebp - 0x6d]
jmp 0x405af0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.00404760
jmp 0x405898
mov ecx, dword [ebp - 0x88]
mov byte [ecx + 1], 1
lea ecx, [ebp + 0x24]
call fcn.00403ec0
add eax, 1
push eax
lea ecx, [ebp + 0x24]
call fcn.00404780
push eax
push 1
push 0
lea ecx, [ebp + 8]
call fcn.00404780
push eax
mov edx, dword [ebp - 0x88]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x405a2d
push 0
push 0
lea ecx, [ebp - 0x40]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x40591e
mov byte [ebp - 0x6e], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00404760
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.00404760
mov al, byte [ebp - 0x6e]
jmp 0x405af0
push 0x439e20
lea ecx, [ebp - 0x5c]
call fcn.004046e0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push 0x142
lea ecx, [ebp - 0x5c]
call fcn.00404780
push eax
call fcn.0041a027
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 4
jne 0x4059e8
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x74], esp
lea eax, [ebp + 0x24]
push eax
call fcn.00404720
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], ecx
mov byte [ebp - 4], 5
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x78], esp
lea edx, [ebp + 8]
push edx
call fcn.00404720
mov dword [ebp - 0xa4], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x88]
call fcn.00405680
mov byte [ebp - 0xa5], al
mov al, byte [ebp - 0xa5]
mov byte [ebp - 0x6f], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.00404760
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00404760
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.00404760
mov al, byte [ebp - 0x6f]
jmp 0x405af0
cmp dword [ebp - 0x60], 3
jne 0x405a21
mov byte [ebp - 0x79], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.00404760
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00404760
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.00404760
mov al, byte [ebp - 0x79]
jmp 0x405af0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.00404760
mov byte [ebp - 0x7a], 1
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00404760
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.00404760
mov al, byte [ebp - 0x7a]
jmp 0x405af0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x80], esp
lea edx, [ebp + 0x24]
push edx
call fcn.00404720
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xb0], eax
mov byte [ebp - 4], 6
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x84], esp
lea edx, [ebp + 8]
push edx
call fcn.00404720
mov dword [ebp - 0xb4], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x88]
call fcn.00405c70
mov byte [ebp - 0xb5], al
mov al, byte [ebp - 0xb5]
mov byte [ebp - 0x7b], al
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00404760
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.00404760
mov al, byte [ebp - 0x7b]
jmp 0x405af0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421364
mov esp, ebp
pop ebp
ret 0x38