Function at 0x414720
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x608366
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xdc
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xe8]
mov ecx, 0x37
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 0x10], ecx
push 0
call fcn.0060262b
lea ecx, [ebp - 0x28]
call fcn.0059c547
mov dword [ebp - 4], 0
mov esi, esp
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
cmp esi, esp
call fcn.004d6760
mov dword [ebp - 0x14], eax
mov word [ebp - 0x24], 2
mov esi, esp
push 0x21ee
call dword [sym.imp.WSOCK32.dll_htons]
cmp esi, esp
call fcn.004d6760
mov word [ebp - 0x22], ax
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.0059c5ea
mov esi, esp
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp esi, esp
call fcn.004d6760
mov dword [ebp - 0x20], eax
mov esi, esp
push 0x10
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.WSOCK32.dll_connect]
cmp esi, esp
call fcn.004d6760
test eax, eax
je 0x41487e
mov esi, esp
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp esi, esp
call fcn.004d6760
push eax
push 0x6f2650
lea edx, [ebp - 0x28]
push edx
call fcn.00513ea6
add esp, 0xc
push 0
push 0
lea eax, [ebp - 0x28]
push eax
push 0x6f3084
lea ecx, [ebp - 0x68]
push ecx
call fcn.0053f17c
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x94], edx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x94]
call fcn.0059c5ea
push eax
call fcn.0056b3c1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.0053ec5c
mov esi, esp
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
cmp esi, esp
call fcn.004d6760
mov dword [ebp - 0x6c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0053ec5c
mov eax, dword [ebp - 0x6c]
jmp 0x414bed
lea ecx, [ebp - 0x38]
call fcn.0054a440
mov byte [ebp - 4], 2
push 0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x50]
call fcn.0059c281
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x50]
push ecx
push 0x9001
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.0059c5ea
push eax
lea ecx, [ebp - 0x38]
call fcn.0054a7a3
test eax, eax
jne 0x414914
push 0
push 0
push 0x6f3070
call fcn.0056b3c1
mov esi, esp
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.WSOCK32.dll_closesocket]
cmp esi, esp
call fcn.004d6760
mov dword [ebp - 0x70], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
call fcn.0059c2ff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.0054a5ee
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0053ec5c
mov eax, dword [ebp - 0x70]
jmp 0x414bed
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x5c], 0
mov esi, esp
push 0
push 4
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.WSOCK32.dll_recv]
cmp esi, esp
call fcn.004d6760
test eax, eax
jge 0x414a00
mov esi, esp
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp esi, esp
call fcn.004d6760
push eax
push 0x6f2650
lea edx, [ebp - 0x28]
push edx
call fcn.00513ea6
add esp, 0xc
push 0
push 0
lea eax, [ebp - 0x28]
push eax
push 0x6f3054
lea ecx, [ebp - 0x74]
push ecx
call fcn.0053f17c
mov dword [ebp - 0x98], eax
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0x9c], edx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x9c]
call fcn.0059c5ea
push eax
call fcn.0056b3c1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x74]
call fcn.0053ec5c
lea ecx, [ebp - 0x38]
call fcn.0054ae41
mov esi, esp
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
cmp esi, esp
call fcn.004d6760
mov dword [ebp - 0x78], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
call fcn.0059c2ff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.0054a5ee
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0053ec5c
mov eax, dword [ebp - 0x78]
jmp 0x414bed
mov esi, esp
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.WSOCK32.dll_ntohl]
cmp esi, esp
call fcn.004d6760
mov dword [ebp - 0x54], eax
movsx edx, word [0x72422c]
add edx, 0x33
push edx
push 0x7241b8
push 0x1000
call fcn.0053e443
add esp, 0xc
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x58], ecx
cmp dword [ebp - 0x58], 0x1000
jae 0x414a56
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0xa0], edx
jmp 0x414a60
mov dword [ebp - 0xa0], 0x1000
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x60], eax
mov esi, esp
push 0
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.WSOCK32.dll_recv]
cmp esi, esp
call fcn.004d6760
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0xffffffff
jne 0x414b6c
mov esi, esp
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp esi, esp
call fcn.004d6760
push eax
push 0x6f2650
lea ecx, [ebp - 0x28]
push ecx
call fcn.00513ea6
add esp, 0xc
push 0
push 0
lea edx, [ebp - 0x28]
push edx
push 0x6f303c
lea eax, [ebp - 0x80]
push eax
call fcn.0053f17c
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], ecx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0xa8]
call fcn.0059c5ea
push eax
call fcn.0056b3c1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x80]
call fcn.0053ec5c
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x84], edx
mov eax, dword [ebp - 0x84]
push eax
call fcn.0053e819
add esp, 4
lea ecx, [ebp - 0x38]
call fcn.0054ae41
mov esi, esp
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.WSOCK32.dll_closesocket]
cmp esi, esp
call fcn.004d6760
mov dword [ebp - 0x88], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
call fcn.0059c2ff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.0054a5ee
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0053ec5c
mov eax, dword [ebp - 0x88]
jmp 0x414bed
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x38]
call fcn.0054abd7
mov ecx, dword [ebp - 0x58]
sub ecx, dword [ebp - 0x64]
mov dword [ebp - 0x58], ecx
cmp dword [ebp - 0x58], 0
ja 0x414a42
mov edx, dword [ebp - 0x5c]
push edx
call fcn.004d7330
add esp, 4
lea ecx, [ebp - 0x38]
call fcn.0054ae41
mov esi, esp
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
cmp esi, esp
call fcn.004d6760
mov dword [ebp - 0x8c], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
call fcn.0059c2ff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.0054a5ee
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0053ec5c
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xe8
cmp ebp, esp
call fcn.004d6760
mov esp, ebp
pop ebp
ret