Function at 0x500f10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572ed0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0045adc0
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x500f56
push 0x80004005
call fcn.0045a8f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [0x5d6450]
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push dword [0x5d644c]
push dword [0x5d6828]
push dword [0x5d6814]
push str._s_s_s_s
push eax
call fcn.0045acb0
add esp, 0x18
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0x11
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xa
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x44], 0x3f400000
mov dword [ebp - 0x40], 0x3e800000
mov dword [ebp - 0x3c], 0x40100000
mov dword [ebp - 0x38], 0x26
mov dword [ebp - 0x34], 0
mov edi, dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
push 0x20006
push edi
push reloc.WS2_32.dll_accept
mov byte [ebp - 4], 2
call fcn.0045b220
neg eax
sbb eax, eax
or ebx, 0xffffffff
inc eax
jne 0x501040
push eax
push eax
push 0x2001f
push eax
push eax
push edi
push reloc.WS2_32.dll_accept
lea ecx, [ebp - 0x20]
call fcn.0045aa10
neg eax
sbb eax, eax
inc eax
je 0x50116a
lea eax, [ebp - 0x50]
push eax
push 2
lea ecx, [esi + 0xbc]
call fcn.004ecd00
test eax, eax
je 0x50116a
xor ebx, ebx
cmp dword [ebp - 0x4c], ebx
je 0x50107d
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x50107b
mov ecx, dword [ebp - 0x50]
lea ebx, [ebx]
cmp dword [ecx + ebx*4], 0
jne 0x501099
inc ebx
cmp ebx, eax
jb 0x501070
xor ebx, ebx
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x50109e
push 0x80004005
call fcn.0045a8f0
mov ebx, dword [ecx + ebx*4]
jmp 0x50107d
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 3
test ebx, ebx
je 0x50114a
test ebx, ebx
je 0x50114a
push dword [ebx]
lea eax, [ebp - 0x14]
push str._s_prev
push eax
call fcn.0045acb0
mov edx, dword [ebx + 4]
xor eax, eax
add esp, 0xc
test edx, edx
setne al
test eax, eax
je 0x501147
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5010e5
sub ecx, esi
mov esi, dword [ebp - 0x14]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push esi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x50114a
mov ecx, dword [ebx + 8]
test ecx, ecx
jne 0x50113b
mov eax, dword [ebx + 0xc]
xor edx, edx
mov ebx, dword [ebp - 0x48]
div ebx
mov edi, dword [ebp - 0x50]
inc edx
cmp edx, ebx
jae 0x501138
mov eax, dword [edi + edx*4]
test eax, eax
cmovne ecx, eax
inc edx
test ecx, ecx
je 0x501127
mov edi, dword [ebp - 0x10]
mov ebx, ecx
test ecx, ecx
jne 0x5010b7
jmp 0x50114a
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x50116a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x50]
call fcn.005211f0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x501180
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x50119e
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret