Function at 0x10056a88
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
push 0x14
call fcn.10101428
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 5
rep stosd dword es:[edi], eax
add ebx, 8
push ebx
push 0x109
call fcn.10101428
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x1013a1c3
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x101
rep stosb byte es:[edi], al
add ebx, 4
push ebx
push 0x109
call fcn.10101428
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x1013a1c3
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x101
rep stosb byte es:[edi], al
push 0x10
call fcn.10101428
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
add ebx, 0xc
push ebx
push 0x10
call fcn.10101428
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x1013a193
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], esp
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x10056b94
push 0x19
push 0x4242ffd
push 6
call fcn.1010142e
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x10056d3a
mov dword [ebp - 0x14], esp
mov eax, dword [ebp - 8]
push eax
push 0x208
call fcn.10101428
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 0x101
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 0x101
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x10056c37
push 0xac
push 0x4242ffd
push 6
call fcn.1010142e
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x18]
push ebx
mov edi, dword [ebp - 0x1c]
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
push ebx
push edi
push 1
mov eax, 2
call fcn.10102320
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x10056c84
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x10056c82
imul eax, dword [edi]
jmp 0x10056c77
mov ecx, eax
cmp ecx, 0x101
jle 0x10056c91
mov ecx, 0x101
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0x101
push ebx
push edi
push 1
mov eax, 2
call fcn.10102320
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x10056ccf
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x10056ccd
imul eax, dword [edi]
jmp 0x10056cc2
mov ecx, eax
cmp ecx, 0x101
jle 0x10056cdc
mov ecx, 0x101
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0x101
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
call fcn.10101422
add esp, 4
pop eax
mov dword [ebp - 0x14], esp
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x10056d37
push 0xe8
push 0x4242ffd
push 6
call fcn.1010142e
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x10056eec
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov word [ebx], 2
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esp
push 0x13ad
call dword [sym.imp.WS2_32.dll_htons]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x10056d89
push 0x19d
push 0x4242ffd
push 6
call fcn.1010142e
add esp, 0xc
mov ebx, dword [ebp - 0x14]
mov word [ebx], ax
mov ebx, dword [ebp - 0xc]
add ebx, 8
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esp
push str.127.0.0.1
call dword [sym.imp.WS2_32.dll_inet_addr]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x10056dc6
push 0x1dc
push 0x4242ffd
push 6
call fcn.1010142e
add esp, 0xc
mov ebx, dword [ebp - 0x14]
mov dword [ebx], eax
mov ebx, dword [ebp - 0xc]
add ebx, 8
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
cmp dword [ebx], 0xffffffff
je 0x10056eec
mov dword [ebp - 0x14], esp
push 0x10
mov eax, dword [ebp - 0xc]
push eax
push 0x10
call fcn.10101428
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 8
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_connect]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x10056e62
push 0x26b
push 0x4242ffd
push 6
call fcn.1010142e
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x18]
push ebx
mov edi, dword [ebp - 0x1c]
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
push edi
push 1
mov eax, 2
call fcn.10102320
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x10056eb9
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x10056eb7
imul eax, dword [edi]
jmp 0x10056eac
mov ecx, eax
cmp ecx, 8
jle 0x10056ec3
mov ecx, 8
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 8
call fcn.10101422
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x10056eec
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 0
jne 0x10056f07
cmp dword [ebp - 4], 0
je 0x10056f07
mov eax, 1
jmp 0x10056f0c
mov eax, 0
test eax, eax
je 0x10056f47
mov dword [ebp - 0x14], esp
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_closesocket]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x10056f40
push 0x346
push 0x4242ffd
push 6
call fcn.1010142e
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0xffffffff
jne 0x10056f58
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x10056f60
push eax
mov ebx, dword [ebp - 8]
push ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.10101422
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.10101422
add esp, 4
pop ebx
call fcn.10101422
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
add ebx, 0xc
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.10101422
add esp, 4
pop ebx
call fcn.10101422
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret