Function at 0x41cbc0
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Get socket status
Receive data
Receive data on socket
Resolve dns
Resolve function by parsing pe exports
Send data
Send data on socket

Disassembly:
mov eax, 0x1170
call fcn.00457d20
mov al, byte [0x493b50]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov byte [esp + 0x17c], al
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x17d]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 4]
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov ecx, dword [eax + 0x410c]
lea esi, [eax + 0x4110]
cmp ecx, ebx
jne 0x41cc0b
lea esi, [eax + 0x552c]
mov word [esp + 0x40], 2
mov ecx, dword [eax + 0x410c]
cmp ecx, ebx
je 0x41cc24
mov eax, dword [eax + 0x4910]
jmp 0x41cc2a
mov eax, dword [eax + 0x7930]
push eax
call dword [sym.imp.WS2_32.dll_htons]
push esi
mov word [esp + 0x46], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0x44], eax
jne 0x41cc60
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x41cedc
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 0x44], eax
mov edi, dword [esp + 0x1188]
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x50]
push 0x10
push ecx
push edi
call dword [sym.imp.WS2_32.dll_WSAConnect]
test eax, eax
jne 0x41cedc
mov eax, dword [ebp + 4]
cmp dword [eax + 0x410c], ebx
je 0x41cca3
add eax, 0x4510
push 0x48ea80
push eax
call fcn.0045c970
add esp, 8
test eax, eax
je 0x41ccd9
mov eax, dword [ebp + 4]
cmp dword [eax + 0x410c], ebx
jne 0x41cedc
cmp dword [eax + 0x511c], ebx
je 0x41cedc
add eax, 0x692c
push 0x48ea80
push eax
call fcn.0045c970
add esp, 8
test eax, eax
jne 0x41cedc
mov eax, dword [ebp + 4]
mov dword [esp + 0x10], ebx
cmp dword [eax + 0x410c], ebx
je 0x41ccf0
mov eax, dword [eax + 0x4914]
jmp 0x41ccf6
mov eax, dword [eax + 0x7944]
cmp eax, ebx
mov byte [esp + 0x17c], 5
je 0x41cf02
lea edx, [esp + 0x17c]
push 4
push edx
push edi
mov ecx, ebp
mov byte [esp + 0x189], 2
mov byte [esp + 0x18a], 0
mov byte [esp + 0x18b], 2
mov dword [esp + 0x1c], 4
call fcn.0041c1d0
mov ebx, dword [esp + 0x1184]
lea eax, [esp + 0x10]
push 8
lea ecx, [esp + 0x180]
push eax
push ecx
push ebx
push edi
mov ecx, ebp
mov dword [esp + 0x24], 2
call fcn.0041c300
cmp byte [esp + 0x17c], 5
jne 0x41cedc
mov al, byte [esp + 0x17d]
cmp al, 2
jne 0x41ceeb
mov edx, dword [ebp + 4]
mov byte [esp + 0x17c], 1
mov eax, dword [edx + 0x410c]
lea edi, [edx + 0x4918]
test eax, eax
jne 0x41cd9d
lea edi, [edx + 0x7d54]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [edx + 0x4918]
mov ebx, ecx
mov dword [esp + 0x10], ebx
mov byte [esp + 0x17d], bl
mov eax, dword [edx + 0x410c]
test eax, eax
jne 0x41cdca
lea edi, [edx + 0x7d54]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea esi, [esp + 0x17e]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x14], esi
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add ebx, 2
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], ebx
mov eax, dword [edx + 0x410c]
test eax, eax
lea edi, [edx + 0x4d18]
jne 0x41ce11
lea edi, [edx + 0x9154]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [edx + 0x4d18]
mov byte [esp + ebx + 0x17c], cl
mov eax, dword [edx + 0x410c]
test eax, eax
jne 0x41ce38
lea edi, [edx + 0x9154]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea esi, [esp + ebx + 0x17d]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x14], esi
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [edx + 0x410c]
test eax, eax
je 0x41ce74
add edx, 0x4d18
jmp 0x41ce7a
add edx, 0x9154
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [esp + 0x1188]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [ebx + ecx + 1]
lea ecx, [esp + 0x17c]
push ebx
push ecx
push esi
mov ecx, ebp
mov dword [esp + 0x1c], ebx
call fcn.0041c1d0
mov ecx, dword [esp + 0x1184]
lea edx, [esp + 0x10]
push 8
lea eax, [esp + 0x180]
push edx
push eax
push ecx
push esi
mov ecx, ebp
mov dword [esp + 0x24], 2
call fcn.0041c300
mov al, byte [esp + 0x17d]
test al, al
je 0x41cf72
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1170
ret 0x18
test al, al
je 0x41cf80
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1170
ret 0x18
lea edx, [esp + 0x17c]
push 3
push edx
push edi
mov ecx, ebp
mov byte [esp + 0x189], 1
mov byte [esp + 0x18a], 0
mov dword [esp + 0x1c], 3
call fcn.0041c1d0
mov edx, dword [esp + 0x1184]
lea eax, [esp + 0x10]
push 8
lea ecx, [esp + 0x180]
push eax
push ecx
push edx
push edi
mov ecx, ebp
mov dword [esp + 0x24], 2
call fcn.0041c300
cmp byte [esp + 0x17c], 5
jne 0x41cedc
mov al, byte [esp + 0x17d]
test al, al
jne 0x41cedc
jmp 0x41cf79
mov edi, dword [esp + 0x1188]
mov ebx, dword [esp + 0x1184]
mov esi, dword [sym.imp.WS2_32.dll_getsockname]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x58]
push eax
push ecx
push edi
mov byte [esp + 0x188], 5
mov byte [esp + 0x189], 3
mov byte [esp + 0x18a], 0
mov byte [esp + 0x18b], 1
mov dword [esp + 0x1c], 0x10
call esi
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x10]
mov dword [esp + 0x180], edx
mov edx, dword [ebx + 8]
lea ecx, [esp + 0x58]
push eax
push ecx
push edx
call esi
mov ax, word [esp + 0x5a]
mov esi, 0xa
lea ecx, [esp + 0x17c]
push esi
push ecx
push edi
mov ecx, ebp
mov word [esp + 0x190], ax
mov dword [esp + 0x1c], esi
call fcn.0041c1d0
lea edx, [esp + 0x10]
push 8
lea eax, [esp + 0x180]
push edx
push eax
push ebx
push edi
mov ecx, ebp
mov dword [esp + 0x24], esi
call fcn.0041c300
cmp byte [esp + 0x17c], 5
jne 0x41cedc
mov al, byte [esp + 0x17d]
test al, al
jne 0x41cedc
mov edx, dword [esp + 0x44]
mov ax, word [esp + 0x184]
xor ecx, ecx
mov esi, dword [ebx + 8]
mov dword [esp + 0x30], ecx
mov word [esp + 0x32], ax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x34], edx
mov edx, dword [ebx + 4]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x20], edx
mov edx, dword [ebx + 0x1c]
mov ecx, 2
xor eax, eax
cmp edx, ecx
mov word [esp + 0x30], cx
mov dword [esp + 0x50], 1
mov dword [esp + 0x54], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
jne 0x41d2c6
jmp 0x41d09a
xor eax, eax
cmp dword [ebp + 8], eax
je 0x41d2c6
mov edx, 1
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], edx
lea ecx, [esp + 0x7c]
mov ebx, dword [esp + 0x20]
cmp dword [ecx], ebx
je 0x41d0c5
inc eax
add ecx, 4
cmp eax, 1
jb 0x41d0b4
cmp eax, 1
jne 0x41d0da
mov edx, 2
mov dword [esp + 0x80], ebx
mov dword [esp + 0x78], edx
xor ebx, ebx
xor eax, eax
cmp edx, ebx
jbe 0x41d0f2
lea ecx, [esp + 0x7c]
cmp dword [ecx], edi
je 0x41d0f2
inc eax
add ecx, 4
cmp eax, edx
jb 0x41d0e6
cmp eax, edx
jne 0x41d108
cmp edx, 0x40
jae 0x41d108
mov dword [esp + eax*4 + 0x7c], edi
mov eax, dword [esp + 0x78]
inc eax
mov dword [esp + 0x78], eax
lea eax, [esp + 0x50]
lea ecx, [esp + 0x78]
push eax
push ebx
push ebx
push ecx
push 0x40
call dword [sym.imp.WS2_32.dll_select]
cmp eax, ebx
jne 0x41d148
mov edx, dword [ebp + 4]
mov eax, dword [edx + 0xa9b8]
cmp eax, 0xffffffff
je 0x41d22c
mov ecx, dword [esp + 0x1c]
inc ecx
cmp ecx, eax
mov dword [esp + 0x1c], ecx
jg 0x41cedc
jmp 0x41d22c
cmp eax, ebx
mov dword [esp + 0x1c], ebx
jl 0x41d2c6
lea eax, [esp + 0x78]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41d20a
mov eax, 0xff6
lea ecx, [esp + 0x186]
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], eax
push ebx
lea edx, [esp + 0x30]
mov dword [esp + 0x2c], ecx
push ebx
lea eax, [esp + 0x70]
push edx
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x28]
push ecx
push edx
lea eax, [esp + 0x3c]
push 1
push eax
push esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x50], 0x10
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
mov eax, dword [esp + 0x18]
cmp eax, ebx
jbe 0x41d24f
mov ecx, dword [esp + 0x28]
push eax
push ecx
mov ecx, ebp
call fcn.00419520
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x1190]
cmp edx, eax
jne 0x41d1ee
mov ax, word [esp + 0x6a]
cmp ax, word [esp + 0x118e]
jne 0x41d1ee
push 0x10
lea ecx, [esp + 0x34]
jmp 0x41d1f7
push 0x10
lea ecx, [esp + 0x1190]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
push ecx
push ebx
push edx
push eax
push esi
call dword [sym.imp.WS2_32.dll_sendto]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x78]
push ecx
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x41d264
lea eax, [esp + 0x78]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x41d2a0
mov ecx, dword [esp + 0x1184]
cmp dword [ecx + 0x1c], 2
je 0x41d098
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1170
ret 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1170
ret 0x18
mov ecx, dword [esp + 0x1184]
lea edx, [esp + 0x10]
push ebx
lea eax, [esp + 0x180]
push edx
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
mov ecx, ebp
mov dword [esp + 0x24], 0x1000
call fcn.0041c300
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1170
ret 0x18
mov edx, dword [esp + 0x1184]
lea eax, [esp + 0x10]
push ebx
lea ecx, [esp + 0x180]
push eax
push ecx
push edx
push edi
mov ecx, ebp
mov dword [esp + 0x24], 0x1000
call fcn.0041c300
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1170
ret 0x18