Function at 0x43ea08
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x43ea11
push ecx
xchg dword [ebp - 4], ecx
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004042b8
mov eax, dword [ebp - 8]
call fcn.004042b8
mov eax, dword [ebp - 0xc]
call fcn.004042b8
xor eax, eax
push ebp
push 0x43edba
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x18]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x43edd0
call fcn.004043b0
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404328
mov edx, dword [ebp - 4]
mov eax, 0x43edd0
call fcn.004043b0
mov ecx, eax
lea eax, [ebp - 4]
mov edx, 1
call fcn.00404368
lea eax, [ebp - 0x14]
push eax
mov dl, 0x5c
mov eax, dword [ebp - 4]
call fcn.0043e830
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.004040c8
mov ecx, eax
mov eax, dword [ebp - 4]
pop edx
call fcn.00404328
mov dl, 0x5c
mov eax, dword [ebp - 4]
call fcn.0043e830
push eax
mov eax, dword [ebp - 4]
call fcn.004040c8
mov ecx, eax
lea eax, [ebp - 4]
pop edx
call fcn.00404368
mov eax, dword [ebp - 0xc]
mov edx, 0x43eddc
call fcn.00404214
jne 0x43eb23
lea eax, [ebp - 0x10]
push eax
push 4
push 0
mov eax, dword [ebp - 4]
call fcn.004042c8
push eax
mov eax, dword [ebp - 0x18]
call fcn.0043e0c8
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
call fcn.004042c8
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCreateKeyA
test eax, eax
sete bl
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x43ed77
lea eax, [ebp - 0x10]
push eax
push 2
push 0
mov eax, dword [ebp - 4]
call fcn.004042c8
push eax
mov eax, dword [ebp - 0x18]
call fcn.0043e0c8
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x43ed75
mov eax, dword [ebp - 0xc]
mov edx, 0x43ede8
call fcn.00404214
jne 0x43eb86
mov eax, dword [ebp - 8]
call fcn.004040c8
push eax
mov eax, dword [ebp - 8]
call fcn.004042c8
push eax
push 1
push 0
mov eax, dword [ebp - 0x14]
call fcn.004042c8
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
mov edx, 0x43edf8
call fcn.00404214
jne 0x43ec6e
mov eax, dword [ebp - 8]
call fcn.004040c8
mov edx, dword [ebp - 8]
cmp byte [edx + eax - 1], 0x20
je 0x43ebb8
lea eax, [ebp - 8]
mov edx, 0x43ee0c
call fcn.004040d0
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 8]
call fcn.00403ea0
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
call fcn.004040c8
mov ecx, 3
cdq
idiv ecx
push eax
lea eax, [ebp - 0x20]
mov ecx, 1
mov edx, dword [0x43e9e4]
call fcn.004050c0
add esp, 4
jmp 0x43ec40
lea eax, [ebp - 0x28]
push eax
mov edx, dword [ebp - 0x1c]
mov eax, 0x43ee0c
call fcn.004043b0
mov ecx, eax
dec ecx
xor edx, edx
mov eax, dword [ebp - 0x1c]
call fcn.00404328
mov eax, dword [ebp - 0x28]
call fcn.0043e924
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov byte [edx + ecx], al
mov edx, dword [ebp - 0x1c]
mov eax, 0x43ee0c
call fcn.004043b0
mov ecx, eax
inc ecx
lea eax, [ebp - 0x1c]
mov edx, 1
call fcn.00404368
inc dword [ebp - 0x24]
cmp dword [ebp - 0x1c], 0
jne 0x43ebf1
mov eax, dword [ebp - 0x20]
call fcn.00404f04
push eax
mov eax, dword [ebp - 0x20]
push eax
push 3
push 0
mov eax, dword [ebp - 0x14]
call fcn.004042c8
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
mov edx, 0x43ee18
call fcn.00404214
jne 0x43eca9
mov eax, dword [ebp - 8]
call fcn.00407ca0
mov dword [ebp - 0x24], eax
push 4
lea eax, [ebp - 0x24]
push eax
push 4
push 0
mov eax, dword [ebp - 0x14]
call fcn.004042c8
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
mov edx, 0x43ee2c
call fcn.00404214
jne 0x43ed6a
jmp 0x43ed1f
lea eax, [ebp - 0x2c]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x43ee44
call fcn.004043b0
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404328
push dword [ebp - 0x2c]
push 0x43ee50
lea eax, [ebp - 0x30]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x43ee44
call fcn.004043b0
add eax, 2
push eax
mov eax, dword [ebp - 8]
call fcn.004040c8
mov ecx, eax
mov eax, dword [ebp - 8]
pop edx
call fcn.00404328
push dword [ebp - 0x30]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404188
mov edx, dword [ebp - 8]
mov eax, 0x43ee44
call fcn.004043b0
test eax, eax
jg 0x43ecbe
lea eax, [ebp - 8]
mov edx, 0x43ee5c
call fcn.004040d0
mov eax, dword [ebp - 8]
call fcn.004040c8
push eax
mov eax, dword [ebp - 8]
call fcn.004042c8
push eax
push 7
push 0
mov eax, dword [ebp - 0x14]
call fcn.004042c8
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete bl
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x43ed77
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43edc1
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00403e2c
lea eax, [ebp - 0x20]
mov edx, dword [0x43e9e4]
call fcn.004050cc
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00403e2c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403e2c
ret