Function at 0x4eed50
Capabilities:
Initialize winsock library
Send data
Send data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x5d8]
sub esp, 0x5d8
push 0xffffffffffffffff
push 0x58c5c8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x5cca0c]
xor eax, ebp
mov dword [ebp + 0x5d4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x5e0]
mov edi, ecx
cmp dword [edi + 0xd0], 0
je 0x4eeee9
test eax, eax
je 0x4eeee9
mov ebx, dword [ebp + 0x5e4]
test bx, bx
je 0x4eeee9
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x20], esi
je 0x4eeee9
push ebx
call dword [sym.imp.WS2_32.dll_htons]
lea ecx, [ebp]
movzx eax, ax
push ecx
push 0x102
mov dword [ebp - 0x24], eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4eeee9
xor ebx, ebx
push ebx
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebp - 0x2c], eax
je 0x4eeee3
push 0x31
lea edx, [ebp + 0x5a1]
push ebx
push edx
mov byte [ebp + 0x5a0], bl
call fcn.00552500
mov eax, dword [edi + 0x1f0]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
lea ebx, [edi + 0xf0]
add esp, 0xc
test ebx, ebx
mov dword [ebp - 0x44], eax
jne 0x4eee3f
xor eax, eax
jmp 0x4eee70
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x4eee54
xor eax, eax
jmp 0x4eee70
lea esi, [eax + eax]
mov eax, esi
call fcn.00553150
mov eax, esp
push 0x3a8
push esi
push ebx
push eax
call fcn.00401180
mov esi, dword [ebp - 0x20]
mov ecx, eax
lea ebx, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x4eee75
sub ecx, ebx
cmp ecx, 0x32
jbe 0x4eee8c
mov ecx, 0x32
jmp 0x4eee9c
mov ecx, eax
lea ebx, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x4eee91
sub ecx, ebx
push ecx
push eax
lea ecx, [ebp + 0x5a0]
push ecx
call fcn.00552de0
mov dx, word [ebp - 0x24]
add esp, 0xc
push 0xe
push str.GameClient.exe
mov ecx, edi
mov word [ebp + 0x190], 2
mov dword [ebp + 0x194], esi
mov word [ebp + 0x192], dx
call fcn.004ec250
test eax, eax
jne 0x4eef16
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
or eax, 0xffffffff
lea esp, [ebp - 0x74]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x5d4]
xor ecx, ebp
call fcn.00552d63
add ebp, 0x5d8
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x20], 1
jbe 0x4eef22
mov dword [ebp - 0x20], eax
push 0xe
push str.GameClient.exe
mov ecx, edi
call fcn.004ebf90
push 0xe
mov esi, eax
push str.GameClient.exe
mov ecx, edi
mov dword [ebp - 0x1c], esi
mov ebx, edx
call fcn.004ec000
xor ecx, ecx
cmp ebx, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
jg 0x4eef5c
jl 0x4eef57
cmp esi, ecx
jae 0x4eef5c
mov dword [ebp - 0x1c], ecx
xor ebx, ebx
cmp edx, ecx
jg 0x4eef6c
jl 0x4eef66
cmp eax, ecx
jae 0x4eef6c
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
xor esi, esi
push esi
push ecx
push ebx
push edx
call fcn.005565a0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
push esi
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x20]
push eax
push ecx
push edx
call fcn.005565a0
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x24], eax
xor ebx, ebx
jmp 0x4eefb0
mov edx, dword [edi + 0x1f8]
cmp edx, esi
lea ecx, [edi + 0x1f4]
je 0x4ef09b
mov eax, dword [ecx + 8]
sub eax, edx
sar eax, 2
cmp ebx, eax
jae 0x4ef098
push ebx
call fcn.004eead0
push eax
lea ecx, [ebp - 0x28]
call fcn.0040a8e0
mov eax, dword [ebp - 0x28]
mov eax, dword [eax - 8]
add eax, 1
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], esi
call fcn.00406250
mov esi, eax
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ef000
sub eax, edx
sar eax, 1
push eax
push esi
mov ecx, edi
call fcn.004ec250
add dword [ebp - 0x24], eax
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ef020
sub eax, edx
sar eax, 1
push eax
push esi
mov ecx, edi
call fcn.004ebf90
add dword [ebp - 0x1c], eax
mov eax, esi
lea ecx, [eax + 2]
adc dword [ebp - 0x18], edx
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4ef043
sub eax, ecx
sar eax, 1
push eax
push esi
mov ecx, edi
call fcn.004ec000
add dword [ebp - 0x14], eax
lea ecx, [ebp - 0x28]
adc dword [ebp - 0x10], edx
call fcn.004062d0
mov esi, dword [ebp - 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esi - 8], eax
lea ecx, [ebp - 0x28]
mov word [esi + eax*2], 0
mov dword [ebp - 4], 0xffffffff
call fcn.00404900
mov eax, dword [ebp - 0x24]
add ebx, 1
xor esi, esi
jmp 0x4eefb0
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x18], esi
jg 0x4ef0ad
jl 0x4ef0a7
cmp dword [ebp - 0x1c], esi
jae 0x4ef0ad
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
cmp dword [ebp - 0x10], esi
jg 0x4ef0bf
jl 0x4ef0b9
cmp dword [ebp - 0x14], esi
jae 0x4ef0bf
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
cmp dword [ebp - 0x18], esi
jg 0x4ef0d7
jl 0x4ef0cb
cmp dword [ebp - 0x1c], esi
ja 0x4ef0d7
cmp dword [ebp - 0x10], esi
jg 0x4ef0d7
jl 0x4ef0e2
cmp dword [ebp - 0x14], esi
jbe 0x4ef0e2
cmp eax, esi
ja 0x4ef0e2
mov ebx, 1
jmp 0x4ef0e8
test eax, eax
mov ebx, eax
jbe 0x4ef10e
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
xor esi, esi
push esi
push ebx
push ecx
push edx
call fcn.005565a0
mov ecx, dword [ebp - 0x14]
push esi
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x10]
push ebx
push eax
push ecx
call fcn.005565a0
mov dword [ebp - 0x34], eax
lea edx, [ebp - 0x54]
push edx
mov ecx, edi
call fcn.004ec280
test eax, eax
jl 0x4ef1a2
lea eax, [ebp - 0x64]
push eax
mov ecx, edi
call fcn.004ec2b0
test eax, eax
jl 0x4ef1a2
movzx ecx, word [ebp - 0x48]
movzx edx, word [ebp - 0x4a]
movzx eax, word [ebp - 0x4c]
push 0xffffffffffffffff
push ecx
movzx ecx, word [ebp - 0x4e]
push edx
movzx edx, word [ebp - 0x52]
push eax
movzx eax, word [ebp - 0x54]
push ecx
push edx
push eax
lea ecx, [ebp - 0x14]
call fcn.00483140
movzx ecx, word [ebp - 0x58]
movzx edx, word [ebp - 0x5a]
movzx eax, word [ebp - 0x5c]
push 0xffffffffffffffff
push ecx
movzx ecx, word [ebp - 0x5e]
push edx
movzx edx, word [ebp - 0x62]
push eax
movzx eax, word [ebp - 0x64]
push ecx
push edx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00483140
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
sbb ecx, dword [ebp - 0x10]
test ecx, ecx
jg 0x4ef19f
jl 0x4ef196
test eax, eax
jae 0x4ef19f
mov ecx, dword [ebp - 0x2c]
push ecx
jmp 0x4eeedd
mov dword [ebp - 0x38], eax
push 0x3ff
lea edx, [ebp + 0x1a1]
push 0
push edx
call fcn.00552500
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x38]
mov word [ebp + 0x1a0], 0x54
mov word [ebp + 0x1a2], 6
mov ecx, 0xc
lea esi, [ebp + 0x5a0]
lea edi, [ebp + 0x1a4]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x20]
movsw word es:[edi], word [esi]
mov dword [ebp + 0x1d6], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp + 0x1da], ecx
mov ecx, dword [ebp - 0x40]
mov dword [ebp + 0x1de], edx
mov edx, dword [ebp - 0x34]
mov dword [ebp + 0x1e6], eax
mov eax, dword [ebp - 0x30]
xor esi, esi
add esp, 0xc
mov dword [ebp + 0x1e2], ebx
mov dword [ebp + 0x1ea], ecx
mov dword [ebp + 0x1ee], edx
mov dword [ebp + 0x1f2], eax
xor edi, edi
lea ebx, [esi + 3]
jmp 0x4ef230
cmp edi, 0xffffffff
je 0x4ef26a
test ebx, ebx
jle 0x4ef26a
push 0x10
lea ecx, [ebp + 0x190]
push ecx
mov ecx, dword [ebp - 0x2c]
push 0
mov edx, 0x56
sub edx, esi
push edx
lea eax, [ebp + esi + 0x1a0]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
mov edi, eax
add esi, edi
sub ebx, 1
cmp esi, 0x56
jl 0x4ef230
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, edi
jmp 0x4eeeec