Function at 0x43eb60
Capabilities:
Create tcp 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
Start tcp server

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44992c
mov eax, dword fs:[0]
push eax
sub esp, 0x4a8
mov eax, dword [0x45d014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x490]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x43ebbc
push eax
push str.WSAStartup___failed_with_error__d_n
call fcn.00401780
add esp, 8
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x43f65b
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov esi, eax
mov dword [ebp - 0x4ac], esi
cmp esi, 0xffffffff
jne 0x43ebec
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSASocket_____failed___with___error____d_n
jmp 0x43f653
mov eax, 2
push 0
mov word [ebp - 0xe0], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0x2704
mov dword [ebp - 0xdc], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xde], ax
lea eax, [ebp - 0xe0]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x43ec3e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.bind_____failed___with___error____d_n
jmp 0x43f653
push 5
push esi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x43ec5c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.listen_____failed___with___error____d_n
jmp 0x43f653
lea eax, [ebp - 0x4a4]
mov dword [ebp - 0x4a4], 1
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x43ec8f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.ioctlsocket___failed_with_error__d_n
jmp 0x43f653
mov ecx, esi
call fcn.0043eaf0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov dword [ebp - 0x1f8], esi
xor edx, edx
mov dword [ebp - 0x494], eax
mov esi, 1
mov dword [ebp - 0x300], edx
mov dword [ebp - 0x1fc], esi
cmp dword [0x460c30], eax
jbe 0x43ed6a
nop dword [eax + eax]
mov edi, dword [eax*4 + 0x460b30]
xor ecx, ecx
test esi, esi
je 0x43ecf1
mov eax, dword [edi + 0x2008]
cmp dword [ebp + ecx*4 - 0x1f8], eax
je 0x43ecf1
inc ecx
cmp ecx, esi
jb 0x43ece3
cmp ecx, esi
jne 0x43ed14
cmp esi, 0x40
jae 0x43ed14
mov eax, dword [edi + 0x2008]
mov dword [ebp + ecx*4 - 0x1f8], eax
mov esi, dword [ebp - 0x1fc]
inc esi
mov dword [ebp - 0x1fc], esi
xor ecx, ecx
test edx, edx
je 0x43ed2e
mov eax, dword [edi + 0x2008]
cmp dword [ebp + ecx*4 - 0x2fc], eax
je 0x43ed2e
inc ecx
cmp ecx, edx
jb 0x43ed20
cmp ecx, edx
jne 0x43ed51
cmp edx, 0x40
jae 0x43ed51
mov eax, dword [edi + 0x2008]
mov dword [ebp + ecx*4 - 0x2fc], eax
mov edx, dword [ebp - 0x300]
inc edx
mov dword [ebp - 0x300], edx
mov eax, dword [ebp - 0x494]
inc eax
mov dword [ebp - 0x494], eax
cmp eax, dword [0x460c30]
jb 0x43ecd0
push 0
push 0
lea eax, [ebp - 0x300]
push eax
lea eax, [ebp - 0x1fc]
push eax
push 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x43f646
mov esi, dword [ebp - 0x4ac]
xor edi, edi
mov dword [ebp - 0x494], edi
cmp dword [0x460c30], edi
jbe 0x43ec96
mov eax, 0x460b30
mov dword [ebp - 0x498], eax
mov esi, dword [eax]
lea eax, [ebp - 0x1fc]
push eax
push dword [esi + 0x2008]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
mov ecx, dword [esi + 0x2008]
test eax, eax
je 0x43f43d
mov eax, dword [ebp - 0x4ac]
cmp ecx, eax
jne 0x43ee82
push 0
push 0
push eax
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
cmp esi, 0xffffffff
je 0x43ee62
lea eax, [ebp - 0x4a4]
mov dword [ebp - 0x4a4], 1
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x43f631
push 0x2014
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
je 0x43f623
mov ecx, dword [0x460c30]
inc dword [0x460c30]
mov dword [eax + 0x2008], esi
mov dword [eax + 0x200c], 0
mov dword [eax + 0x2010], 0
mov dword [ecx*4 + 0x460b30], eax
jmp 0x43f5f6
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x43f5f6
call esi
push eax
push str.accept_____failed___with___error____d_n
jmp 0x43f653
push 0x2000
push 0x20
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esi + 0x2004], esi
lea ecx, [ebp - 0x4a0]
mov dword [esi + 0x2000], 0x2000
lea eax, [esi + 0x2000]
mov dword [ebp - 0x4a0], 0
push 0
push 0
push ecx
lea ecx, [ebp - 0x4a8]
push ecx
push 1
push eax
push dword [esi + 0x2008]
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x43eefd
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x43f5f6
call esi
push eax
push str.WSARecv_____failed___with___error____d_n
call fcn.00401780
add esp, 8
jmp 0x43ef22
mov eax, dword [ebp - 0x4a8]
mov ecx, dword [esi + 0x2004]
mov dword [esi + 0x2010], eax
mov eax, dword [ebp - 0x4a8]
mov byte [eax + ecx], 0
cmp dword [ebp - 0x4a8], 0
jne 0x43ef6d
mov esi, dword [ebp - 0x498]
mov esi, dword [esi]
push dword [esi + 0x2008]
call dword [sym.imp.WS2_32.dll_closesocket]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [0x460c30]
lea eax, [ecx - 1]
cmp edi, eax
je 0x43ef63
cmp edi, ecx
jae 0x43ef63
mov edx, dword [ebp - 0x498]
sub ecx, edi
mov edi, edx
lea esi, [edx + 4]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x494]
mov dword [0x460c30], eax
jmp 0x43f5f6
push dword [esi + 0x2004]
push str.DataBuf__s
call fcn.00401780
mov edx, dword [esi + 0x2004]
add esp, 8
cmp dword [0x460f90], 2
mov dword [ebp - 0x49c], edx
jne 0x43efba
mov ecx, edx
lea esi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43efa0
sub ecx, esi
push ecx
push edx
mov ecx, 0x460f78
call fcn.004096f0
jmp 0x43f5f6
push 0
push 0
push 0xffffffffffffffff
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
lea esi, [edi*2 + 2]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push esi
mov esi, eax
mov dword [ebp - 0x4b0], eax
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
push edi
push esi
push 0xffffffffffffffff
push dword [ebp - 0x49c]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, esi
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea edx, [ecx + 2]
mov word [ebp - 0x28], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43f037
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00409dc0
mov dword [ebp - 4], 0
xor eax, eax
push 2
mov dword [ebp - 0xb8], 0
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
push 0x450ed4
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 7
mov word [ebp - 0xb8], ax
call fcn.00409dc0
mov byte [ebp - 4], 1
xor eax, eax
push 6
mov dword [ebp - 0xa0], 0
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
push str._Game_
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
call fcn.00409dc0
mov byte [ebp - 4], 2
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xa0]
mov ecx, 0x45d060
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00401910
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa0]
call fcn.00409f50
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb8]
call fcn.00409f50
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
push 6
push str.blsjwc
push 0
call fcn.00407900
add esp, 0xc
test eax, eax
je 0x43f429
xor eax, eax
mov dword [ebp - 0xd0], 0
push eax
mov dword [ebp - 0xc0], 0
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xbc], 0
push 0x44b29c
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 7
mov word [ebp - 0xd0], ax
call fcn.00409dc0
mov byte [ebp - 4], 3
xor eax, eax
push 6
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
push str.blsjwc
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.00409dc0
mov byte [ebp - 4], 4
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x58]
mov ecx, 0x45d060
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00401910
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x43f23d
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x43f233
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43f640
push ecx
push edx
call fcn.004402c0
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov byte [ebp - 4], al
lea ecx, [ebp - 0xd0]
call fcn.00409f50
xor eax, eax
mov dword [ebp - 0x88], 0
push eax
mov dword [ebp - 0x78], 0
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x74], 0
push 0x44b29c
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
call fcn.00409dc0
mov byte [ebp - 4], 5
xor eax, eax
push 1
mov dword [ebp - 0x70], 0
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
push 0x450efc
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
call fcn.00409dc0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x70]
mov ecx, 0x45d060
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00401910
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x5c]
cmp ecx, 8
jb 0x43f336
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x43f32c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43f640
push ecx
push edx
call fcn.004402c0
add esp, 8
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x74]
cmp ecx, 8
jb 0x43f38a
mov edx, dword [ebp - 0x88]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x43f380
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43f640
push ecx
push edx
call fcn.004402c0
add esp, 8
xor eax, eax
mov dword [ebp - 0x78], 0
lea edx, [ebp - 0x28]
mov dword [ebp - 0x74], 7
lea ecx, [ebp - 0xf8]
mov word [ebp - 0x88], ax
call fcn.004024e0
mov esi, eax
mov byte [ebp - 4], 7
cmp esi, 0x460f78
je 0x43f3ef
mov ecx, 0x460f78
call fcn.004095b0
movups xmm0, xmmword [esi]
movups xmmword [0x460f78], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x460f88], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xf8]
call fcn.004095b0
cmp dword [0x460f8c], 0x10
mov eax, 0x460f78
cmovae eax, dword [0x460f78]
push eax
push 0x450f00
call fcn.00401780
add esp, 8
mov dword [0x460f90], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00409f50
jmp 0x43f5f0
lea eax, [ebp - 0x300]
push eax
push ecx
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x43f5f6
cmp dword [0x460f70], 0
mov ecx, dword [0x460f74]
mov edx, dword [0x460f60]
je 0x43f5f6
xor edi, edi
mov dword [ebp - 0x4a0], edi
cmp dword [0x460c30], edi
jbe 0x43f5df
mov esi, dword [edi*4 + 0x460b30]
cmp ecx, 0x10
mov eax, 0x460f60
mov dword [ebp - 0x4b0], esi
cmovae eax, edx
push edi
push eax
push 0x450f14
call fcn.00401780
mov edi, dword [0x460f70]
add esp, 0xc
cmp dword [0x460f74], 0x10
mov eax, 0x460f60
mov dword [ebp - 0x40], 0
cmovae eax, dword [0x460f60]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x49c], eax
cmp edi, 0x10
jae 0x43f4f0
movups xmm0, xmmword [eax]
mov dword [ebp - 0x2c], 0xf
movups xmmword [ebp - 0x40], xmm0
jmp 0x43f52b
mov esi, edi
mov eax, accept
or esi, 0xf
cmp esi, 0x7fffffff
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.00409650
lea ecx, [edi + 1]
mov dword [ebp - 0x40], eax
push ecx
push dword [ebp - 0x49c]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov dword [ebp - 0x2c], esi
add esp, 0xc
mov esi, dword [ebp - 0x4b0]
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], 8
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
mov edi, dword [ebp - 0x40]
cmovae eax, edi
lea ecx, [eax + 1]
mov dword [ebp - 0x49c], ecx
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43f550
sub eax, dword [ebp - 0x49c]
lea ecx, [esi + 0x2000]
mov dword [ebp - 0x4b4], eax
cmp edx, 0x10
lea eax, [ebp - 0x40]
cmovae eax, edi
mov dword [esi + 0x2004], eax
mov eax, dword [esi + 0x2010]
sub eax, dword [esi + 0x200c]
push 0
push 0
mov dword [ecx], eax
mov eax, dword [ebp - 0x4b4]
push 0
mov dword [ecx], eax
lea eax, [ebp - 0x4b4]
push eax
push 1
push ecx
push dword [esi + 0x2008]
call dword [sym.imp.WS2_32.dll_WSASend]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004095b0
mov edi, dword [ebp - 0x4a0]
inc edi
mov dword [ebp - 0x4a0], edi
cmp edi, dword [0x460c30]
jae 0x43f5df
mov ecx, dword [0x460f74]
mov edx, dword [0x460f60]
jmp 0x43f480
push 0
push 0x44b300
mov ecx, 0x460f60
call fcn.004096f0
mov edi, dword [ebp - 0x494]
mov eax, dword [ebp - 0x498]
inc edi
add eax, 4
mov dword [ebp - 0x494], edi
mov dword [ebp - 0x498], eax
cmp edi, dword [0x460c30]
jb 0x43edb2
mov esi, dword [ebp - 0x4ac]
jmp 0x43ec96
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GlobalAlloc___failed_with_error__d_n
jmp 0x43f653
mov eax, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call eax
push eax
push str.ioctlsocket_____failed___with___error____d_n
jmp 0x43f653
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov eax, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call eax
push eax
push str.select_____returned___with___error____d_n
call fcn.00401780
add esp, 8
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004402b2
mov esp, ebp
pop ebp
ret