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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1003e620]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
lea ecx, [eax + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
cmp eax, ecx
jae case.0x100229a9.13
add eax, 0xffffff36
mov dword [ebp - 0x38], eax
jmp 0x100229a0
cmp eax, 0xd
ja case.0x100229a9.2
jmp dword [eax*4 + 0x10022bc4]
mov dword [ebp - 0x2c], 0
jmp case.0x100229a9.2
mov eax, dword [ebx]
mov dword [ebp - 0x28], eax
xor edi, edi
mov eax, dword [ebp - 0x28]
push 0
mov ecx, 4
sub ecx, edi
push ecx
lea edx, [esi + edi]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x10022b68
add edi, eax
cmp edi, 4
jb 0x100229c3
mov dword [ebp - 0x28], edi
test edi, edi
jle 0x10022b68
cmp dword [ebx + 0x1c], 0
je 0x10022a12
lea ecx, [ebp - 0x30]
push ecx
push ebx
push 0x75
push esi
mov dword [ebp - 0x30], 4
call fcn.10022640
add esp, 0x10
movzx edx, word [esi]
test edx, edx
jne case.0x100229a9.2
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10027670
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
and eax, 0xffff
cmp eax, 0x820
ja 0x10022b7e
cmp word [esi + 2], 0x10
jae 0x10022b7e
push eax
mov eax, dword [ebx]
lea ecx, [esi + 4]
push ecx
push eax
call fcn.100015f0
add esp, 0xc
cmp dword [ebx + 0x1c], 0
mov dword [ebp - 0x28], eax
je case.0x100229a9.2
mov eax, 0xa5
mov dword [ebp - 0x30], eax
cmp eax, 0xa5
jne 0x10022af2
push ebx
lea eax, [esi + 4]
push eax
mov ecx, 0xffe0
add word [esi], cx
movzx edx, word [esi]
push 0x83
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 0x34], edx
call fcn.10007f60
mov ecx, dword [esi]
and ecx, 0xffff
lea eax, [ecx + esi + 4]
lea edx, [ebp - 0x24]
add esp, 0x14
mov edi, 0x20
sub edx, eax
jmp 0x10022ac0
mov ebx, dword [edx + eax]
cmp ebx, dword [eax]
jne 0x10022b94
sub edi, 4
add eax, 4
cmp edi, 4
jae 0x10022ac0
mov ebx, dword [ebp - 0x44]
lea edx, [ebp - 0x34]
push edx
push ebx
lea eax, [esi + 4]
push 0x75
push eax
mov dword [ebp - 0x34], ecx
call fcn.10022640
mov eax, dword [ebp - 0x30]
add esp, 0x10
add eax, 0x18
mov dword [ebp - 0x30], eax
cmp eax, 0xbd
jb 0x10022a72
jmp case.0x100229a9.2
mov ax, word [esi + 2]
sub word [esi], ax
xor ecx, ecx
mov word [esi + 2], cx
mov edx, dword [esi]
and edx, 0xffff
mov byte [edx + esi + 4], cl
jmp case.0x100229a9.2
xor eax, eax
cmp dword [ebp - 0x28], eax
setle al
mov dword [ebp - 0x2c], eax
jmp case.0x100229a9.2
push 0x924
push 0
push esi
call fcn.10026c70
add esp, 0xc
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
inc ecx
inc eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], eax
cmp ecx, dword [ebp - 0x40]
jb 0x100229a0
mov eax, dword [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10027670
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10027670
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10027670
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 3
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10027670
mov esp, ebp
pop ebp
ret
dec esp
clc
retf 0xfca6
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10027670
mov esp, ebp
pop ebp
ret