Function at 0x530d98
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xf
push 0
push 0
dec ecx
jne 0x530da0
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.004074dc
mov eax, dword [ebp - 8]
call fcn.004074dc
xor eax, eax
push ebp
push 0x531215
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x531234
push dword [ebp - 4]
push 0x531280
push dword [ebp - 8]
push 0x53129c
lea eax, [ebp - 0x40]
mov edx, 5
call fcn.00408280
mov eax, dword [ebp - 0x40]
call fcn.0052c604
mov byte [ebp - 9], 0
mov dl, 1
mov eax, dword [0x45acd4]
call fcn.0045be20
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x5311cb
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x531186
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0x18]
call fcn.0045bf08
mov edx, 0x5312ac
mov eax, dword [ebp - 0x18]
call fcn.0045d334
test al, al
je 0x531172
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x18], 0x20019
mov edx, 0x5312ac
mov eax, dword [ebp - 0x18]
call fcn.0045c194
test al, al
je 0x53114b
mov edx, 0x531320
mov eax, dword [ebp - 0x18]
call fcn.0045cfa8
test al, al
je 0x531137
mov edx, 0x531320
mov eax, dword [ebp - 0x18]
call fcn.0045c964
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
fdiv dword [0x53132c]
call fcn.004049ec
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
mov ecx, 1
mov edx, dword [0x530d68]
call fcn.004092d0
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, 0x531320
mov eax, dword [ebp - 0x18]
call fcn.0045ce30
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x530f13
push 0x53133c
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x14]
call fcn.0041ee9c
push dword [ebp - 0x48]
push 0x531380
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 0x10]
call fcn.0041ee9c
push dword [ebp - 0x4c]
lea eax, [ebp - 0x44]
mov edx, 4
call fcn.00408280
mov eax, dword [ebp - 0x44]
call fcn.0052c604
mov eax, dword [ebp - 0x24]
dec eax
test eax, eax
jl 0x530f6f
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 0x530f4a
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
cmp word [eax + edx*2], 0
jne 0x530f4a
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
cmp word [eax + edx*2 + 2], 0
je 0x530f6f
lea eax, [ebp - 0x50]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov dx, word [edx + ecx*2]
call fcn.00407fcc
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x28]
call fcn.004081a0
inc dword [ebp - 0x20]
dec dword [ebp - 0x34]
jne 0x530f26
cmp dword [ebp - 8], 0
jne 0x530f88
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00530088
mov byte [ebp - 0x2d], al
jmp 0x530f9d
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0052ff30
mov byte [ebp - 0x2d], al
mov eax, dword [ebp - 0x18]
call fcn.0045bed8
cmp byte [ebp - 0x2d], 0
je 0x53117c
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x18], 0x20006
xor ecx, ecx
mov edx, 0x5312ac
mov eax, dword [ebp - 0x18]
call fcn.0045c060
test al, al
je 0x531110
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x530fe7
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 0x53103e
push 0x531398
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x10]
call fcn.0041ee9c
push dword [ebp - 0x58]
push 0x5313d4
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x5c]
call fcn.0042341c
push dword [ebp - 0x5c]
lea eax, [ebp - 0x54]
mov edx, 4
call fcn.00408280
mov eax, dword [ebp - 0x54]
call fcn.0052c604
mov eax, dword [ebp - 0x24]
add eax, 3
push eax
lea eax, [ebp - 0x1c]
mov ecx, 1
mov edx, dword [0x530d68]
call fcn.004092d0
add esp, 4
mov eax, dword [ebp - 0x24]
sub eax, 3
test eax, eax
jl 0x53108c
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 0x531070
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 [0x530d68]
call fcn.004092d0
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 7
push 0
push 0x5313dc
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x531106
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x64]
call fcn.0042341c
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x60]
mov edx, 0x5313f4
call fcn.004081f8
mov eax, dword [ebp - 0x60]
call fcn.0052c604
mov eax, dword [ebp - 0x18]
call fcn.0045bed8
jmp 0x53117c
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x6c]
call fcn.0042341c
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
mov edx, 0x531428
call fcn.004081f8
mov eax, dword [ebp - 0x68]
call fcn.0052c604
jmp 0x53117c
mov eax, 0x531464
call fcn.0052c604
mov eax, dword [ebp - 0x18]
call fcn.0045bed8
jmp 0x53117c
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x74]
call fcn.0042341c
mov ecx, dword [ebp - 0x74]
lea eax, [ebp - 0x70]
mov edx, 0x531510
call fcn.004081f8
mov eax, dword [ebp - 0x70]
call fcn.0052c604
jmp 0x53117c
mov eax, 0x53155c
call fcn.0052c604
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5311b5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5311d2
mov eax, dword [ebp - 0x18]
call fcn.004057ac
ret