Function at 0x13178ff4
Capabilities:
Query or enumerate registry value
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.131455c0
xor eax, eax
push ebp
push 0x131793ad
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x3c]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x131793c8
call fcn.131456c0
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.13145638
mov edx, dword [ebp - 0x3c]
mov eax, ebx
call fcn.131796b8
mov esi, eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x13179074
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 0x1c]
push eax
push 1
push 0
lea eax, [ebp - 0x40]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x131793c8
call fcn.131456c0
mov edx, eax
inc edx
mov ecx, ebx
mov eax, dword [ebp - 4]
call fcn.13145638
mov eax, dword [ebp - 0x40]
call fcn.131455d0
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, 0x3fff
call fcn.13142e8c
mov edi, eax
xor ebx, ebx
lea eax, [ebp - 0x28]
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
push edi
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumValueA
mov eax, dword [ebp - 0x28]
call fcn.13142e8c
mov esi, eax
mov dword [ebp - 0x24], 0x3fff
lea eax, [ebp - 0x28]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
push edi
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumValueA
mov ebx, eax
test ebx, ebx
jne 0x1317932d
lea eax, [ebp - 0xc]
call fcn.13145140
cmp dword [ebp - 0x2c], 4
jne 0x13179170
mov dword [ebp - 0x34], esi
push 0x131793d4
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
xor edx, edx
push edx
push eax
push 0
push 8
lea eax, [ebp - 0x44]
call fcn.1317c1d4
push dword [ebp - 0x44]
push 0x131793e0
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x48]
call fcn.1317c05c
push dword [ebp - 0x48]
push 0x131793ec
lea eax, [ebp - 0xc]
mov edx, 5
call fcn.131454d4
jmp 0x13179228
cmp dword [ebp - 0x2c], 3
jne 0x131791e1
cmp dword [ebp - 0x28], 0
jne 0x1317918e
lea eax, [ebp - 0xc]
mov edx, 0x131793f8
call fcn.131451d8
jmp 0x13179228
mov eax, dword [ebp - 0x28]
dec eax
test eax, eax
jl 0x13179228
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], 0
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x30]
movzx eax, byte [esi + eax]
movzx eax, al
xor edx, edx
push edx
push eax
push 0
push 2
lea eax, [ebp - 0x4c]
call fcn.1317c1d4
push dword [ebp - 0x4c]
push 0x1317940c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.131454d4
inc dword [ebp - 0x30]
dec dword [ebp - 0x38]
jne 0x131791a5
jmp 0x13179228
cmp dword [ebp - 0x2c], 7
jne 0x1317921e
mov eax, dword [ebp - 0x28]
dec eax
test eax, eax
jl 0x13179212
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x30]
cmp byte [esi + eax], 0
jne 0x1317920a
mov eax, dword [ebp - 0x30]
mov byte [esi + eax], 0x20
inc dword [ebp - 0x30]
dec dword [ebp - 0x38]
jne 0x131791fa
lea eax, [ebp - 0xc]
mov edx, esi
call fcn.13145338
jmp 0x13179228
lea eax, [ebp - 0xc]
mov edx, esi
call fcn.13145338
cmp byte [edi], 0
jne 0x1317923c
lea eax, [ebp - 0x10]
mov edx, 0x13179418
call fcn.131451d8
jmp 0x13179246
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.13145338
mov eax, dword [ebp - 0x2c]
cmp eax, 7
ja case.default.0x13179252
jmp dword [eax*4 + 0x13179259]
lea eax, [ebp - 8]
mov edx, 0x13179428
call fcn.131451d8
jmp case.default.0x13179252
lea eax, [ebp - 8]
mov edx, 0x1317943c
call fcn.131451d8
jmp case.default.0x13179252
lea eax, [ebp - 8]
mov edx, 0x13179450
call fcn.131451d8
jmp case.default.0x13179252
lea eax, [ebp - 8]
mov edx, 0x13179470
call fcn.131451d8
jmp case.default.0x13179252
lea eax, [ebp - 8]
mov edx, 0x13179488
call fcn.131451d8
jmp case.default.0x13179252
lea eax, [ebp - 8]
mov edx, 0x1317949c
call fcn.131451d8
jmp case.default.0x13179252
lea eax, [ebp - 8]
mov edx, 0x131794b4
call fcn.131451d8
jmp case.default.0x13179252
lea eax, [ebp - 8]
mov edx, 0x131794c8
call fcn.131451d8
cmp dword [ebp - 0xc], 0
jne 0x13179302
lea eax, [ebp - 0xc]
mov edx, 0x1317940c
call fcn.131451d8
push dword [ebp - 0x14]
push 0x131794d8
push dword [ebp - 0x10]
push 0x131794e4
push dword [ebp - 8]
push 0x131794e4
push dword [ebp - 0xc]
lea eax, [ebp - 0x14]
mov edx, 7
call fcn.131454d4
inc dword [ebp - 0x20]
test ebx, ebx
je 0x131790bc
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
push 0
push 0x24
lea eax, [ebp - 0x50]
call fcn.1317c05c
push dword [ebp - 0x50]
push dword [ebp - 0x14]
push 0x131794f0
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.131454d4
lea eax, [ebp - 0x14]
call fcn.13145630
mov edx, eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x13179378
sub eax, 4
mov eax, dword [eax]
push 0
push eax
push edx
mov eax, dword [ebp - 0x18]
push eax
call sub.wsock32.dll_send
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x131793b4
lea eax, [ebp - 0x50]
mov edx, 6
call fcn.13145164
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.13145164
ret