Function at 0x463210
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4635b6
mov esi, dword [ebp + 0x1c]
test esi, esi
je 0x4635b6
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 0x463249
push dword [edi + 0x98]
jmp 0x46324f
push dword [edi + 0x9c]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jns 0x46341e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jg 0x463283
je 0x463422
test esi, esi
je 0x463422
cmp esi, 0x2714
jmp 0x463289
cmp esi, 0x2749
je 0x463422
mov eax, dword [0x7efe24]
test eax, eax
je 0x463414
cmp dword [eax + 0x14], 4
jl 0x463414
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 0xca1
push str.d:_srcmaster_2022ClientOSSServicecsproxy_srcconn.c
push str.__s:_d_:_n___s_n__client__03d__server__03d___s_recv___error__d:__s_
push 4
call fcn.00472f60
mov edi, eax
add esp, 0x2c
mov dword [ebp + 8], edi
test edi, edi
je 0x463414
mov edi, dword [0x7efe24]
test edi, edi
je 0x463409
cmp byte [edi + 8], 0
je 0x463409
cmp dword [edi + 0x14], 4
jl 0x463409
mov esi, eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x463318
mov eax, dword [edi + 0x20]
sub esi, ecx
add eax, esi
cmp dword [edi + 0x28], eax
jb 0x463409
test esi, esi
je 0x463409
push 8
push 1
call fcn.006e6b64
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x463409
push 1
push esi
call fcn.006e6b64
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x463366
mov dword [ebx + 4], eax
jmp 0x463409
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 0x463389
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 0x463399
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x463409
cmp byte [esi + 0x10], 0
je 0x4633b6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4633b6
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 0x4633e4
test eax, eax
je 0x4633f3
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 0x4633ed
mov dword [ecx + 4], eax
jmp 0x4633f0
test eax, eax
je 0x4633f3
mov dword [eax], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
inc dword [esi + 4]
cmp byte [esi + 0x10], 0
je 0x463409
mov eax, dword [esi + 0x14]
test eax, eax
je 0x463409
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 0x463429
mov dword [esi], eax
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret
mov eax, dword [0x7efe24]
test eax, eax
je 0x4635ac
cmp dword [eax + 0x14], 4
jl 0x4635ac
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 0xcb0
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 0x4635ac
mov edi, dword [0x7efe24]
test edi, edi
je 0x4635a1
cmp byte [edi + 8], 0
je 0x4635a1
cmp dword [edi + 0x14], 4
jl 0x4635a1
mov esi, eax
lea ecx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4634b0
mov eax, dword [edi + 0x20]
sub esi, ecx
add eax, esi
cmp dword [edi + 0x28], eax
jb 0x4635a1
test esi, esi
je 0x4635a1
push 8
push 1
call fcn.006e6b64
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4635a1
push 1
push esi
call fcn.006e6b64
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x4634fe
mov dword [ebx + 4], eax
jmp 0x4635a1
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 0x463521
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 0x463531
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x4635a1
cmp byte [esi + 0x10], 0
je 0x46354e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46354e
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 0x46357c
test eax, eax
je 0x46358b
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 0x463585
mov dword [ecx + 4], eax
jmp 0x463588
test eax, eax
je 0x46358b
mov dword [eax], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
inc dword [esi + 4]
cmp byte [esi + 0x10], 0
je 0x4635a1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4635a1
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