Function at 0x53f5b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xf
push 0
push 0
dec ecx
jne 0x53f5b8
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 0x53fa2d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x53fa4c
push dword [ebp - 4]
push 0x53fa98
push dword [ebp - 8]
push 0x53fab4
lea eax, [ebp - 0x40]
mov edx, 5
call fcn.004084f0
mov eax, dword [ebp - 0x40]
call fcn.00535d94
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 0x53f9e3
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x53f99e
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0x18]
call fcn.0045c960
mov edx, 0x53fac4
mov eax, dword [ebp - 0x18]
call fcn.0045dd8c
test al, al
je 0x53f98a
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x18], 0x20019
mov edx, 0x53fac4
mov eax, dword [ebp - 0x18]
call fcn.0045cbec
test al, al
je 0x53f963
mov edx, 0x53fb38
mov eax, dword [ebp - 0x18]
call fcn.0045da00
test al, al
je 0x53f94f
mov edx, 0x53fb38
mov eax, dword [ebp - 0x18]
call fcn.0045d3bc
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
fdiv dword [0x53fb44]
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 [0x53f580]
call fcn.004095a0
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, 0x53fb38
mov eax, dword [ebp - 0x18]
call fcn.0045d888
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x53f72b
push 0x53fb54
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x14]
call fcn.0041f1e8
push dword [ebp - 0x48]
push 0x53fb98
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.00535d94
mov eax, dword [ebp - 0x24]
dec eax
test eax, eax
jl 0x53f787
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 0x53f762
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
cmp word [eax + edx*2], 0
jne 0x53f762
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
cmp word [eax + edx*2 + 2], 0
je 0x53f787
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 0x53f73e
cmp dword [ebp - 8], 0
jne 0x53f7a0
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.0053f43c
mov byte [ebp - 0x2d], al
jmp 0x53f7b5
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0053f2e4
mov byte [ebp - 0x2d], al
mov eax, dword [ebp - 0x18]
call fcn.0045c930
cmp byte [ebp - 0x2d], 0
je 0x53f994
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x18], 0x20006
xor ecx, ecx
mov edx, 0x53fac4
mov eax, dword [ebp - 0x18]
call fcn.0045cab8
test al, al
je 0x53f928
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x53f7ff
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 0x53f856
push 0x53fbb0
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x10]
call fcn.0041f1e8
push dword [ebp - 0x58]
push 0x53fbec
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.00535d94
mov eax, dword [ebp - 0x24]
add eax, 3
push eax
lea eax, [ebp - 0x1c]
mov ecx, 1
mov edx, dword [0x53f580]
call fcn.004095a0
add esp, 4
mov eax, dword [ebp - 0x24]
sub eax, 3
test eax, eax
jl 0x53f8a4
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 0x53f888
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 [0x53f580]
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 0x53fbf4
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x53f91e
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x64]
call fcn.00423a20
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x60]
mov edx, 0x53fc0c
call fcn.00408468
mov eax, dword [ebp - 0x60]
call fcn.00535d94
mov eax, dword [ebp - 0x18]
call fcn.0045c930
jmp 0x53f994
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x6c]
call fcn.00423a20
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
mov edx, 0x53fc40
call fcn.00408468
mov eax, dword [ebp - 0x68]
call fcn.00535d94
jmp 0x53f994
mov eax, 0x53fc7c
call fcn.00535d94
mov eax, dword [ebp - 0x18]
call fcn.0045c930
jmp 0x53f994
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x74]
call fcn.00423a20
mov ecx, dword [ebp - 0x74]
lea eax, [ebp - 0x70]
mov edx, 0x53fd28
call fcn.00408468
mov eax, dword [ebp - 0x70]
call fcn.00535d94
jmp 0x53f994
mov eax, 0x53fd74
call fcn.00535d94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53f9cd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53f9ea
mov eax, dword [ebp - 0x18]
call fcn.0040598c
ret