Function at 0x454a34
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x454a3d
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.00405754
mov eax, dword [ebp - 8]
call fcn.00405754
mov eax, dword [ebp - 0xc]
call fcn.00405754
xor eax, eax
push ebp
push 0x454dfb
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, 0x454e14
call fcn.00405854
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004057cc
mov edx, dword [ebp - 4]
mov eax, 0x454e14
call fcn.00405854
mov ecx, eax
lea eax, [ebp - 4]
mov edx, 1
call fcn.0040580c
mov esi, dword [ebp - 4]
test esi, esi
je 0x454ac4
sub esi, 4
mov esi, dword [esi]
lea eax, [ebp - 0x10]
push eax
mov dl, 0x5c
mov eax, dword [ebp - 4]
call fcn.00454850
mov edx, eax
inc edx
mov ecx, esi
mov eax, dword [ebp - 4]
call fcn.004057cc
mov dl, 0x5c
mov eax, dword [ebp - 4]
call fcn.00454850
mov edx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x454af7
sub eax, 4
mov eax, dword [eax]
lea ecx, [ebp - 4]
xchg ecx, eax
call fcn.0040580c
mov eax, dword [ebp - 0xc]
mov edx, 0x454e20
call fcn.004056fc
jne 0x454b57
lea eax, [ebp - 0x20]
push eax
push 4
push 0
mov eax, dword [ebp - 4]
call fcn.00405764
push eax
mov eax, dword [ebp - 0x14]
call fcn.00453c14
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00405764
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 0x454dc5
lea eax, [ebp - 0x20]
push eax
push 2
push 0
mov eax, dword [ebp - 4]
call fcn.00405764
push eax
mov eax, dword [ebp - 0x14]
call fcn.00453c14
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x454dc3
mov eax, dword [ebp - 0xc]
mov edx, 0x454e2c
call fcn.004056fc
jne 0x454bc0
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x454b99
sub ebx, 4
mov ebx, dword [ebx]
push ebx
mov eax, dword [ebp - 8]
call fcn.00405764
push eax
push 1
push 0
mov eax, dword [ebp - 0x10]
call fcn.00405764
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, 0x454e3c
call fcn.004056fc
jne 0x454cb2
mov eax, dword [ebp - 8]
test eax, eax
je 0x454bdf
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 8]
cmp byte [edx + eax - 1], 0x20
je 0x454bf6
lea eax, [ebp - 8]
mov edx, 0x454e50
call fcn.004055a0
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 8]
call fcn.00405350
xor eax, eax
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x454c12
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 [0x454a08]
call fcn.00406900
add esp, 4
jmp 0x454c84
lea eax, [ebp - 0x28]
push eax
mov edx, dword [ebp - 0x18]
mov eax, 0x454e50
call fcn.00405854
mov ecx, eax
dec ecx
xor edx, edx
mov eax, dword [ebp - 0x18]
call fcn.004057cc
mov eax, dword [ebp - 0x28]
call fcn.0045494c
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
mov byte [edx + ecx], al
mov edx, dword [ebp - 0x18]
mov eax, 0x454e50
call fcn.00405854
mov ecx, eax
inc ecx
lea eax, [ebp - 0x18]
mov edx, 1
call fcn.0040580c
inc dword [ebp - 0x24]
cmp dword [ebp - 0x18], 0
jne 0x454c35
mov eax, dword [ebp - 0x1c]
call fcn.00406744
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 3
push 0
mov eax, dword [ebp - 0x10]
call fcn.00405764
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, 0x454e5c
call fcn.004056fc
jne 0x454ced
mov eax, dword [ebp - 8]
call fcn.00409704
mov dword [ebp - 0x24], eax
push 4
lea eax, [ebp - 0x24]
push eax
push 4
push 0
mov eax, dword [ebp - 0x10]
call fcn.00405764
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, 0x454e70
call fcn.004056fc
jne 0x454db8
jmp 0x454d67
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x454d0e
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 0x2c]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x454e88
call fcn.00405854
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.004057cc
push dword [ebp - 0x2c]
push 0x454e94
lea eax, [ebp - 0x30]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x454e88
call fcn.00405854
mov edx, eax
add edx, 2
mov ecx, ebx
mov eax, dword [ebp - 8]
call fcn.004057cc
push dword [ebp - 0x30]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00405668
mov edx, dword [ebp - 8]
mov eax, 0x454e88
call fcn.00405854
test eax, eax
jg 0x454d02
lea eax, [ebp - 8]
mov edx, 0x454ea0
call fcn.004055a0
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x454d91
sub ebx, 4
mov ebx, dword [ebx]
push ebx
mov eax, dword [ebp - 8]
call fcn.00405764
push eax
push 7
push 0
mov eax, dword [ebp - 0x10]
call fcn.00405764
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 0x454dc5
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454e02
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.004052dc
lea eax, [ebp - 0x1c]
mov edx, dword [0x454a08]
call fcn.0040690c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004052dc
ret