Function at 0x411620
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Get socket status
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x2d4
push ebx
lea eax, [esp + 0x148]
push esi
mov esi, 1
push eax
push 0x101
mov dword [esp + 0x20], esi
call sub.WSOCK32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x411657
pop esi
mov eax, 0x1d4e8
pop ebx
add esp, 0x2d4
ret
xor eax, eax
push ebp
mov ax, word [0x44d95e]
mov byte [0x44d975], 1
dec eax
je 0x411683
sub eax, 7
je 0x41167c
sub eax, 8
jne 0x411698
push 0
push 2
push 2
jmp 0x41168c
push 0
push esi
push 2
jmp 0x41168c
push 0x3e8
push 2
push 6
call sub.WSOCK32.dll_socket
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4116a2
mov ebx, 0x1d4e9
jmp 0x411e0e
xor eax, eax
push edi
mov ax, word [0x44d95e]
dec eax
je 0x411bb4
sub eax, 7
je 0x41192f
sub eax, 8
jne 0x411e07
lea ecx, [esp + 0x1c]
push 4
push ecx
push 4
push 0xffff
push ebp
mov dword [esp + 0x30], esi
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x4116eb
mov ebx, 0x1d4ea
jmp 0x411e07
push 0x10
lea edx, [esp + 0x2c]
push 0
push edx
call fcn.00410b10
add esp, 0xc
mov word [esp + 0x28], 2
push 0
call sub.WSOCK32.dll_htonl
push 0
mov dword [esp + 0x30], eax
call sub.WSOCK32.dll_htons
mov word [esp + 0x2a], ax
lea eax, [esp + 0x28]
push 0x10
push eax
push ebp
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x411736
mov ebx, 0x1d4eb
jmp 0x411e07
lea ecx, [esp + 0x20]
push ecx
push 0x8004667e
push ebp
call sub.WSOCK32.dll_ioctlsocket
cmp eax, 0xffffffff
jne 0x411755
mov ebx, 0x1d4ec
jmp 0x411e07
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, eax
call esi
mov esi, dword [esp + 0x2e8]
add eax, 0x12c
cmp eax, ebx
mov dword [esp + 0x14], eax
jbe 0x4117c0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
push 0x10
mov dx, word [esi + 8]
mov ebx, eax
mov eax, dword [esi + 4]
push 0x44d965
push 0
push edx
push eax
push ebp
call sub.WSOCK32.dll_sendto
mov edi, eax
cmp edi, 0xffffffff
jne 0x4117b0
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x411e02
jmp 0x4117b8
cmp edi, 0x135
je 0x4117c4
cmp dword [esp + 0x14], ebx
ja 0x411775
jmp 0x4117c4
mov edi, dword [esp + 0x20]
cmp dword [esp + 0x14], ebx
jbe 0x411e02
mov eax, dword [esi + 0xa]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x18], ebx
je 0x411e07
cmp dword [esp + 0x18], 0x14
jge 0x411925
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov dword [esp + 0x10], eax
call ebx
mov ecx, dword [esp + 0x10]
add eax, 0x12c
cmp eax, ecx
mov dword [esp + 0x14], eax
jbe 0x4118a6
jmp 0x411815
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov edx, dword [esi + 0xe]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x24]
xor eax, eax
mov dword [esp + 0x24], 0x10
mov ax, word [edx]
push ecx
mov ecx, dword [esi + 0xa]
push 0x44d965
push 0
push eax
push ecx
push ebp
call sub.WSOCK32.dll_recvfrom
mov edi, eax
cmp edi, 0xffffffff
je 0x411877
test edi, edi
je 0x411877
cmp edi, 0x125
jne 0x411883
mov edx, dword [esi + 0xe]
xor ecx, ecx
mov word [edx], ax
mov eax, dword [esi + 0xe]
mov cx, word [eax]
push ecx
push esi
call dword [esi + 0x12]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x411e07
jmp 0x411883
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x41188f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp eax, edx
ja 0x41180f
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ecx
jbe 0x4118a6
cmp edi, 0xffffffff
jne 0x41191c
call ebx
mov dword [esp + 0x10], eax
call ebx
mov ecx, dword [esp + 0x10]
add eax, 0x12c
cmp eax, ecx
mov dword [esp + 0x14], eax
jbe 0x41190c
call ebx
mov ecx, dword [esi + 4]
mov dword [esp + 0x10], eax
xor eax, eax
push 0x10
mov ax, word [esi + 8]
push 0x44d965
push 0
push eax
push ecx
push ebp
call sub.WSOCK32.dll_sendto
mov edi, eax
cmp edi, 0xffffffff
jne 0x4118f8
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x411e02
jmp 0x411900
cmp edi, 0x135
je 0x41190c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp eax, edx
ja 0x4118bf
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jbe 0x411e02
inc dword [esp + 0x18]
jmp 0x4117df
mov ebx, 0x1d4f8
jmp 0x411e07
lea ecx, [esp + 0x1c]
push 4
push ecx
push 4
push 0xffff
push ebp
mov dword [esp + 0x30], esi
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x411956
mov ebx, 0x1d4ea
jmp 0x411e07
push 0x10
lea edx, [esp + 0x2c]
push 0
push edx
call fcn.00410b10
add esp, 0xc
mov word [esp + 0x28], 2
push 0
call sub.WSOCK32.dll_htonl
push 0
mov dword [esp + 0x30], eax
call sub.WSOCK32.dll_htons
mov word [esp + 0x2a], ax
lea eax, [esp + 0x28]
push 0x10
push eax
push ebp
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x4119a1
mov ebx, 0x1d4eb
jmp 0x411e07
push 0x10
push 0x44d965
push ebp
call sub.WSOCK32.dll_connect
mov edi, eax
cmp edi, 0xffffffff
jne 0x4119cb
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4119cb
mov ebx, 0x1d4f0
jmp 0x411e07
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, eax
call esi
mov esi, dword [esp + 0x2e8]
add eax, 0x12c
cmp eax, ebx
mov dword [esp + 0x14], eax
jbe 0x411a34
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esi + 4]
xor ecx, ecx
mov cx, word [esi + 8]
push 0x10
push 0x44d965
push 0
push ecx
push edx
push ebp
mov ebx, eax
call sub.WSOCK32.dll_sendto
mov edi, eax
cmp edi, 0xffffffff
jne 0x411a26
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x411e02
jmp 0x411a2e
cmp edi, 0x135
je 0x411a34
cmp dword [esp + 0x14], ebx
ja 0x4119eb
cmp dword [esp + 0x14], ebx
jbe 0x411e02
mov eax, dword [esi + 0xa]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x18], ebx
je 0x411e07
cmp dword [esp + 0x18], 0x14
jge 0x411925
lea eax, [esp + 0x38]
lea ecx, [esp + 0x50]
push eax
push 0
push 0
push ecx
push 0x40
mov dword [esp + 0x68], ebp
mov dword [esp + 0x64], 1
mov dword [esp + 0x4c], 2
mov dword [esp + 0x50], 0
call sub.WSOCK32.dll_select
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov dword [esp + 0x10], eax
call ebx
mov ecx, dword [esp + 0x10]
add eax, 0x12c
cmp eax, ecx
mov dword [esp + 0x14], eax
jbe 0x411b35
jmp 0x411ab6
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov edx, dword [esi + 0xe]
mov ecx, dword [esi + 0xa]
mov dword [esp + 0x10], eax
xor eax, eax
mov ax, word [edx]
push 0
push eax
push ecx
push ebp
call sub.WSOCK32.dll_recv
mov edi, eax
cmp edi, 0xffffffff
je 0x411b06
test edi, edi
je 0x411b06
cmp edi, 0x125
jne 0x411b12
mov edx, dword [esi + 0xe]
xor ecx, ecx
mov word [edx], ax
mov eax, dword [esi + 0xe]
mov cx, word [eax]
push ecx
push esi
call dword [esi + 0x12]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x411e07
jmp 0x411b12
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x411b1e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp eax, edx
ja 0x411ab0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ecx
jbe 0x411b35
cmp edi, 0xffffffff
jne 0x411bab
call ebx
mov dword [esp + 0x10], eax
call ebx
mov ecx, dword [esp + 0x10]
add eax, 0x12c
cmp eax, ecx
mov dword [esp + 0x14], eax
jbe 0x411b9b
call ebx
mov ecx, dword [esi + 4]
mov dword [esp + 0x10], eax
xor eax, eax
push 0x10
mov ax, word [esi + 8]
push 0x44d965
push 0
push eax
push ecx
push ebp
call sub.WSOCK32.dll_sendto
mov edi, eax
cmp edi, 0xffffffff
jne 0x411b87
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x411e02
jmp 0x411b8f
cmp edi, 0x135
je 0x411b9b
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp eax, edx
ja 0x411b4e
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jbe 0x411e02
inc dword [esp + 0x18]
jmp 0x411a4f
lea ecx, [esp + 0x1c]
push 4
push ecx
push 4
push 0xffff
push ebp
mov dword [esp + 0x30], esi
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x411bdb
mov ebx, 0x1d4ea
jmp 0x411e07
push 0xe
lea edx, [esp + 0x44]
push 0
push edx
call fcn.00410b10
add esp, 0xc
mov word [esp + 0x40], 6
push 0
call sub.WSOCK32.dll_htons
mov word [esp + 0x4c], ax
lea eax, [esp + 0x40]
push 0xe
push eax
push ebp
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x411c1b
mov ebx, 0x1d4eb
jmp 0x411e07
lea ecx, [esp + 0x20]
push ecx
push 0x8004667e
push ebp
call sub.WSOCK32.dll_ioctlsocket
cmp eax, 0xffffffff
jne 0x411c3a
mov ebx, 0x1d4ec
jmp 0x411e07
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, eax
call esi
mov esi, dword [esp + 0x2e8]
add eax, 0x12c
cmp eax, ebx
mov dword [esp + 0x14], eax
jbe 0x411ca5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
push 0xe
mov dx, word [esi + 8]
mov ebx, eax
mov eax, dword [esi + 4]
push 0x44d965
push 0
push edx
push eax
push ebp
call sub.WSOCK32.dll_sendto
mov edi, eax
cmp edi, 0xffffffff
jne 0x411c95
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x411e02
jmp 0x411c9d
cmp edi, 0x135
je 0x411ca9
cmp dword [esp + 0x14], ebx
ja 0x411c5a
jmp 0x411ca9
mov edi, dword [esp + 0x20]
cmp dword [esp + 0x14], ebx
jbe 0x411e02
mov eax, dword [esi + 0xa]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x18], ebx
je 0x411e07
cmp dword [esp + 0x18], 0x14
jge 0x411925
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov dword [esp + 0x10], eax
call ebx
mov ecx, dword [esp + 0x10]
add eax, 0x12c
cmp eax, ecx
mov dword [esp + 0x14], eax
jbe 0x411d8b
jmp 0x411cfa
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov edx, dword [esi + 0xe]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x24]
xor eax, eax
mov dword [esp + 0x24], 0xe
mov ax, word [edx]
push ecx
mov ecx, dword [esi + 0xa]
push 0x44d965
push 0
push eax
push ecx
push ebp
call sub.WSOCK32.dll_recvfrom
mov edi, eax
cmp edi, 0xffffffff
je 0x411d5c
test edi, edi
je 0x411d5c
cmp edi, 0x125
jne 0x411d68
mov edx, dword [esi + 0xe]
xor ecx, ecx
mov word [edx], ax
mov eax, dword [esi + 0xe]
mov cx, word [eax]
push ecx
push esi
call dword [esi + 0x12]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x411e07
jmp 0x411d68
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x411d74
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp eax, edx
ja 0x411cf4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ecx
jbe 0x411d8b
cmp edi, 0xffffffff
jne 0x411df9
call ebx
mov dword [esp + 0x10], eax
call ebx
mov ecx, dword [esp + 0x10]
add eax, 0x12c
cmp eax, ecx
mov dword [esp + 0x14], eax
jbe 0x411ded
call ebx
mov ecx, dword [esi + 4]
mov dword [esp + 0x10], eax
xor eax, eax
push 0xe
mov ax, word [esi + 8]
push 0x44d965
push 0
push eax
push ecx
push ebp
call sub.WSOCK32.dll_sendto
mov edi, eax
cmp edi, 0xffffffff
jne 0x411dd9
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x411e02
jmp 0x411de1
cmp edi, 0x135
je 0x411ded
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp eax, edx
ja 0x411da4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jbe 0x411e02
inc dword [esp + 0x18]
jmp 0x411cc4
mov ebx, 0x1d4ed
push ebp
call sub.WSOCK32.dll_closesocket
pop edi
call sub.WSOCK32.dll_WSACleanup
pop ebp
mov eax, ebx
pop esi
mov byte [0x44d975], 0
pop ebx
add esp, 0x2d4
ret