Function at 0x41d850
Capabilities:
Connect socket
Connect udp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x441288]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, eax
mov dword [esi], ecx
cmp ecx, 0xffffffff
jne 0x41d8a9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.sock____failed:__d
call fcn.00416930
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e246
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x98], xmm0
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x98]
push 0x10
push eax
push ecx
mov dword [ebp - 0x98], 2
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x41d905
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.bind____failed:__d_n
call fcn.00416930
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e246
mov esp, ebp
pop ebp
ret 8
push 0x10
push edi
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x41d93d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.connect____failed:__d
call fcn.00416930
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e246
mov esp, ebp
pop ebp
ret 8
lea ecx, [esi + 4]
call fcn.0041dc90
test al, al
je 0x41d990
call fcn.0042158e
mov ecx, eax
mov eax, 0x51eb851f
imul ecx
mov ecx, 0x56
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cdq
idiv ecx
lea eax, [esi + 0xa6c]
push edx
push eax
lea ecx, [ebp - 0xa8]
mov dword [esi + 0xa74], edx
call fcn.004013b0
push eax
push str.__s__Delayed_transfer___d_steps.
call fcn.00416930
add esp, 0xc
cmp byte [esi + 0xa28], 0
jne 0x41d9b0
cmp byte [esi + 0xa29], 0
jne 0x41d9b0
push 1
mov ecx, esi
call fcn.0041ba20
jmp 0x41daf7
push 6
lea ebx, [esi + 0x20c]
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebx], ax
add ebx, 2
push 0x7f
lea eax, [ebp - 0x87]
mov byte [ebp - 0x88], 0
push 0
push eax
call fcn.00429040
add esp, 0xc
cmp byte [esi + 0xa28], 0
je 0x41da4f
lea edi, [esi + 0xa2a]
mov edx, 0x400
push edi
mov ecx, ebx
call fcn.00416d30
add esp, 4
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x41da00
push dword [esi + 0x204]
sub edi, ecx
push 0x43ecb4
inc edi
add edi, ebx
push 0x40
push edi
call fcn.00421d8f
mov ecx, edi
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41da27
push dword [esi + 0x204]
sub ecx, edx
lea eax, [ebp - 0x88]
push str.tsize__d
push eax
lea ebx, [ecx + 1]
add ebx, edi
call fcn.00416dc0
add esp, 0xc
cmp byte [esi + 0xa29], 0
je 0x41dae0
lea edi, [esi + 0xa4a]
mov edx, 0x400
push edi
mov ecx, ebx
call fcn.00416d30
add esp, 4
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x41da75
push dword [esi + 0xa24]
sub edi, ecx
push 0x43ecb4
inc edi
add edi, ebx
push 0x40
push edi
call fcn.00421d8f
add esp, 0x10
cmp byte [esi + 0xa28], 0
je 0x41dab0
mov edx, 0x43ecc4
lea ecx, [ebp - 0x88]
call fcn.00416de0
mov edx, str.blksize
lea ecx, [ebp - 0x88]
call fcn.00416de0
mov edx, edi
lea ecx, [ebp - 0x88]
call fcn.00416de0
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41dad2
sub ecx, edx
lea ebx, [ecx + 1]
add ebx, edi
sub ebx, esi
mov ecx, esi
sub ebx, 0x20c
push 0
mov dword [esi + 0xa0c], ebx
call fcn.0041b5b0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e246
mov esp, ebp
pop ebp
ret 8