Function at 0x421280
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c655
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x438008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4214bf
cmp dword [ebp + 8], 0x8078
jne 0x4214bf
cmp dword [esi + 0x10], 0xffffffff
je 0x4214bf
cmp word [ebp + 0x10], 0x20
jne 0x4212f6
mov dword [esi + 0x14], 0
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [ebp + 0xc]
lea eax, [ebp + 8]
push eax
push 0x4004667f
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x4214bf
mov eax, dword [ebp + 8]
mov ecx, 1
cmp eax, ecx
cmovl eax, ecx
lea ecx, [ebp - 0x34]
mov dword [ebp + 8], eax
call fcn.0041e8b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.0041e8b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
mov eax, dword [ebp + 8]
push 0
push eax
push eax
call fcn.0041f0e0
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, 0xffffffff
je 0x421492
nop
test edi, edi
jle 0x42148f
mov esi, dword [ebp - 0x44]
xor eax, eax
cmp dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x20]
cmove esi, eax
mov eax, dword [ebp - 0x24]
sub eax, ebx
cmp eax, edi
jl 0x421438
cmp edi, 1
jne 0x4213ac
test esi, esi
jne 0x42139c
mov eax, dword [ebp - 0x28]
xor cl, cl
mov byte [eax + ebx], cl
inc dword [ebp - 0x20]
jmp 0x42145f
mov eax, dword [ebp - 0x28]
mov cl, byte [esi]
mov byte [eax + ebx], cl
inc dword [ebp - 0x20]
jmp 0x42145f
cmp edi, 2
jne 0x4213d9
test esi, esi
jne 0x4213c6
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov word [eax + ebx], cx
add dword [ebp - 0x20], edi
jmp 0x42145f
mov eax, dword [ebp - 0x28]
movzx ecx, word [esi]
mov word [eax + ebx], cx
add dword [ebp - 0x20], 2
jmp 0x42145f
cmp edi, 4
jne 0x4213fd
test esi, esi
jne 0x4213ef
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov dword [eax + ebx], ecx
add dword [ebp - 0x20], edi
jmp 0x42145f
mov eax, dword [ebp - 0x28]
mov ecx, dword [esi]
mov dword [eax + ebx], ecx
add dword [ebp - 0x20], 4
jmp 0x42145f
cmp edi, 8
jne 0x421438
test esi, esi
jne 0x421423
mov eax, dword [ebp - 0x28]
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov dword [eax + ebx], ecx
mov dword [eax + ebx + 4], edx
add dword [ebp - 0x20], edi
jmp 0x42145f
mov eax, dword [ebp - 0x28]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [eax + ebx], ecx
mov dword [eax + ebx + 4], edx
add dword [ebp - 0x20], 8
jmp 0x42145f
lea eax, [edi + ebx]
push eax
lea ecx, [ebp - 0x34]
call fcn.0041f0e0
add eax, ebx
push edi
test esi, esi
je 0x421454
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
jmp 0x42145c
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0
push 0x400
push 0x400
lea ecx, [ebp - 0x50]
mov dword [ebp + 8], 0x400
call fcn.0041f0e0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, 0xffffffff
jne 0x421360
mov esi, dword [ebp - 0x10]
cmp dword [ebp - 0x20], 0
je 0x4214a4
mov ecx, dword [esi + 0xc]
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00403180
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00403180
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc