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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b2190
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, dword [0x6526c4]
push ebx
push esi
xor ebx, ebx
push edi
cmp eax, ebx
mov dword [ebp - 0x10], esp
jne 0x4578c5
mov edx, dword [0x67a050]
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x14]
push eax
push ecx
push ebx
push ebx
push 0x654dcc
push edx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x457893
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.00580063
add esp, 4
lea ecx, [ebp - 0x18]
push eax
call fcn.0044d250
mov ecx, eax
call fcn.0044d260
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 0x4576a6
cmp edx, 0xffffff9c
jge 0x4578c5
lea ecx, [ebp - 0x14]
push ecx
call fcn.00580063
mov eax, dword [0x67a034]
add esp, 4
cmp eax, ebx
mov eax, dword [ebp - 0x14]
je 0x4576c5
add eax, 0x13c680
jmp 0x4576ca
add eax, 0x4f1a00
lea edx, [ebp - 0x14]
push 4
push edx
mov dword [ebp - 0x14], eax
mov eax, dword [0x67a050]
push ebx
push ebx
push 0x654dcc
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4578c5
lea ecx, [ebp - 0x40]
call fcn.004d6f40
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.004d6f40
mov eax, dword [0x67a038]
mov edx, dword [0x67a8f4]
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.WSOCK32.dll_bind
push edx
push eax
call edi
mov esi, eax
cmp esi, ebx
je 0x4577b7
cmp esi, 2
je 0x4577b3
mov ecx, dword [0x6754d4]
mov dword [ebp - 0x1c], ecx
mov eax, dword [0x67a038]
mov byte [ebp - 4], 3
cmp eax, ebx
mov eax, 0x651774
jne 0x457759
mov eax, 0x65176c
mov edx, dword [0x67a8f4]
push edx
push eax
lea eax, [ebp - 0x1c]
push 0x64fa0c
push eax
call fcn.00593b08
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
push ecx
lea ecx, [ebp - 0x40]
call fcn.004d6ff0
cmp eax, ebx
je 0x4577a7
mov ecx, dword [0x67a038]
mov eax, dword [0x67a8f4]
lea edx, [ebp - 0x18]
neg ecx
push edx
push 0xf003f
sbb ecx, ecx
push ebx
add ecx, reloc.WSOCK32.dll_bind
push eax
push ecx
call edi
mov esi, eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0059ad3d
cmp esi, ebx
jne 0x4577d0
mov edx, dword [ebp - 0x18]
push 0x651764
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x18]
push ecx
push 0xf003f
push ebx
push 0x651724
push reloc.WSOCK32.dll_accept
call edi
mov esi, eax
cmp esi, ebx
je 0x45784c
cmp esi, 2
je 0x457848
mov edx, dword [0x6754d4]
mov dword [ebp - 0x1c], edx
push 0x651724
lea eax, [ebp - 0x1c]
push 0x651714
push eax
mov byte [ebp - 4], 4
call fcn.00593b08
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
push ecx
lea ecx, [ebp - 0x30]
call fcn.004d6ff0
cmp eax, ebx
je 0x45783c
lea edx, [ebp - 0x18]
push edx
push 0xf003f
push ebx
push 0x651724
push reloc.WSOCK32.dll_accept
call edi
mov esi, eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0059ad3d
cmp esi, ebx
jne 0x457865
mov eax, dword [ebp - 0x18]
push 0x651764
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.004d6f80
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.004d6f80
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.00580063
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 [0x67a050]
push ebx
push ebx
push 0x654dcc
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