Function at 0x53f5b4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xf
push 0
push 0
dec ecx
jne 0x53f5bc
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004076f8
mov eax, dword [ebp - 8]
call fcn.004076f8
xor eax, eax
push ebp
push 0x53fa31
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x53fa50
push dword [ebp - 4]
push 0x53fa9c
push dword [ebp - 8]
push 0x53fab8
lea eax, [ebp - 0x40]
mov edx, 5
call fcn.004084f0
mov eax, dword [ebp - 0x40]
call fcn.00535d98
mov byte [ebp - 9], 0
mov dl, 1
mov eax, dword [0x45b72c]
call fcn.0045c878
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x53f9e7
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x53f9a2
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0x18]
call fcn.0045c960
mov edx, 0x53fac8
mov eax, dword [ebp - 0x18]
call fcn.0045dd8c
test al, al
je 0x53f98e
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x18], 0x20019
mov edx, 0x53fac8
mov eax, dword [ebp - 0x18]
call fcn.0045cbec
test al, al
je 0x53f967
mov edx, 0x53fb3c
mov eax, dword [ebp - 0x18]
call fcn.0045da00
test al, al
je 0x53f953
mov edx, 0x53fb3c
mov eax, dword [ebp - 0x18]
call fcn.0045d3bc
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
fdiv dword [0x53fb48]
call fcn.004049f4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
mov ecx, 1
mov edx, dword [0x53f584]
call fcn.004095a0
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, 0x53fb3c
mov eax, dword [ebp - 0x18]
call fcn.0045d888
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x53f72f
push 0x53fb58
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x14]
call fcn.0041f1e8
push dword [ebp - 0x48]
push 0x53fb9c
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 0x10]
call fcn.0041f1e8
push dword [ebp - 0x4c]
lea eax, [ebp - 0x44]
mov edx, 4
call fcn.004084f0
mov eax, dword [ebp - 0x44]
call fcn.00535d98
mov eax, dword [ebp - 0x24]
dec eax
test eax, eax
jl 0x53f78b
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x24]
dec eax
cmp eax, dword [ebp - 0x20]
je 0x53f766
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
cmp word [eax + edx*2], 0
jne 0x53f766
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
cmp word [eax + edx*2 + 2], 0
je 0x53f78b
lea eax, [ebp - 0x50]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov dx, word [edx + ecx*2]
call fcn.0040823c
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x28]
call fcn.00408410
inc dword [ebp - 0x20]
dec dword [ebp - 0x34]
jne 0x53f742
cmp dword [ebp - 8], 0
jne 0x53f7a4
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.0053f440
mov byte [ebp - 0x2d], al
jmp 0x53f7b9
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0053f2e8
mov byte [ebp - 0x2d], al
mov eax, dword [ebp - 0x18]
call fcn.0045c930
cmp byte [ebp - 0x2d], 0
je 0x53f998
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x18], 0x20006
xor ecx, ecx
mov edx, 0x53fac8
mov eax, dword [ebp - 0x18]
call fcn.0045cab8
test al, al
je 0x53f92c
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x53f803
mov eax, dword [ebp - 0x38]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
add eax, 2
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
add eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x800
jle 0x53f85a
push 0x53fbb4
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x10]
call fcn.0041f1e8
push dword [ebp - 0x58]
push 0x53fbf0
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x5c]
call fcn.00423a20
push dword [ebp - 0x5c]
lea eax, [ebp - 0x54]
mov edx, 4
call fcn.004084f0
mov eax, dword [ebp - 0x54]
call fcn.00535d98
mov eax, dword [ebp - 0x24]
add eax, 3
push eax
lea eax, [ebp - 0x1c]
mov ecx, 1
mov edx, dword [0x53f584]
call fcn.004095a0
add esp, 4
mov eax, dword [ebp - 0x24]
sub eax, 3
test eax, eax
jl 0x53f8a8
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
mov ax, word [eax + edx*2]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov word [edx + ecx*2], ax
inc dword [ebp - 0x20]
dec dword [ebp - 0x34]
jne 0x53f88c
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov word [eax + edx*2 - 2], 0
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov word [eax + edx*2 - 4], 0
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
mov ecx, 1
mov edx, dword [0x53f584]
call fcn.004095a0
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 7
push 0
push 0x53fbf8
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x53f922
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x64]
call fcn.00423a20
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x60]
mov edx, 0x53fc10
call fcn.00408468
mov eax, dword [ebp - 0x60]
call fcn.00535d98
mov eax, dword [ebp - 0x18]
call fcn.0045c930
jmp 0x53f998
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x6c]
call fcn.00423a20
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
mov edx, 0x53fc44
call fcn.00408468
mov eax, dword [ebp - 0x68]
call fcn.00535d98
jmp 0x53f998
mov eax, 0x53fc80
call fcn.00535d98
mov eax, dword [ebp - 0x18]
call fcn.0045c930
jmp 0x53f998
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x74]
call fcn.00423a20
mov ecx, dword [ebp - 0x74]
lea eax, [ebp - 0x70]
mov edx, 0x53fd2c
call fcn.00408468
mov eax, dword [ebp - 0x70]
call fcn.00535d98
jmp 0x53f998
mov eax, 0x53fd78
call fcn.00535d98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53f9d1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53f9ee
mov eax, dword [ebp - 0x18]
call fcn.0040598c
ret