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

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x463966
mov esi, dword [ebp + 0x1c]
test esi, esi
je 0x463966
push ebx
mov bl, byte [ebp + 0x10]
mov dword [esi], 0
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
test bl, bl
je 0x4635f9
push dword [edi + 0x98]
jmp 0x4635ff
push dword [edi + 0x9c]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4637ce
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jg 0x463633
je 0x4637d2
test esi, esi
je 0x4637d2
cmp esi, 0x2714
jmp 0x463639
cmp esi, 0x2749
je 0x4637d2
mov eax, dword [0x7efe24]
test eax, eax
je 0x4637c4
cmp dword [eax + 0x14], 4
jl 0x4637c4
push esi
call fcn.006e72af
push eax
push esi
mov ecx, str.server
test bl, bl
mov eax, str.client
cmove eax, ecx
push eax
push dword [edi + 0x9c]
push dword [edi + 0x98]
push edi
push 0xcdb
push str.d:_srcmaster_2022ClientOSSServicecsproxy_srcconn.c
push str.__s:_d_:_n___s_n__client__03d__server__03d___s_send___error__d:__s_
push 4
call fcn.00472f60
mov edi, eax
add esp, 0x2c
mov dword [ebp + 8], edi
test edi, edi
je 0x4637c4
mov edi, dword [0x7efe24]
test edi, edi
je 0x4637b9
cmp byte [edi + 8], 0
je 0x4637b9
cmp dword [edi + 0x14], 4
jl 0x4637b9
mov esi, eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4636c8
mov eax, dword [edi + 0x20]
sub esi, ecx
add eax, esi
cmp dword [edi + 0x28], eax
jb 0x4637b9
test esi, esi
je 0x4637b9
push 8
push 1
call fcn.006e6b64
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4637b9
push 1
push esi
call fcn.006e6b64
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x463716
mov dword [ebx + 4], eax
jmp 0x4637b9
push esi
push dword [ebp + 8]
push eax
call fcn.006dccc0
mov eax, dword [edi + 0x24]
add esp, 0xc
mov dword [ebx + 4], esi
test eax, eax
je 0x463739
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x24]
add dword [edi + 0x20], esi
test eax, eax
je 0x463749
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x4637b9
cmp byte [esi + 0x10], 0
je 0x463766
mov eax, dword [esi + 0x14]
test eax, eax
je 0x463766
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0xc]
push 0xc
push 1
call fcn.006e6b64
add esp, 8
test edi, edi
je 0x463794
test eax, eax
je 0x4637a3
mov ecx, dword [edi + 8]
mov dword [eax], ebx
mov dword [eax + 8], ecx
mov dword [edi + 8], eax
mov dword [eax + 4], edi
test ecx, ecx
je 0x46379d
mov dword [ecx + 4], eax
jmp 0x4637a0
test eax, eax
je 0x4637a3
mov dword [eax], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
inc dword [esi + 4]
cmp byte [esi + 0x10], 0
je 0x4637b9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4637b9
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp + 8]
call fcn.006e60fe
add esp, 4
pop ebx
pop edi
mov eax, 0xfffffffe
pop esi
pop ebp
ret
jle 0x4637d9
mov dword [esi], eax
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret
mov eax, dword [0x7efe24]
test eax, eax
je 0x46395c
cmp dword [eax + 0x14], 4
jl 0x46395c
mov ecx, str.server
test bl, bl
mov eax, str.client
cmove eax, ecx
push eax
push dword [edi + 0x9c]
push dword [edi + 0x98]
push edi
push 0xcea
push str.d:_srcmaster_2022ClientOSSServicecsproxy_srcconn.c
push str.__s:_d_:_n___s_n__client__03d__server__03d___s_closed
push 4
call fcn.00472f60
mov edi, eax
add esp, 0x20
mov dword [ebp + 8], edi
test edi, edi
je 0x46395c
mov edi, dword [0x7efe24]
test edi, edi
je 0x463951
cmp byte [edi + 8], 0
je 0x463951
cmp dword [edi + 0x14], 4
jl 0x463951
mov esi, eax
lea ecx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x463860
mov eax, dword [edi + 0x20]
sub esi, ecx
add eax, esi
cmp dword [edi + 0x28], eax
jb 0x463951
test esi, esi
je 0x463951
push 8
push 1
call fcn.006e6b64
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x463951
push 1
push esi
call fcn.006e6b64
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x4638ae
mov dword [ebx + 4], eax
jmp 0x463951
push esi
push dword [ebp + 8]
push eax
call fcn.006dccc0
mov eax, dword [edi + 0x24]
add esp, 0xc
mov dword [ebx + 4], esi
test eax, eax
je 0x4638d1
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x24]
add dword [edi + 0x20], esi
test eax, eax
je 0x4638e1
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x463951
cmp byte [esi + 0x10], 0
je 0x4638fe
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4638fe
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0xc]
push 0xc
push 1
call fcn.006e6b64
add esp, 8
test edi, edi
je 0x46392c
test eax, eax
je 0x46393b
mov ecx, dword [edi + 8]
mov dword [eax], ebx
mov dword [eax + 8], ecx
mov dword [edi + 8], eax
mov dword [eax + 4], edi
test ecx, ecx
je 0x463935
mov dword [ecx + 4], eax
jmp 0x463938
test eax, eax
je 0x46393b
mov dword [eax], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
inc dword [esi + 4]
cmp byte [esi + 0x10], 0
je 0x463951
mov eax, dword [esi + 0x14]
test eax, eax
je 0x463951
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp + 8]
call fcn.006e60fe
add esp, 4
pop ebx
pop edi
mov eax, 0xfffffffd
pop esi
pop ebp
ret
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret