Function at 0x4da9a9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f458
mov eax, dword fs:[0]
push eax
sub esp, 0x28
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 dword [ebp - 0x14], ecx
call fcn.0045adc0
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x4da8d7
push 0x80004005
call fcn.0045a8f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4da905
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 1
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4da932
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 2
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4da95f
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x14]
or ecx, 0xffffffff
mov byte [ebp - 4], 4
mov eax, dword [eax + 0x84]
dec eax
cmp eax, 4
ja case.default.0x4da99b
jmp dword [eax*4 + 0x4dac18]
push 0x57f8e8
jmp 0x4da9bc
push 0x581bcc
jmp 0x4da9bc
push 0x5844f8
jmp 0x4da9bc
push 0x587040
lea ecx, [ebp - 0x10]
call fcn.0045a5f0
mov eax, dword [ebp - 0x14]
push dword [eax + 0x58]
lea eax, [ebp - 0x18]
push dword [0x5d681c]
push eax
call fcn.0045acb0
mov ebx, dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push 0
push 0
push dword [0x5d4520]
push ebx
push reloc.WS2_32.dll_accept
push eax
call fcn.0051ff70
add esp, 0x24
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.0045a580
mov edx, dword [ebp - 0x1c]
or esi, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 4
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4daa28
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0
push dword [0x5d451c]
lea eax, [ebp - 0x28]
push ebx
push reloc.WS2_32.dll_accept
push eax
call fcn.0051ff70
add esp, 0x18
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call fcn.0045a580
mov edx, dword [ebp - 0x28]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4daa71
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x20]
mov ecx, 1
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x1c], ecx
nop
cmp ecx, 1
jne 0x4daa99
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x40], 0
je 0x4dab6e
mov eax, dword [0x5d690c]
jmp 0x4daab4
cmp ecx, 2
jne 0x4dab6e
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x44], 0
je 0x4dab6e
mov eax, dword [0x5d6910]
test eax, eax
je 0x4dab6e
push dword [ebp - 0x10]
push eax
push dword [edx + 0x58]
lea eax, [ebp - 0x18]
push dword [0x5d6820]
push eax
call fcn.0045acb0
mov ebx, dword [ebp - 0x18]
lea ecx, [ebp - 0x34]
add esp, 0x14
push 0
push 0
push 0x2001f
push 0
push 0
push ebx
push reloc.WS2_32.dll_accept
call fcn.0045aa10
test eax, eax
jne 0x4dab6b
test edi, edi
setne al
test eax, eax
je 0x4dab30
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4dab05
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push 0
push dword [0x5d451c]
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor eax, eax
test esi, esi
setne al
test eax, eax
je 0x4dab6b
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4dab40
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push dword [0x5d4520]
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x1c]
inc ecx
mov dword [ebp - 0x1c], ecx
cmp ecx, 2
jle 0x4daa80
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4dab89
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or ecx, 0xffffffff
add esi, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4daba7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov ecx, esi
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4dabc7
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, esi
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4dabe4
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x4dac05
mov ecx, dword [edx]
push edx
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