Function at 0x5767839c
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x576783a4
push ebx
push esi
xor eax, eax
push ebp
push 0x576785e7
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
call fcn.57678010
test al, al
je 0x576785af
push 0xf003f
push 0
push 0
call dword [0x5769091c]
mov ebx, eax
test ebx, ebx
je 0x576785af
push 0x1ff
mov eax, dword [ebp + 8]
push eax
push ebx
call dword [0x57690920]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5767841c
push 0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
call fcn.576781ec
neg al
sbb esi, esi
mov eax, dword [ebp - 4]
push eax
call dword [0x5769090c]
jmp 0x5767845a
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
push 1
push 1
push 1
push 0x1f01ff
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
push ebx
call dword [0x57690928]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5767845a
or esi, 0xffffffff
mov eax, dword [ebp - 4]
push eax
call dword [0x5769090c]
push ebx
call dword [0x5769090c]
test esi, esi
je 0x576785af
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
lea edx, [ebp - 0x24]
mov eax, dword [0x5768ee00]
call fcn.57667e90
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
call fcn.57665c80
push dword [ebp - 0x20]
push 0x576785fc
lea eax, [ebp - 0x28]
mov edx, dword [ebp + 8]
call fcn.57665c2c
push dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.57665cac
mov eax, dword [ebp - 0x1c]
call fcn.57665c90
push eax
push SysReAllocStringLen
call sub.ADVAPI32.dll_RegOpenKeyExW
test eax, eax
jne 0x576785af
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
lea edx, [ebp - 0x2c]
mov eax, dword [0x5768ede8]
call fcn.57667e90
mov eax, dword [ebp - 0x2c]
call fcn.57665998
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
test eax, eax
jne 0x57678506
cmp dword [ebp - 8], 4
je 0x5767857a
mov dword [ebp - 0x18], 0x10000
mov dword [ebp - 0x14], 0x10000
mov eax, dword [ebp + 0xc]
call fcn.57677aec
mov dword [ebp - 4], eax
push 8
lea eax, [ebp - 0x18]
push eax
push 3
push 0
lea edx, [ebp - 0x30]
mov eax, dword [0x5768ede0]
call fcn.57667e90
mov eax, dword [ebp - 0x30]
call fcn.57665998
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegSetValueExA
push 4
lea eax, [ebp - 4]
push eax
push 3
push 0
lea edx, [ebp - 0x34]
mov eax, dword [0x5768ede4]
call fcn.57667e90
mov eax, dword [ebp - 0x34]
call fcn.57665998
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegSetValueExA
mov dword [ebp - 4], 1
jmp 0x5767857d
inc dword [ebp - 4]
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
lea edx, [ebp - 0x38]
mov eax, dword [0x5768ede8]
call fcn.57667e90
mov eax, dword [ebp - 0x38]
call fcn.57665998
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegSetValueExA
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x576785ee
lea eax, [ebp - 0x38]
mov edx, 4
call fcn.5766552c
lea eax, [ebp - 0x28]
call fcn.57665b14
lea eax, [ebp - 0x24]
call fcn.57665508
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.57665b2c
ret