Function at 0x43fa5c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x43fa65
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d4c
mov eax, dword [ebp - 8]
call fcn.00404d4c
mov eax, dword [ebp - 0xc]
call fcn.00404d4c
xor eax, eax
push ebp
push 0x43fe23
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x43fe3c
call fcn.00404e4c
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404dc4
mov edx, dword [ebp - 4]
mov eax, 0x43fe3c
call fcn.00404e4c
mov ecx, eax
lea eax, [ebp - 4]
mov edx, 1
call fcn.00404e04
mov esi, dword [ebp - 4]
test esi, esi
je 0x43faec
sub esi, 4
mov esi, dword [esi]
lea eax, [ebp - 0x10]
push eax
mov dl, 0x5c
mov eax, dword [ebp - 4]
call fcn.0043f880
mov edx, eax
inc edx
mov ecx, esi
mov eax, dword [ebp - 4]
call fcn.00404dc4
mov dl, 0x5c
mov eax, dword [ebp - 4]
call fcn.0043f880
mov edx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x43fb1f
sub eax, 4
mov eax, dword [eax]
lea ecx, [ebp - 4]
xchg ecx, eax
call fcn.00404e04
mov eax, dword [ebp - 0xc]
mov edx, 0x43fe48
call fcn.00404cf4
jne 0x43fb7f
lea eax, [ebp - 0x20]
push eax
push 4
push 0
mov eax, dword [ebp - 4]
call fcn.00404d5c
push eax
mov eax, dword [ebp - 0x14]
call fcn.0043f118
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404d5c
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegCreateKeyA
test eax, eax
sete bl
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x43fded
lea eax, [ebp - 0x20]
push eax
push 2
push 0
mov eax, dword [ebp - 4]
call fcn.00404d5c
push eax
mov eax, dword [ebp - 0x14]
call fcn.0043f118
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x43fdeb
mov eax, dword [ebp - 0xc]
mov edx, 0x43fe54
call fcn.00404cf4
jne 0x43fbe8
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x43fbc1
sub ebx, 4
mov ebx, dword [ebx]
push ebx
mov eax, dword [ebp - 8]
call fcn.00404d5c
push eax
push 1
push 0
mov eax, dword [ebp - 0x10]
call fcn.00404d5c
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete al
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov edx, 0x43fe64
call fcn.00404cf4
jne 0x43fcda
mov eax, dword [ebp - 8]
test eax, eax
je 0x43fc07
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 8]
cmp byte [edx + eax - 1], 0x20
je 0x43fc1e
lea eax, [ebp - 8]
mov edx, 0x43fe78
call fcn.00404b98
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 8]
call fcn.00404964
xor eax, eax
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x43fc3a
sub ebx, 4
mov ebx, dword [ebx]
mov eax, ebx
mov ecx, 3
cdq
idiv ecx
push eax
lea eax, [ebp - 0x1c]
mov ecx, 1
mov edx, dword [0x43fa38]
call fcn.00405bac
add esp, 4
jmp 0x43fcac
lea eax, [ebp - 0x28]
push eax
mov edx, dword [ebp - 0x18]
mov eax, 0x43fe78
call fcn.00404e4c
mov ecx, eax
dec ecx
xor edx, edx
mov eax, dword [ebp - 0x18]
call fcn.00404dc4
mov eax, dword [ebp - 0x28]
call fcn.0043f97c
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
mov byte [edx + ecx], al
mov edx, dword [ebp - 0x18]
mov eax, 0x43fe78
call fcn.00404e4c
mov ecx, eax
inc ecx
lea eax, [ebp - 0x18]
mov edx, 1
call fcn.00404e04
inc dword [ebp - 0x24]
cmp dword [ebp - 0x18], 0
jne 0x43fc5d
mov eax, dword [ebp - 0x1c]
call fcn.004059f0
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 3
push 0
mov eax, dword [ebp - 0x10]
call fcn.00404d5c
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
mov edx, 0x43fe84
call fcn.00404cf4
jne 0x43fd15
mov eax, dword [ebp - 8]
call fcn.004086d4
mov dword [ebp - 0x24], eax
push 4
lea eax, [ebp - 0x24]
push eax
push 4
push 0
mov eax, dword [ebp - 0x10]
call fcn.00404d5c
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
mov edx, 0x43fe98
call fcn.00404cf4
jne 0x43fde0
jmp 0x43fd8f
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x43fd36
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 0x2c]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x43feb0
call fcn.00404e4c
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404dc4
push dword [ebp - 0x2c]
push 0x43febc
lea eax, [ebp - 0x30]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x43feb0
call fcn.00404e4c
mov edx, eax
add edx, 2
mov ecx, ebx
mov eax, dword [ebp - 8]
call fcn.00404dc4
push dword [ebp - 0x30]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404c60
mov edx, dword [ebp - 8]
mov eax, 0x43feb0
call fcn.00404e4c
test eax, eax
jg 0x43fd2a
lea eax, [ebp - 8]
mov edx, 0x43fec8
call fcn.00404b98
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x43fdb9
sub ebx, 4
mov ebx, dword [ebx]
push ebx
mov eax, dword [ebp - 8]
call fcn.00404d5c
push eax
push 7
push 0
mov eax, dword [ebp - 0x10]
call fcn.00404d5c
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete al
mov ebx, eax
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x43fded
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43fe2a
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.004048f0
lea eax, [ebp - 0x1c]
mov edx, dword [0x43fa38]
call fcn.00405bb8
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004048f0
ret