Function at 0x10003a90
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 0x10003b7d
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x10003c7c
call esi
push eax
mov ecx, 4
call fcn.10018e80
push eax
push 0
push 0x10127210
call fcn.1000e6e0
mov eax, dword [edi + 4]
add esp, 0x10
cmp eax, 0xffffffff
je 0x10003b10
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
mov eax, dword [edi + 8]
test eax, eax
je 0x10003b25
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [edi + 8], 0
mov byte [edi + 0x100038], 0
cmp dword [0x1002704c], 0xffffffff
je 0x10003b42
cmp byte [0x10127080], 0
jne 0x10003cdf
push ecx
call fcn.100037d0
test al, al
je 0x10003cdf
movzx eax, word [0x1012c264]
mov ecx, 0x10027048
push eax
push 0x1012c244
call fcn.10003860
test al, al
je 0x10003cdf
call fcn.10004ba0
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 0x10003c7c
xor ecx, ecx
lea esi, [edi + 0xc]
lea eax, [esi + ecx]
mov dword [ebp - 0xc], eax
mov al, byte [eax]
cmp al, 0xc1
jne 0x10003bae
movzx ebx, byte [ecx + edi + 0xd]
mov dl, al
mov al, byte [ecx + edi + 0xf]
jmp 0x10003bcf
cmp al, 0xc2
jne 0x10003cb8
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 0x10003c85
cmp ebx, 0x80000
jg 0x10003c85
cmp ebx, dword [edi + 0x8000c]
jg 0x10003c52
lea esi, [ecx + edi]
cmp dl, 0xc1
jne 0x10003c0a
movzx eax, byte [ecx + edi + 0xe]
lea edx, [ebx - 3]
push eax
lea ecx, [esi + 0xf]
call fcn.10017240
mov al, byte [esi + 0xf]
jmp 0x10003c1e
movzx eax, byte [ecx + edi + 0xf]
lea edx, [ebx - 4]
push eax
lea ecx, [esi + 0x10]
call fcn.10017240
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 0x10003c7c
jmp 0x10003b92
test ecx, ecx
jle 0x10003c7c
mov eax, dword [edi + 0x8000c]
test eax, eax
jle 0x10003c7c
mov edx, 0x80000
sub edx, ecx
cmp eax, edx
jg 0x10003c7c
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, 6
push eax
movzx eax, dl
push ebx
push eax
call fcn.10018e80
push eax
push 0
push 0x10127210
call fcn.1000e6e0
add esp, 0x18
mov ecx, edi
call fcn.10003a50
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [ecx + edi + 0xc]
mov ecx, 5
push eax
call fcn.10018e80
push eax
push 0
push 0x10127210
call fcn.1000e6e0
add esp, 0x10
mov ecx, edi
call fcn.10003a50
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret