Function at 0x57c520
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f5d78
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x6670f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0
call fcn.00579a10
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x57c6ad
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
call fcn.0057cae0
add esp, 4
mov edx, dword [eax]
mov ecx, edx
mov byte [ebp - 4], 2
lea eax, [ecx + 2]
mov dword [ebp - 0x3c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x57c5b2
sub ecx, dword [ebp - 0x3c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00449bc0
mov edx, dword [ebp - 0x2c]
or eax, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x57c5eb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 1
push 0x64528c
lea ecx, [ebp - 0x28]
call fcn.0044ed80
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x57c600
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.0044ed80
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x2001f
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x38]
push eax
push SysStringLen
call fcn.0057b750
test eax, eax
je 0x57c677
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x38]
push 0
push 0x2001f
push 0
push 0
push eax
push SysStringLen
call fcn.0057a7e0
test eax, eax
je 0x57c677
lea ecx, [ebp - 0x28]
call fcn.00449860
mov esi, dword [ebp - 0x38]
xor ebx, ebx
jmp 0x57c71b
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp - 0x38]
push 4
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push 4
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x2c], eax
test esi, esi
je 0x57c69e
push esi
call edi
xor esi, esi
lea ecx, [ebp - 0x28]
call fcn.00449860
xor ebx, ebx
cmp dword [ebp - 0x2c], ebx
jmp 0x57c718
push 0x2001f
push esi
push SysReAllocString
lea ecx, [ebp - 0x38]
call fcn.0057b750
test eax, eax
je 0x57c6ea
push 0
push 0
push 0x2001f
push 0
push 0
push esi
push SysReAllocString
lea ecx, [ebp - 0x38]
call fcn.0057a7e0
test eax, eax
je 0x57c6ea
mov esi, dword [ebp - 0x38]
xor ebx, ebx
jmp 0x57c71b
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp - 0x38]
push 4
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push 4
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x2c], eax
test esi, esi
je 0x57c714
push esi
call edi
mov eax, dword [ebp - 0x2c]
xor esi, esi
xor ebx, ebx
test eax, eax
sete bl
test esi, esi
je 0x57c722
push esi
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret