Function at 0x57cda0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x662c3e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2110
call fcn.00612380
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x1c], edi
xor esi, esi
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x2120]
push eax
call fcn.0057bc70
cmp eax, esi
jl 0x57d0f2
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x2120]
push edx
call fcn.0057ba50
add esp, 8
test eax, eax
jne 0x57ce16
mov eax, 0x80020009
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, edi
call fcn.0057bc10
lea eax, [ebp - 0x2120]
push eax
mov ecx, edi
call fcn.0057bc70
cmp eax, esi
jl 0x57d0f2
movzx eax, word [ebp - 0x14]
cmp eax, 0x13
jg 0x57cff8
je 0x57cfb8
cmp eax, 8
je 0x57cf9f
cmp eax, 0x11
jne 0x57d0dd
lea ecx, [ebp - 0x2120]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test bl, 1
jne 0x57ced9
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x120], esi
mov esi, 4
mov dword [ebp - 4], esi
mov byte [ebp - 4], 5
push edi
lea ecx, [ebp - 0x120]
call fcn.0057ca40
mov dword [ebp - 4], esi
jmp 0x57ceaf
mov eax, dword [ebp - 0x120]
test eax, eax
jne 0x57cef1
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0x11c]
cmp dword [ebp - 0x120], edx
je 0x57ced9
lea ecx, [ebp - 0x120]
call fcn.004dc950
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
push 0
push eax
call fcn.006100a0
add esp, 0xc
xor esi, esi
test ebx, ebx
jle 0x57cf3b
mov edi, esi
shr edi, 1
add edi, dword [ebp - 0x120]
movzx edx, word [ebp + esi*2 - 0x2120]
push edx
call fcn.0057bb40
add esp, 4
mov ecx, esi
and ecx, 1
add ecx, ecx
lea edx, [ecx + ecx]
mov ecx, 4
sub ecx, edx
shl al, cl
or byte [edi], al
inc esi
cmp esi, ebx
jl 0x57cf03
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push edi
mov ecx, dword [ebp - 0x120]
push ecx
push 3
push 0
mov edx, dword [ebp + 0xc]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x11c]
cmp dword [ebp - 0x120], eax
je 0x57cf79
lea ecx, [ebp - 0x120]
call fcn.004dc950
xor esi, esi
cmp edi, esi
je 0x57d0da
push edi
call fcn.0057b770
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 1
lea ecx, [ebp - 0x2120]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
call fcn.004e73c0
mov edi, eax
jmp 0x57cf7b
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 3
lea eax, [ebp - 0x18]
push eax
push esi
push esi
lea ecx, [ebp - 0x2120]
push ecx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.004e73a0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00487430
jmp 0x57cf7b
cmp eax, 0x4008
jne 0x57d0dd
lea ecx, [ebp - 0x2120]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 2
mov dword [ebp - 0x120], esi
mov dword [ebp - 4], esi
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x120]
call fcn.0057c9f0
mov dword [ebp - 4], esi
jmp 0x57d040
mov edi, dword [ebp - 0x120]
cmp edi, esi
je 0x57d0ac
lea esi, [ebp - 0x2120]
cmp word [ebp - 0x2120], 0
je 0x57d08f
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push esi
call ebx
movzx ecx, word [esi]
cmp ecx, 0x5c
jne 0x57d080
cmp word [eax], 0x30
jne 0x57d080
xor edx, edx
mov word [edi], dx
add edi, 2
push eax
call ebx
mov esi, eax
jmp 0x57d089
mov word [edi], cx
add edi, 2
add esi, 2
cmp word [esi], 0
jne 0x57d060
xor eax, eax
mov dword [edi], eax
mov edx, dword [ebp - 0x120]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.0057b920
mov edi, eax
xor esi, esi
jmp 0x57d0b1
mov edi, 0xe
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x11c]
cmp dword [ebp - 0x120], ecx
je 0x57cf7b
lea ecx, [ebp - 0x120]
call fcn.004dc950
jmp 0x57cf7b
mov edi, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x10]
push edx
mov ecx, edi
call fcn.0057bc70
xor ecx, ecx
cmp eax, esi
setge cl
dec ecx
and eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc