Function at 0x5a3318
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xf
push 0
push 0
dec ecx
jne 0x5a3320
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.004077dc
mov eax, dword [ebp - 8]
call fcn.004077dc
xor eax, eax
push ebp
push 0x5a3795
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5a37b4
push dword [ebp - 4]
push 0x5a3800
push dword [ebp - 8]
push 0x5a381c
lea eax, [ebp - 0x40]
mov edx, 5
call fcn.00408628
mov eax, dword [ebp - 0x40]
call fcn.00599620
mov byte [ebp - 9], 0
mov dl, 1
mov eax, dword [0x4626ec]
call fcn.00463838
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x5a374b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x5a3706
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0x18]
call fcn.00463920
mov edx, 0x5a382c
mov eax, dword [ebp - 0x18]
call fcn.00464d4c
test al, al
je 0x5a36f2
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x18], 0x20019
mov edx, 0x5a382c
mov eax, dword [ebp - 0x18]
call fcn.00463bac
test al, al
je 0x5a36cb
mov edx, 0x5a38a0
mov eax, dword [ebp - 0x18]
call fcn.004649c0
test al, al
je 0x5a36b7
mov edx, 0x5a38a0
mov eax, dword [ebp - 0x18]
call fcn.0046437c
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
fdiv dword [0x5a38ac]
call fcn.00404b68
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
mov ecx, 1
mov edx, dword [0x5a32e8]
call fcn.004096ec
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, 0x5a38a0
mov eax, dword [ebp - 0x18]
call fcn.00464848
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x5a3493
push 0x5a38bc
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x14]
call fcn.00420be4
push dword [ebp - 0x48]
push 0x5a3900
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 0x10]
call fcn.00420be4
push dword [ebp - 0x4c]
lea eax, [ebp - 0x44]
mov edx, 4
call fcn.00408628
mov eax, dword [ebp - 0x44]
call fcn.00599620
mov eax, dword [ebp - 0x24]
dec eax
test eax, eax
jl 0x5a34ef
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 0x5a34ca
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
cmp word [eax + edx*2], 0
jne 0x5a34ca
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
cmp word [eax + edx*2 + 2], 0
je 0x5a34ef
lea eax, [ebp - 0x50]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov dx, word [edx + ecx*2]
call fcn.0040835c
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x28]
call fcn.00408548
inc dword [ebp - 0x20]
dec dword [ebp - 0x34]
jne 0x5a34a6
cmp dword [ebp - 8], 0
jne 0x5a3508
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.005a31a4
mov byte [ebp - 0x2d], al
jmp 0x5a351d
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.005a304c
mov byte [ebp - 0x2d], al
mov eax, dword [ebp - 0x18]
call fcn.004638f0
cmp byte [ebp - 0x2d], 0
je 0x5a36fc
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x18], 0x20006
xor ecx, ecx
mov edx, 0x5a382c
mov eax, dword [ebp - 0x18]
call fcn.00463a78
test al, al
je 0x5a3690
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x5a3567
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 0x5a35be
push 0x5a3918
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x10]
call fcn.00420be4
push dword [ebp - 0x58]
push 0x5a3954
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x5c]
call fcn.0042677c
push dword [ebp - 0x5c]
lea eax, [ebp - 0x54]
mov edx, 4
call fcn.00408628
mov eax, dword [ebp - 0x54]
call fcn.00599620
mov eax, dword [ebp - 0x24]
add eax, 3
push eax
lea eax, [ebp - 0x1c]
mov ecx, 1
mov edx, dword [0x5a32e8]
call fcn.004096ec
add esp, 4
mov eax, dword [ebp - 0x24]
sub eax, 3
test eax, eax
jl 0x5a360c
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 0x5a35f0
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 [0x5a32e8]
call fcn.004096ec
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 7
push 0
push 0x5a395c
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x5a3686
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x64]
call fcn.0042677c
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x60]
mov edx, 0x5a3974
call fcn.004085a0
mov eax, dword [ebp - 0x60]
call fcn.00599620
mov eax, dword [ebp - 0x18]
call fcn.004638f0
jmp 0x5a36fc
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x6c]
call fcn.0042677c
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
mov edx, 0x5a39a8
call fcn.004085a0
mov eax, dword [ebp - 0x68]
call fcn.00599620
jmp 0x5a36fc
mov eax, 0x5a39e4
call fcn.00599620
mov eax, dword [ebp - 0x18]
call fcn.004638f0
jmp 0x5a36fc
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x74]
call fcn.0042677c
mov ecx, dword [ebp - 0x74]
lea eax, [ebp - 0x70]
mov edx, 0x5a3a90
call fcn.004085a0
mov eax, dword [ebp - 0x70]
call fcn.00599620
jmp 0x5a36fc
mov eax, 0x5a3adc
call fcn.00599620
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5a3735
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a3752
mov eax, dword [ebp - 0x18]
call fcn.00405a54
ret