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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], 0
push 0
mov eax, 0x80000
mov edx, dword [edi + 0x8000c]
sub eax, edx
push eax
lea eax, [edi + 0xc]
add eax, edx
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x1000743d
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x1000753c
call esi
push eax
mov ecx, 0x1004cc30
call fcn.10004760
push eax
push 0
push 0x10186d68
call fcn.100050a0
mov eax, dword [edi + 4]
add esp, 0x10
cmp eax, 0xffffffff
je 0x100073d0
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
mov eax, dword [edi + 8]
test eax, eax
je 0x100073e5
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [edi + 8], 0
mov byte [edi + 0x100038], 0
cmp dword [0x10086cdc], 0xffffffff
je 0x10007402
cmp byte [0x10186d10], 0
jne 0x1000759f
push ecx
call fcn.10007090
test al, al
je 0x1000759f
movzx eax, word [0x101879ec]
mov ecx, 0x10086cd8
push eax
push 0x10187a0f
call fcn.10007120
test al, al
je 0x1000759f
call fcn.1000b2f0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add dword [edi + 0x8000c], eax
cmp dword [edi + 0x8000c], 4
jl 0x1000753c
xor ecx, ecx
lea esi, [edi + 0xc]
lea eax, [esi + ecx]
mov dword [ebp - 0xc], eax
mov al, byte [eax]
cmp al, 0xc1
jne 0x1000746e
movzx ebx, byte [ecx + edi + 0xd]
mov dl, al
mov al, byte [ecx + edi + 0xf]
jmp 0x1000748f
cmp al, 0xc2
jne 0x10007578
mov dl, al
movzx eax, byte [ecx + edi + 0xd]
shl ax, 8
movzx ebx, ax
movzx eax, byte [ecx + edi + 0xe]
or ebx, eax
mov al, byte [ecx + edi + 0x10]
cmp ebx, 4
jl 0x10007545
cmp ebx, 0x80000
jg 0x10007545
cmp ebx, dword [edi + 0x8000c]
jg 0x10007512
lea esi, [ecx + edi]
cmp dl, 0xc1
jne 0x100074ca
movzx eax, byte [ecx + edi + 0xe]
lea edx, [ebx - 3]
push eax
lea ecx, [esi + 0xf]
call fcn.10004620
mov al, byte [esi + 0xf]
jmp 0x100074de
movzx eax, byte [ecx + edi + 0xf]
lea edx, [ebx - 4]
push eax
lea ecx, [esi + 0x10]
call fcn.10004620
mov al, byte [esi + 0x10]
add esp, 4
mov byte [ebp - 4], al
mov eax, dword [edi + 0x100014]
push ebx
push dword [ebp - 0xc]
push dword [ebp - 4]
call eax
mov ecx, dword [ebp - 8]
add esp, 0xc
sub dword [edi + 0x8000c], ebx
add ecx, ebx
cmp dword [edi + 0x8000c], 0
mov dword [ebp - 8], ecx
jle 0x1000753c
jmp 0x10007452
test ecx, ecx
jle 0x1000753c
mov eax, dword [edi + 0x8000c]
test eax, eax
jle 0x1000753c
mov edx, 0x80000
sub edx, ecx
cmp eax, edx
jg 0x1000753c
push eax
lea eax, [edi + 0xc]
add eax, ecx
push eax
push esi
call dword [sym.imp.VCRUNTIME140.dll_memmove]
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, al
mov ecx, 0x10028328
push eax
movzx eax, dl
push ebx
push eax
call fcn.10004760
push eax
push 0
push 0x10186d68
call fcn.100050a0
add esp, 0x18
mov ecx, edi
call fcn.10007310
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [ecx + edi + 0xc]
mov ecx, str.rjj
push eax
call fcn.10004760
push eax
push 0
push 0x10186d68
call fcn.100050a0
add esp, 0x10
mov ecx, edi
call fcn.10007310
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret