Function at 0x407780
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov eax, 0x2934
call fcn.00412e10
push esi
push 0x43bcb8
call fcn.00407400
mov edx, dword [0x43e75c]
add esp, 4
lea eax, [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
push ecx
push edx
mov dword [esp + 0x24], 0x10
call dword [sym.imp.WSOCK32.dll_accept]
push 0
mov esi, eax
mov eax, dword [esp + 0x2940]
push 0
push 0
push 0
push eax
push 0x407a40
call fcn.0042346a
cmp esi, 0xffffffff
jne 0x4077f2
push str._nError__in_accept
call fcn.00407400
add esp, 4
mov eax, 0xfffffffb
pop esi
add esp, 0x2934
ret
push ebp
push edi
push 0x43bc90
call fcn.00407400
mov ebp, dword [sym.imp.WSOCK32.dll_recv]
add esp, 4
lea ecx, [esp + 0x140]
mov dword [esp + 0x14], 0
push 0
push 0x2800
push ecx
push esi
mov dword [esp + 0x28], 1
mov dword [esp + 0x1c], esi
call ebp
mov edi, eax
cmp edi, 0xffffffff
jne 0x407850
push str._nError_Recv
call fcn.00407400
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
jne 0x407874
mov edx, dword [esp + 0xc]
push edx
jmp 0x40786e
test edi, edi
jne 0x407874
push str.Client_Close_connection_n
call fcn.00407400
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
jne 0x407874
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
push 0
push 0
lea ecx, [esp + 0x14]
push 1
push 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 1
mov dword [esp + 0x1c], esi
mov dword [esp + 0x148], ecx
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
mov dword [esp + 0x134], eax
lea edx, [esp + 0x13c]
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0x144]
push eax
push ecx
call fcn.00407540
add esp, 0xc
lea edx, [esp + 0x34]
push 0
push 0
push 0
push 0
push edx
push 0x407d50
call fcn.0042346a
push 0x43bc5c
mov dword [esp + 0x20], eax
call fcn.00407400
mov eax, dword [esp + 0x138]
add esp, 4
push 0xea60
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov ecx, dword [esp + 0x134]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4079fe
mov esi, dword [sym.imp.WSOCK32.dll_send]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4079eb
mov eax, dword [esp + 0x10]
push 0
lea edx, [esp + 0x144]
push edi
push edx
push eax
call esi
cmp eax, 0xffffffff
je 0x407998
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 0x144]
push 0x2800
push ecx
push edx
call ebp
cmp eax, 0xffffffff
jne 0x407988
push str._nError_Recv
call fcn.00407400
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
jne 0x40798e
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [esp + 0x14], 1
jmp 0x40798e
test eax, eax
je 0x4079bb
mov edi, eax
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4079fe
jmp 0x407920
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str._n_send___failed:error_d_n
call fcn.00407400
mov eax, dword [esp + 0x20]
add esp, 8
test eax, eax
jne 0x4079fe
mov ecx, dword [esp + 0x10]
push ecx
jmp 0x4079f0
push str.Client_Close_connection_n
call fcn.00407400
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
jne 0x4079e3
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4079fe
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x14]
pop edi
test eax, eax
pop ebp
jne 0x407a1b
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [esp + 0xc], 1
mov edx, dword [esp + 0x14]
push 0x4e20
mov eax, dword [edx + 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
xor eax, eax
pop esi
add esp, 0x2934
ret