Function at 0x4178b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xffffffe0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b163
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
add esp, 0xfffffc70
mov ecx, 0x55be7a
call fcn.0051a674
push 0
lea ecx, [ebp - 0x3c]
call fcn.00406a40
mov dword [ebp - 4], 0
xor eax, eax
mov byte [ebp - 0x21], al
xor ecx, ecx
mov byte [ebp - 0x22], cl
xor edx, edx
mov byte [ebp - 0x23], dl
movzx eax, byte [ebp - 0x21]
push eax
movzx ecx, byte [ebp - 0x22]
push ecx
movzx edx, byte [ebp - 0x23]
push edx
lea ecx, [ebp - 0x100]
call fcn.0041cb20
mov ecx, eax
call fcn.00419810
push eax
mov eax, dword [ebx + 8]
push eax
lea ecx, [ebp - 0x78]
push ecx
call fcn.0041c4d0
add esp, 0xc
mov byte [ebp - 4], 1
push 0x20019
lea ecx, [ebp - 0x78]
call fcn.00405220
push eax
push connect
lea ecx, [ebp - 0x3c]
call fcn.00406bd0
test eax, eax
je 0x417981
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x78]
call fcn.00405270
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00406a80
jmp 0x417b70
lea ecx, [ebp - 0x60]
call fcn.0041b9c0
mov byte [ebp - 4], 2
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x40], 0x200
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x3a0]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x417a18
lea eax, [ebp - 0x3a0]
push eax
lea ecx, [ebp - 0x90]
call fcn.00405310
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x90]
call fcn.0041c160
movzx ecx, al
test ecx, ecx
jne 0x4179f7
lea edx, [ebp - 0x90]
push edx
lea ecx, [ebp - 0x60]
call fcn.0041b970
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x200
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x90]
call fcn.00405270
jmp 0x41799b
lea ecx, [ebp - 0x3c]
call fcn.00406b80
xor ecx, ecx
mov byte [ebp - 0x24], cl
xor edx, edx
mov byte [ebp - 0x25], dl
xor eax, eax
mov byte [ebp - 0x26], al
push 0xf003f
movzx ecx, byte [ebp - 0x24]
push ecx
movzx edx, byte [ebp - 0x25]
push edx
movzx eax, byte [ebp - 0x26]
push eax
lea ecx, [ebp - 0x1a0]
call fcn.0041c650
mov ecx, eax
call fcn.0041a610
push eax
push reloc.WS2_32.dll_accept
lea ecx, [ebp - 0x3c]
call fcn.00406bd0
test eax, eax
je 0x417a93
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.0041b9a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x78]
call fcn.00405270
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00406a80
jmp 0x417b70
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp - 0x44]
call fcn.0041b950
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x44]
call fcn.0041b930
mov dword [ebp - 0x48], eax
jmp 0x417aba
mov edx, dword [ebp - 0x2c]
add edx, 0x18
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x48]
je 0x417b39
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x4c], ecx
push 0x5444a0
mov edx, dword [ebp - 0x4c]
push edx
lea eax, [ebp - 0xc0]
push eax
call fcn.0041c4d0
add esp, 0xc
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x54], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebx + 8]
push edx
mov eax, dword [ebp - 0x54]
push eax
lea ecx, [ebp - 0xa8]
push ecx
call fcn.0041c570
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc0]
call fcn.00405270
push 0
lea ecx, [ebp - 0xa8]
call fcn.00405220
push eax
lea ecx, [ebp - 0x3c]
call fcn.00417390
lea ecx, [ebp - 0xa8]
call fcn.00405270
jmp 0x417ab1
lea ecx, [ebp - 0x3c]
call fcn.00417270
lea ecx, [ebp - 0x3c]
call fcn.00406b80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.0041b9a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x78]
call fcn.00405270
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00406a80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret