Function at 0x4661b0
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x513b94]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x218], eax
mov eax, dword [ebp + 0xc]
push 0x40
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x26c]
push 0
push eax
mov dword [ebp - 0x270], 0x44
call fcn.004a3e00
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x210]
add esp, 0xc
push eax
push 0x20019
push 0
push 0x4ecde8
push reloc.WS2_32.dll_accept
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x4662d1
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x4ece84
push dword [ebp - 0x210]
call ebx
push dword [ebp - 0x210]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4662d1
push 0x4ece94
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004b5462
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x20c]
push eax
push accept
call edi
test eax, eax
jne 0x46632b
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push esi
push dword [ebp - 0x210]
call ebx
push dword [ebp - 0x210]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x46632b
lea eax, [ebp - 0x210]
push eax
push 0x20019
push 0
push 0x4ecdb8
push accept
call edi
test eax, eax
jne 0x466323
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0
push dword [ebp - 0x210]
call ebx
push dword [ebp - 0x210]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x46645f
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x466334
mov esi, dword [ebp - 0x21c]
sub ecx, edx
mov edx, esi
sar ecx, 1
lea edi, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x466350
sub edx, edi
sar edx, 1
lea ebx, [edx + 6]
add ebx, ecx
lea eax, [ebx + ebx]
push eax
call fcn.004ae112
mov edi, eax
lea eax, [ebp - 0x20c]
push 0x4ecebc
push eax
call fcn.004a3f5a
add esp, 0xc
mov dword [ebp - 0x218], eax
test eax, eax
je 0x4663df
mov esi, eax
lea eax, [ebp - 0x20c]
sub esi, eax
sar esi, 1
lea ecx, [esi + 1]
push ecx
push eax
push ebx
push edi
call fcn.004a863e
mov eax, ebx
sub eax, esi
dec eax
push 0x4ecec8
push eax
lea eax, [esi + 1]
lea eax, [edi + eax*2]
push eax
call fcn.004b4900
push dword [ebp - 0x21c]
push ebx
push edi
call fcn.004b5462
mov eax, dword [ebp - 0x218]
add eax, 6
push eax
push ebx
push edi
call fcn.004b5462
add esp, 0x34
jmp 0x4663f6
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x4eced0
push ebx
push edi
call fcn.00404390
add esp, 0x14
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x228], 0
push eax
lea eax, [ebp - 0x270]
mov dword [ebp - 0x22c], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x228]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x22c]
call esi
push edi
call fcn.004ae0f7
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0e13
mov esp, ebp
pop ebp
ret
push 0x10
push 0x4ecee4
push 0x4ecf10
push dword [ebp - 0x218]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a0e13
mov esp, ebp
pop ebp
ret