Function at 0x10001e50
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 0x10001f3d
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x1000203b
call esi
push eax
mov ecx, 0x10057e50
call fcn.1001c970
push eax
push 0
push 0x1019dc18
call fcn.100153a0
mov eax, dword [edi + 4]
add esp, 0x10
cmp eax, 0xffffffff
je 0x10001ed0
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
mov eax, dword [edi + 8]
test eax, eax
je 0x10001ee5
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [edi + 8], 0
mov byte [edi + 0x100038], 0
cmp dword [0x1009d874], 0xffffffff
je 0x10001f02
cmp byte [0x1019d8a8], 0
jne 0x1000209e
push ecx
call fcn.10001b90
test al, al
je 0x1000209e
movzx eax, word [0x1019e1d4]
mov ecx, 0x1009d870
push eax
push 0x1019e1f7
call fcn.10001c20
test al, al
je 0x1000209e
call fcn.100034b0
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 0x1000203b
xor ecx, ecx
lea esi, [edi + 0xc]
lea eax, [esi + ecx]
mov dword [ebp - 0xc], eax
mov al, byte [eax]
cmp al, 0xc1
jne 0x10001f6e
movzx ebx, byte [ecx + edi + 0xd]
mov dl, al
mov al, byte [ecx + edi + 0xf]
jmp 0x10001f8f
cmp al, 0xc2
jne 0x10002077
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 0x10002044
cmp ebx, 0x80000
jg 0x10002044
cmp ebx, dword [edi + 0x8000c]
jg 0x10002012
lea esi, [ecx + edi]
cmp dl, 0xc1
jne 0x10001fca
movzx eax, byte [ecx + edi + 0xe]
lea edx, [ebx - 3]
push eax
lea ecx, [esi + 0xf]
call fcn.1001c630
mov al, byte [esi + 0xf]
jmp 0x10001fde
movzx eax, byte [ecx + edi + 0xf]
lea edx, [ebx - 4]
push eax
lea ecx, [esi + 0x10]
call fcn.1001c630
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 0x1000203b
jmp 0x10001f52
test ecx, ecx
jle 0x1000203b
mov eax, dword [edi + 0x8000c]
test eax, eax
jle 0x1000203b
mov edx, 0x80000
sub edx, ecx
cmp eax, edx
jg 0x1000203b
push eax
lea eax, [edi + 0xc]
add eax, ecx
push eax
push esi
call fcn.10029cf0
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, al
mov ecx, 0x10057c50
push eax
movzx eax, dl
push ebx
push eax
call fcn.1001c970
push eax
push 0
push 0x1019dc18
call fcn.100153a0
add esp, 0x18
mov ecx, edi
call fcn.10001e10
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.1001c970
push eax
push 0
push 0x1019dc18
call fcn.100153a0
add esp, 0x10
mov ecx, edi
call fcn.10001e10
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret