Function at 0x506c30
Capabilities:
Delete registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x61f368
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x6e7b6c]
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x1f88]
mov dword [esp + 0x24], 0
test eax, eax
je 0x506c71
cmp dword [esi + 0x1f8c], 3
jne 0x506c8e
mov eax, dword [esi + 0x4f8]
test eax, eax
je 0x506c8e
lea ecx, [esi + 0x4dc]
call fcn.004f7620
test al, al
je 0x507051
mov eax, dword [esi + 0x1f88]
test eax, eax
jne 0x507033
mov eax, dword [esi + 0x1e4c]
test eax, eax
je 0x506ccf
lea ecx, [esi + 0x1e30]
call fcn.004f2950
mov ecx, dword [esi + 0x9c]
mov eax, dword [ecx + 0x1c]
test eax, eax
jne 0x506ccf
mov al, byte [esi + 0x1f7c]
test al, al
je 0x506ccf
push 0
call fcn.0041f110
mov eax, dword [esi + 0x1254]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x506d9b
mov ecx, dword [esi + 0x12e4]
push 0
push 0
push 0x147
push ecx
call edi
cmp eax, 0xffffffff
je 0x506d33
mov edx, dword [esi + 0x12e4]
push 0
push eax
push 0x150
push edx
call edi
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
je 0x506d33
mov ecx, dword [0x6ec7a0]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push 0x6d5c8c
push ecx
call ebp
mov edx, dword [0x6e7b6c]
mov dword [esp + 0x10], edx
lea eax, [esp + 0x10]
lea ecx, [esi + 0x16c4]
push eax
mov byte [esp + 0x28], 1
call fcn.005f7b6e
mov ecx, dword [esp + 0x10]
push ecx
call fcn.005de3d3
add esp, 4
cmp eax, 1
je 0x506d82
cmp eax, 2
je 0x506d82
cmp eax, 4
je 0x506d82
cmp eax, 8
je 0x506d82
cmp eax, 0x10
je 0x506d82
cmp eax, 0x18
je 0x506d82
cmp eax, 0x20
jne 0x506d8d
push eax
mov ecx, 0x6ec640
call fcn.004e9ad0
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
call fcn.005fa859
mov eax, dword [esi + 0x19e8]
test eax, eax
je 0x506f62
mov edx, dword [esi + 0x1c18]
push ebx
push 0
push 0
push 0xf0
push edx
call edi
lea edx, [esp + 0x10]
push 4
xor ecx, ecx
push edx
test eax, eax
mov eax, dword [0x6ec7a0]
push 4
push 0
push 0x6c01b4
setne cl
push eax
mov dword [esp + 0x28], ecx
call ebp
mov ecx, dword [esi + 0x1ab0]
push 0
push 0
push 0xf0
push ecx
call edi
mov ecx, dword [0x6ec7a0]
xor edx, edx
test eax, eax
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push 0x6bec54
setne dl
push ecx
mov dword [esp + 0x28], edx
call ebp
mov edx, dword [esi + 0x1a74]
push 0
push 0
push 0xf0
push edx
call edi
lea edx, [esp + 0x10]
push 4
xor ecx, ecx
push edx
test eax, eax
mov eax, dword [0x6ec7a0]
push 4
push 0
push 0x6bec74
setne cl
push eax
mov dword [esp + 0x28], ecx
call ebp
mov ecx, dword [esi + 0x1b64]
push 0
push 0
push 0xf0
push ecx
call edi
mov ecx, dword [0x6ec7a0]
xor edx, edx
test eax, eax
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push 0x6d6028
setne dl
push ecx
mov dword [esp + 0x28], edx
call ebp
mov edx, dword [esi + 0x1bdc]
push 0
push 0
push 0xf0
push edx
call edi
lea edx, [esp + 0x10]
push 4
xor ecx, ecx
push edx
test eax, eax
mov eax, dword [0x6ec7a0]
push 4
push 0
push 0x6c2a6c
setne cl
push eax
mov dword [esp + 0x28], ecx
call ebp
mov ecx, dword [0x6e7b6c]
mov dword [esp + 0x14], ecx
lea edx, [esp + 0x14]
lea ecx, [esi + 0x1c74]
push edx
mov byte [esp + 0x2c], 2
call fcn.005f7b6e
mov ecx, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [ecx - 8]
test eax, eax
je 0x506efb
inc eax
push eax
mov eax, dword [0x6ec7a0]
push ecx
push 1
push 0
push 0x6d6018
push eax
call ebp
jmp 0x506f09
mov ecx, dword [0x6ec7a0]
push 0x6d6018
push ecx
call ebx
lea edx, [esp + 0x14]
lea ecx, [esi + 0x1c38]
push edx
call fcn.005f7b6e
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
test eax, eax
je 0x506f3a
inc eax
push eax
mov eax, dword [0x6ec7a0]
push ecx
push 1
push 0
push 0x6d6004
push eax
call ebp
jmp 0x506f48
mov ecx, dword [0x6ec7a0]
push 0x6d6004
push ecx
call ebx
lea ecx, [esi + 0x19cc]
call fcn.004fb6d0
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 0
call fcn.005fa859
pop ebx
mov eax, dword [esi + 0x1254]
test eax, eax
je 0x506f98
lea ecx, [esi + 0x1238]
call fcn.004f0580
test al, al
je 0x507051
mov eax, dword [esi + 0x1f80]
test eax, eax
je 0x506f98
push 0
push 0x13c2
push 0x111
push eax
call edi
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x506fad
lea ecx, [esi + 0xa8]
call fcn.004fdf60
mov eax, dword [esi + 0x1f94]
test eax, eax
je 0x506fc4
lea ecx, [esi + 0xc78]
call fcn.004f35e0
jmp 0x506fcf
lea ecx, [esi + 0xf3c]
call fcn.00529380
lea edx, [esp + 0x18]
push 0
push edx
push 0
push 0xf003f
push 0
push 0x6ec0c8
push 0
push 0x6c0d30
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x507029
lea eax, [esp + 0x10]
push eax
call fcn.005df989
mov edx, dword [esp + 0x1c]
add esp, 4
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push 0
push 0x6ec0c8
push edx
call ebp
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 0x1f88]
test eax, eax
je 0x50703c
cmp dword [esi + 0x1f8c], 5
jne 0x507051
mov eax, dword [esi + 0x248]
test eax, eax
je 0x507051
lea ecx, [esi + 0x22c]
call fcn.004f2200
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0xffffffff
call fcn.005fa859
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret