Function at 0x41bb50
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x4cf0c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x54], ecx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0xc]
cmp ecx, 8
jne 0x41bb86
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 0xd]
test eax, eax
jne 0x41bb86
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0x17]
cmp edx, 0x11
je 0x41bb8b
jmp 0x41bd5d
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x21]
cmp ecx, 0xff
je 0x41bb9f
jmp 0x41bd5d
cmp dword [ebp + 0x14], 0x2a
jge 0x41bbaa
jmp 0x41bd5d
mov dword [ebp - 0x50], 0
push 0x14
push 0
lea edx, [ebp - 0x18]
push edx
call fcn.00474130
add esp, 0xc
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x1d]
push ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 0x1c]
push eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0x1b]
push edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x1a]
push ecx
push 0x12
push 0x49dfe8
lea edx, [ebp - 0x18]
push edx
call fcn.0041e4a0
add esp, 0x1c
push 0x14
push 0
lea eax, [ebp - 0x2c]
push eax
call fcn.00474130
add esp, 0xc
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0x21]
push edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x20]
push ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 0x1f]
push eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0x1e]
push edx
push 0x12
push str._d._d._d._d
lea eax, [ebp - 0x2c]
push eax
call fcn.0041e4a0
add esp, 0x1c
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0x22]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x23]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x30]
shl edx, 8
add edx, dword [ebp - 0x4c]
movzx eax, dx
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0x24]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x25]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x30]
shl edx, 8
add edx, dword [ebp - 0x4c]
movzx eax, dx
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x48], 0x1b59
jne 0x41bcd2
mov dword [ebp - 0x50], 0x193
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx + 0x2d]
xor eax, eax
cmp edx, 0xfffffffa
sete al
and eax, dword [ebp - 0x50]
je 0x41bcd2
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x2d], 0xfb
mov dword [ebp - 0x50], 0x1f7
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.00474a90
add esp, 4
add eax, 2
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x36
push ecx
call fcn.00474a28
add esp, 0xc
mov edx, dword [ebp + 0x14]
sub edx, 0x2a
cmp edx, 0x100
jne 0x41bd18
lea eax, [ebp - 0x18]
push eax
call fcn.00474a90
add esp, 4
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x110], al
lea edx, [ebp - 0x18]
push edx
call fcn.00474a90
add esp, 4
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x111
push ecx
call fcn.00476380
add esp, 0xc
mov edx, 2
mov word [ebp - 0x44], dx
mov eax, dword [ebp + 0x10]
push eax
call sub.WS2_32.dll_inet_addr
mov dword [ebp - 0x40], eax
movzx ecx, word [ebp - 0x50]
push ecx
call sub.WS2_32.dll_htons
mov word [ebp - 0x42], ax
push 0x10
lea edx, [ebp - 0x44]
push edx
push 0
mov eax, dword [ebp + 0x14]
sub eax, 0x2a
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x2a
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.WS2_32.dll_sendto
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00474590
mov esp, ebp
pop ebp
ret 0x10