Function at 0x471c9c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x471ca5
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.0040555c
mov eax, dword [ebp - 8]
call fcn.0040555c
mov eax, dword [ebp - 0xc]
call fcn.0040555c
xor eax, eax
push ebp
push 0x472158
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, 0x472174
call fcn.00405f58
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00405c40
mov edx, dword [ebp - 4]
mov eax, 0x472174
call fcn.00405f58
mov ecx, eax
lea eax, [ebp - 4]
mov edx, 1
call fcn.00405d10
mov eax, dword [ebp - 4]
test eax, eax
je 0x471d3d
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x471d3d
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00404f08
mov esi, eax
test esi, esi
je 0x471d48
sub esi, 4
mov esi, dword [esi]
lea eax, [ebp - 0x10]
push eax
mov dx, 0x5c
mov eax, dword [ebp - 4]
call fcn.00471a44
mov edx, eax
inc edx
mov ecx, esi
mov eax, dword [ebp - 4]
call fcn.00405c40
mov dx, 0x5c
mov eax, dword [ebp - 4]
call fcn.00471a44
mov esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x471d90
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x471d90
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00404f08
test eax, eax
je 0x471d99
sub eax, 4
mov eax, dword [eax]
lea edx, [ebp - 4]
mov ecx, eax
mov eax, esi
xchg edx, eax
call fcn.00405d10
mov eax, dword [ebp - 0xc]
mov edx, 0x472184
call fcn.00405c38
jne 0x471dfd
lea eax, [ebp - 0x20]
push eax
push 4
push 0
mov eax, dword [ebp - 4]
call fcn.00405600
push eax
mov eax, dword [ebp - 0x14]
call fcn.00471178
push eax
call sub.advapi32.dll_RegOpenKeyExW_1
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00405600
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegCreateKeyW
test eax, eax
sete bl
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x472122
lea eax, [ebp - 0x20]
push eax
push 2
push 0
mov eax, dword [ebp - 4]
call fcn.00405600
push eax
mov eax, dword [ebp - 0x14]
call fcn.00471178
push eax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x472120
mov eax, dword [ebp - 0xc]
mov edx, 0x472198
call fcn.00405c38
jne 0x471e89
lea eax, [ebp - 8]
call fcn.00405f0c
mov ebx, eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x471e5a
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x471e5a
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00404f08
mov esi, eax
test esi, esi
je 0x471e65
sub esi, 4
mov esi, dword [esi]
inc esi
mov eax, esi
add eax, eax
push eax
push ebx
push 1
push 0
mov eax, dword [ebp - 0x10]
call fcn.00405600
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
sete al
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov edx, 0x4721b4
call fcn.00405c38
jne 0x471fce
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x471ebb
mov eax, ebx
sub eax, 0xa
cmp word [eax], 2
je 0x471ebb
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00404f08
mov ebx, eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x471ed8
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x471ed8
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00404f08
test eax, eax
je 0x471ee1
sub eax, 4
mov eax, dword [eax]
cmp word [ebx + eax*2 - 2], 0x20
je 0x471ef6
lea eax, [ebp - 8]
mov edx, 0x4721d8
call fcn.00405940
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 8]
call fcn.004055c8
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x471f23
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x471f23
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x18]
call fcn.00404f08
mov ebx, eax
test ebx, ebx
je 0x471f2e
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 [0x471c78]
call fcn.00406af4
add esp, 4
jmp 0x471fa0
lea eax, [ebp - 0x28]
push eax
mov edx, dword [ebp - 0x18]
mov eax, 0x4721d8
call fcn.00405f58
mov ecx, eax
dec ecx
xor edx, edx
mov eax, dword [ebp - 0x18]
call fcn.00405c40
mov eax, dword [ebp - 0x28]
call fcn.00471b7c
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
mov byte [edx + ecx], al
mov edx, dword [ebp - 0x18]
mov eax, 0x4721d8
call fcn.00405f58
mov ecx, eax
inc ecx
lea eax, [ebp - 0x18]
mov edx, 1
call fcn.00405d10
inc dword [ebp - 0x24]
cmp dword [ebp - 0x18], 0
jne 0x471f51
mov eax, dword [ebp - 0x1c]
call fcn.0040692c
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 3
push 0
mov eax, dword [ebp - 0x10]
call fcn.00405600
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
mov edx, 0x4721e8
call fcn.00405c38
jne 0x472009
mov eax, dword [ebp - 8]
call fcn.0047c0e0
mov dword [ebp - 0x24], eax
push 4
lea eax, [ebp - 0x24]
push eax
push 4
push 0
mov eax, dword [ebp - 0x10]
call fcn.00405600
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
mov edx, 0x472208
call fcn.00405c38
jne 0x472115
jmp 0x4720a4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x472040
mov eax, ebx
sub eax, 0xa
cmp word [eax], 2
je 0x472040
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00404f08
mov ebx, eax
mov esi, ebx
test esi, esi
je 0x47204b
sub esi, 4
mov esi, dword [esi]
lea eax, [ebp - 0x2c]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x472230
call fcn.00405f58
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00405c40
push dword [ebp - 0x2c]
push 0x472244
lea eax, [ebp - 0x30]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x472230
call fcn.00405f58
mov edx, eax
add edx, 2
mov ecx, esi
mov eax, dword [ebp - 8]
call fcn.00405c40
push dword [ebp - 0x30]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00405a90
mov edx, dword [ebp - 8]
mov eax, 0x472230
call fcn.00405f58
test eax, eax
jg 0x472021
lea eax, [ebp - 8]
mov edx, 0x472254
call fcn.00405940
mov eax, dword [ebp - 8]
test eax, eax
je 0x4720e3
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4720e3
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00404f08
mov ebx, eax
test ebx, ebx
je 0x4720ee
sub ebx, 4
mov ebx, dword [ebx]
inc ebx
mov eax, ebx
add eax, eax
push eax
lea eax, [ebp - 8]
push eax
push 7
push 0
mov eax, dword [ebp - 0x10]
call fcn.00405600
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
sete al
mov ebx, eax
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x472122
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47215f
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.0040556c
lea eax, [ebp - 0x1c]
mov edx, dword [0x471c78]
call fcn.00406b00
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.0040556c
ret