Function at 0x474b20
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6134c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [0x6c02f8]
push ebx
push esi
xor ebx, ebx
push edi
cmp eax, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], ecx
jne 0x474e3d
mov edx, dword [0x6ec7a0]
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x14]
push eax
push ecx
push ebx
push ebx
push 0x6c2dd8
push edx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x474e0b
push ecx
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], esp
mov eax, esp
push edx
push ebx
mov dword [eax], ecx
call fcn.005df989
add esp, 4
lea ecx, [ebp - 0x18]
push eax
call fcn.00467270
mov ecx, eax
call fcn.00467280
mov ecx, dword [eax]
mov eax, 0xc22e4507
imul ecx
add edx, ecx
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
add edx, eax
jns 0x474bc9
cmp edx, 0xffffff9c
jge 0x474e3d
lea ecx, [ebp - 0x14]
push ecx
call fcn.005df989
mov eax, dword [0x6ec770]
add esp, 4
cmp eax, ebx
mov eax, dword [ebp - 0x14]
je 0x474be8
add eax, 0x3b5380
jmp 0x474bed
add eax, 0x4f1a00
lea edx, [ebp - 0x14]
push 4
push edx
mov dword [ebp - 0x14], eax
mov eax, dword [0x6ec7a0]
push ebx
push ebx
push 0x6c2dd8
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x474e3d
lea ecx, [ebp - 0x34]
call fcn.0050ad00
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.0050ad00
mov eax, dword [0x6ec774]
mov edx, dword [0x6ed268]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [ebp - 0x18]
neg eax
push ecx
push 0xf003f
sbb eax, eax
push ebx
add eax, reloc.WS2_32.dll_bind
push edx
push eax
call edi
mov esi, eax
cmp esi, ebx
je 0x474d18
cmp esi, 2
je 0x474d14
mov ecx, dword [0x6e7b6c]
mov dword [ebp - 0x1c], ecx
mov eax, dword [0x6ec774]
mov byte [ebp - 4], 3
cmp eax, ebx
mov eax, 0x6bf124
jne 0x474c80
mov eax, 0x6bf11c
mov edx, dword [0x6ed268]
push edx
push eax
lea eax, [ebp - 0x1c]
push 0x6bcc6c
push eax
call fcn.005f368b
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
push ecx
lea ecx, [ebp - 0x34]
call fcn.0050adb0
cmp eax, ebx
je 0x474cce
mov ecx, dword [0x6ec774]
mov eax, dword [0x6ed268]
lea edx, [ebp - 0x18]
neg ecx
push edx
push 0xf003f
sbb ecx, ecx
push ebx
add ecx, reloc.WS2_32.dll_bind
push eax
push ecx
call edi
mov esi, eax
cmp esi, ebx
je 0x474d08
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x34]
push edx
call fcn.0050ae70
cmp eax, ebx
je 0x474d08
mov edx, dword [0x6ec774]
mov ecx, dword [0x6ed268]
lea eax, [ebp - 0x18]
neg edx
push eax
push 0xf003f
sbb edx, edx
push ebx
add edx, reloc.WS2_32.dll_bind
push ecx
push edx
call edi
mov esi, eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.005fa859
cmp esi, ebx
jne 0x474d31
mov eax, dword [ebp - 0x18]
push 0x6bf114
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x18]
push edx
push 0xf003f
push ebx
push 0x6bf0d4
push reloc.WS2_32.dll_accept
call edi
mov esi, eax
cmp esi, ebx
je 0x474dac
cmp esi, 2
je 0x474da8
mov eax, dword [0x6e7b6c]
mov dword [ebp - 0x1c], eax
push 0x6bf0d4
lea ecx, [ebp - 0x1c]
push 0x6bf0c4
push ecx
mov byte [ebp - 4], 4
call fcn.005f368b
mov edx, dword [ebp - 0x1c]
add esp, 0xc
lea ecx, [ebp - 0x44]
push edx
call fcn.0050adb0
cmp eax, ebx
je 0x474d9c
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push ebx
push 0x6bf0d4
push reloc.WS2_32.dll_accept
call edi
mov esi, eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.005fa859
cmp esi, ebx
jne 0x474dc5
mov ecx, dword [ebp - 0x18]
push 0x6bf114
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x24]
push ebx
push 0x139f
push 0x111
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.0050ad40
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], bl
call fcn.0050ad40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x14]
push edx
call fcn.005df989
mov ecx, dword [ebp - 0x14]
add esp, 4
lea eax, [ebp - 0x14]
add ecx, 0x3f480
push 4
push eax
mov dword [ebp - 0x14], ecx
mov ecx, dword [0x6ec7a0]
push ebx
push ebx
push 0x6c2dd8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret