Function at 0x5fce6c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.004058f8
xor eax, eax
push ebp
push 0x5fd16e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
xor eax, eax
push ebp
push 0x5fcecb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x494264]
call fcn.004952cc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5fced7
test ebx, ebx
je 0x5fd14b
mov dl, 1
mov eax, dword [0x41ef44]
call fcn.00403c40
mov esi, eax
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x6c]
mov eax, ebx
call fcn.00403c70
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x5fd144
mov byte [ebp - 0x21], 0
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x5fd131
inc ebx
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, 3
mov edx, dword [ebp - 0x10]
mov eax, 0x5fd188
call fcn.0044047c
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x20]
sub ecx, 3
mov edx, 3
mov eax, dword [ebp - 0x10]
call fcn.004050ec
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404e8c
mov ecx, eax
sub ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x20]
inc edx
mov eax, dword [ebp - 0x10]
call fcn.004050ec
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
add eax, 0xffffffbc
cmp eax, 0xf
ja case.0x5fcf98.68
mov al, byte [eax + 0x5fcf9f]
jmp dword [eax*4 + 0x5fcfaf]
cmp byte [ebp - 0x21], 1
jne 0x5fcfd6
mov eax, dword [ebp - 0x28]
push eax
call sub.advapi32.dll_RegCloseKey_1
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0x20006
push 0
push 0
push 0
mov eax, dword [ebp - 0x18]
call fcn.0040508c
push eax
mov eax, dword [ebp - 0x14]
call fcn.0040a71c
push eax
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
sete byte [ebp - 0x21]
cmp byte [ebp - 0x21], 1
jne case.0x5fcf98.68
mov edx, dword [ebp - 0x18]
mov eax, 0x5fd188
call fcn.004051d0
mov edi, eax
inc edi
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne case.0x5fcf98.68
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x18]
call fcn.00404e8c
mov ecx, eax
mov eax, edi
dec eax
sub ecx, eax
mov edx, edi
mov eax, dword [ebp - 0x18]
call fcn.004050ec
jmp case.0x5fcf98.68
mov eax, dword [ebp - 0x18]
call fcn.0040a6a8
mov dword [ebp - 0x20], eax
push 4
lea eax, [ebp - 0x20]
push eax
push 4
push 0
mov eax, dword [ebp - 0x14]
call fcn.0040508c
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.advapi32.dll_RegSetValueExA
jmp case.0x5fcf98.68
cmp dword [ebp - 0x18], 0
jne 0x5fd08f
lea eax, [ebp - 0x18]
mov edx, 0x5fd194
call fcn.00404c38
mov eax, dword [ebp - 0x18]
call fcn.00404e8c
push eax
lea eax, [ebp - 0x18]
call fcn.004050e4
push eax
push 1
push 0
mov eax, dword [ebp - 0x14]
call fcn.0040508c
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.advapi32.dll_RegSetValueExA
jmp case.0x5fcf98.68
mov eax, dword [ebp - 0x18]
call fcn.00404e8c
sar eax, 1
jns 0x5fd0c8
adc eax, 0
call fcn.00402b48
mov edi, eax
mov edx, edi
mov eax, dword [ebp - 0x18]
call fcn.005d7250
mov eax, dword [ebp - 0x18]
call fcn.00404e8c
sar eax, 1
jns 0x5fd0e8
adc eax, 0
push eax
push edi
push 3
push 0
mov eax, dword [ebp - 0x14]
call fcn.0040508c
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 0x18]
call fcn.00404e8c
mov edx, eax
sar edx, 1
jns 0x5fd111
adc edx, 0
mov eax, edi
call fcn.00402b78
jmp case.0x5fcf98.68
mov eax, dword [ebp - 0x28]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov byte [ebp - 0x21], 0
inc dword [ebp - 0x1c]
dec ebx
jne 0x5fcf2a
cmp byte [ebp - 0x21], 1
jne 0x5fd140
mov eax, dword [ebp - 0x28]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov byte [ebp - 9], 1
mov eax, esi
call fcn.00403c70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5fd175
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404bc4
lea eax, [ebp - 4]
call fcn.004052d8
ret