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

Disassembly:
mov eax, 0x106c
call fcn.005d9990
mov eax, dword [esp + 0x1070]
push ebx
push esi
push eax
call fcn.00508ad0
mov esi, eax
xor ebx, ebx
add esp, 4
cmp esi, ebx
je 0x5996dc
cmp dword [esi + 0x41c], ebx
jne 0x5996e7
pop esi
xor eax, eax
pop ebx
add esp, 0x106c
ret
push ebp
push edi
mov edi, dword [esp + 0x1084]
cmp di, 2
jne 0x599716
cmp dword [esi + 0x2794], ebx
je 0x599709
push esi
push ebx
push ebx
call fcn.00598db0
add esp, 0xc
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x106c
ret
push 2
call fcn.00508fa0
mov eax, edi
shr eax, 0x10
add esp, 4
cmp ax, bx
je 0x599732
movzx eax, ax
jmp 0x599826
call fcn.00508d00
test eax, eax
je 0x599752
pop edi
pop ebp
mov dword [esi + 0x27a0], 1
pop esi
xor eax, eax
pop ebx
add esp, 0x106c
ret
mov ecx, dword [esi + 4]
push 1
push 1
push ecx
push 0x800e
call fcn.00599d90
add esp, 0x10
test eax, eax
mov dword [esi + 0x27a0], ebx
jne 0x599a40
mov dword [esi + 0x279c], 1
nop
mov ecx, dword [esi + 0x27a8]
inc ecx
mov eax, ecx
cmp eax, 0x14
mov dword [esi + 0x27a8], ecx
jl 0x5997b6
mov edx, dword [esi + 4]
push ebx
push 1
push edx
push 0x800e
mov dword [esi + 0x27a8], ebx
call fcn.00599d90
add esp, 0x10
test eax, eax
jne 0x599a3a
cmp dword [esi + 0x818c], ebx
lea eax, [esp + 0x14]
je 0x5998ef
push 0x1068
push eax
call fcn.00423310
mov edx, dword [esi + 4]
push eax
lea ecx, [esp + 0x20]
push ecx
push edx
call fcn.00557210
mov ebp, eax
add esp, 0x14
cmp ebp, ebx
je 0x599a26
jg 0x599910
cmp ebp, 0xfffffffd
jne 0x599a30
push 0x2747
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
cmp dword [esi + 0x7ca0], ebx
mov dword [esi + 0x279c], ebx
jne 0x59986f
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x599709
cmp eax, ebx
je 0x59986f
cmp dword [esi + 0x41c], ebx
je 0x59986f
push eax
call fcn.00597da0
push eax
lea ecx, [esp + 0x1c]
push 0x5f7e10
push ecx
call fcn.005d9929
mov edx, dword [0x63caa0]
push edx
lea eax, [esp + 0x28]
mov dword [0x6870cc], ebx
mov dword [0x6870dc], 1
mov ecx, dword [esi]
push eax
push ecx
call fcn.0052eb30
add esp, 0x1c
cmp dword [esi + 0x41c], ebx
je 0x5998ba
mov edx, dword [0x63ca9c]
mov eax, dword [esi]
push edx
push eax
call fcn.0052dc60
mov ecx, dword [0x63ca9c]
add esp, 8
push ecx
push ebx
push 0x5e1
mov dword [0x6870cc], ebx
mov dword [0x6870dc], 1
call fcn.00424130
mov edx, dword [esi]
add esp, 8
push eax
push edx
call fcn.0052ddc0
add esp, 0xc
lea eax, [esi + 0x440]
push 0x1068
push eax
call fcn.004232e0
push esi
call fcn.00598080
push esi
push 0x5f4c90
call fcn.00597e60
add esp, 0x14
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
add esp, 0x106c
ret
push ebx
push 0x1068
push eax
call fcn.00423310
mov edx, dword [esi + 4]
add esp, 8
push eax
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_recv]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x599807
cmp ebp, ebx
jle 0x59986f
xor eax, eax
cmp ebp, ebx
mov byte [esp + ebp + 0x14], bl
mov dword [esp + 0x10], eax
jle 0x599780
mov al, byte [esp + eax + 0x14]
cmp al, 0xd
je 0x599a10
cmp al, 0xa
jne 0x599982
cmp dword [esi + 0x2790], ebx
je 0x59996d
lea eax, [esi + 0x1724]
push 0x1068
push eax
mov dword [esi + 0x2790], ebx
call fcn.004232e0
mov dword [esi + 0x278c], ebx
jmp 0x599a0d
mov ecx, dword [esi + 0x278c]
mov byte [ecx + esi + 0x1724], bl
lea edi, [esi + 0x1724]
jmp 0x5999d4
mov edx, dword [esi + 0x278c]
mov byte [edx + esi + 0x1724], al
mov edx, dword [esi + 0x278c]
inc edx
mov eax, edx
cmp eax, 0x258
mov dword [esi + 0x278c], edx
jle 0x599a10
cmp dword [esi + 0x2790], ebx
je 0x5999c1
push 0x1068
lea eax, [esi + 0x1724]
mov dword [esi + 0x278c], ebx
push eax
jmp 0x599a08
lea edi, [esi + 0x1724]
mov dword [esi + 0x2790], 1
mov byte [eax + edi], bl
cmp byte [edi], bl
mov dword [esi + 0x278c], ebx
je 0x599a02
push esi
push edi
call fcn.004db930
push esi
call fcn.00508aa0
add esp, 0xc
test eax, eax
je 0x599709
cmp dword [esi + 0x41c], ebx
je 0x599709
push 0x1068
push edi
call fcn.004232e0
add esp, 8
mov eax, dword [esp + 0x10]
inc eax
cmp eax, ebp
mov dword [esp + 0x10], eax
jl 0x599933
jmp 0x599780
push 0x2733
jmp 0x599801
push 0x2745
jmp 0x599801
mov dword [esi + 0x27a0], ebx
pop edi
pop ebp
mov dword [esi + 0x279c], ebx
pop esi
xor eax, eax
pop ebx
add esp, 0x106c
ret