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

Disassembly:
sub esp, 0xc0
push ebx
push ebp
mov ebp, dword [esp + 0xcc]
xor ebx, ebx
push esi
xor eax, eax
mov dword [esp + 0x18], ebx
mov byte [esp + 0xf], bl
lea esi, [esp + 0x3c]
mov dword [esp + 0x10], esi
test ebp, ebp
je 0x4e4dec
cmp dword [ebp], 0xbab1e
jne 0x4e4dec
cmp byte [ebp + 0xe0], al
je 0x4e4a1e
pop esi
pop ebp
lea eax, [ebx + 8]
pop ebx
add esp, 0xc0
ret
mov eax, dword [ebp + 4]
mov dword [esp + 0x1c], eax
push edi
test eax, eax
je 0x4e4a9b
nop word [eax + eax]
lea ecx, [esp + 0x2c]
push ecx
push eax
call fcn.004e5dd0
add esp, 8
mov ebp, eax
xor edi, edi
mov eax, 1
nop word [eax + eax]
or esi, 0xffffffff
lea edx, [edi*4]
test ebp, eax
je 0x4e4a63
mov esi, dword [esp + edx + 0x2c]
inc ebx
mov ecx, eax
rol ecx, 0x10
test ebp, ecx
je 0x4e4a71
mov esi, dword [esp + edx + 0x2c]
inc ebx
cmp esi, 0xffffffff
je 0x4e4a7e
inc edi
rol eax, 1
cmp edi, 5
jb 0x4e4a50
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], ebx
mov eax, dword [eax]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4e4a30
mov ebp, dword [esp + 0xd4]
lea esi, [esp + 0x40]
lea eax, [esp + 0x18]
push eax
push ebp
call fcn.004e7600
mov eax, dword [esp + 0x20]
add esp, 8
test eax, eax
js 0x4e4ac3
mov ecx, dword [esp + 0xe0]
cmp eax, ecx
cmovl ecx, eax
mov dword [esp + 0x20], ecx
jmp 0x4e4ace
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xdc]
add eax, ebx
cmp byte [esp + 0xec], 0
mov dword [esp + 0x28], eax
je 0x4e4aef
cmp dword [ebp + 0xe8], 0xffffffff
je 0x4e4aef
inc eax
cmp eax, 0xa
jbe 0x4e4b1e
shl eax, 3
push eax
call dword [0x5b6ea0]
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
test esi, esi
jne 0x4e4b19
pop edi
lea eax, [esi + 3]
pop esi
pop ebp
pop ebx
add esp, 0xc0
ret
mov byte [esp + 0x13], 1
xor edi, edi
mov dword [esp + 0x24], edi
test ebx, ebx
je 0x4e4bc6
mov eax, dword [ebp + 4]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4e4bc6
nop dword [eax + eax]
lea ecx, [esp + 0x2c]
push ecx
push eax
call fcn.004e5dd0
add esp, 8
lea edx, [esp + 0x2c]
mov ebx, eax
xor ebp, ebp
mov ecx, 1
nop dword [eax + eax]
or esi, 0xffffffff
test ebx, ecx
je 0x4e4b7d
mov esi, dword [esp + 0x14]
mov eax, dword [edx]
mov dword [esi + edi*8], eax
mov eax, 0x300
mov word [esi + edi*8 + 4], ax
inc edi
mov esi, dword [edx]
mov eax, ecx
rol eax, 0x10
test ebx, eax
je 0x4e4b9c
mov esi, dword [esp + 0x14]
mov eax, dword [edx]
mov dword [esi + edi*8], eax
mov eax, 0x10
mov word [esi + edi*8 + 4], ax
inc edi
mov esi, dword [edx]
cmp esi, 0xffffffff
je 0x4e4bac
inc ebp
rol ecx, 1
add edx, 4
cmp ebp, 5
jb 0x4e4b60
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], edi
mov eax, dword [eax]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4e4b40
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0xdc]
test eax, eax
je 0x4e4c33
mov edx, dword [esp + 0xd8]
lea ecx, [edi*8 + 4]
add ecx, esi
add edx, 4
add edi, eax
mov ebp, eax
mov dword [esp + 0x24], edi
mov ebx, 0x300
mov eax, dword [edx - 4]
mov dword [ecx - 4], eax
xor eax, eax
mov word [ecx], ax
test byte [edx], 1
je 0x4e4c06
mov word [ecx], bx
mov eax, ebx
test byte [edx], 2
movzx esi, ax
je 0x4e4c19
or eax, 0x400
mov word [ecx], ax
movzx esi, ax
test byte [edx], 4
je 0x4e4c24
or esi, 0x10
mov word [ecx], si
add ecx, 8
add edx, 8
sub ebp, 1
jne 0x4e4bf1
mov ebx, dword [esp + 0x1c]
cmp byte [esp + 0xec], 0
mov esi, dword [esp + 0x14]
je 0x4e4c65
mov eax, dword [esp + 0xd4]
mov eax, dword [eax + 0xe8]
cmp eax, 0xffffffff
je 0x4e4c65
mov dword [esi + edi*8], eax
mov eax, 0x300
mov word [esi + edi*8 + 4], ax
inc edi
mov dword [esp + 0x24], edi
test edi, edi
je 0x4e4d5b
push dword [esp + 0x20]
push edi
push esi
call fcn.004eab50
mov ebp, eax
add esp, 0xc
mov dword [esp + 0x18], ebp
test ebp, ebp
jle 0x4e4d5b
cmp dword [esp + 0xdc], 0
mov dword [esp + 0x1c], ebp
je 0x4e4d0b
mov ebp, dword [esp + 0xd8]
lea edi, [ebx*8 + 6]
add ebp, 6
add edi, esi
nop word [eax + eax]
movsx esi, word [edi]
lea edi, [edi + 8]
mov eax, esi
lea ebp, [ebp + 8]
and eax, 0x300
mov ebx, esi
neg eax
sbb eax, eax
neg eax
movzx edx, ax
mov eax, edx
or eax, 4
test bl, 0x10
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
test esi, 0x400
movzx ecx, ax
mov eax, edx
cmove ecx, eax
sub dword [esp + 0xdc], 1
mov word [ebp - 8], cx
jne 0x4e4cb0
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp byte [esp + 0xec], 0
mov ebx, dword [esp + 0xd4]
je 0x4e4d66
cmp dword [ebx + 0xe8], 0xffffffff
je 0x4e4d66
mov eax, dword [esp + 0x28]
mov ecx, 0x300
test word [esi + eax*8 + 6], cx
je 0x4e4d66
mov esi, dword [sym.imp.WS2_32.dll_recv]
nop dword [eax + eax]
push 0
push 0x40
lea eax, [esp + 0x98]
push eax
push dword [ebx + 0xe8]
call esi
test eax, eax
jns 0x4e4d40
dec ebp
jmp 0x4e4d6a
mov ebx, dword [esp + 0xd4]
xor ebp, ebp
jmp 0x4e4d6a
mov ebp, dword [esp + 0x1c]
cmp byte [esp + 0x13], 0
je 0x4e4d7e
push dword [esp + 0x14]
call dword [0x5b6ea4]
add esp, 4
mov eax, dword [esp + 0xe4]
test eax, eax
je 0x4e4d8b
mov dword [eax], ebp
cmp byte [esp + 0xe8], 0
je 0x4e4ddf
test edi, edi
jne 0x4e4ddf
cmp dword [ebx], 0xbab1e
mov dword [esp + 0x18], edi
jne 0x4e4ddf
cmp byte [ebx + 0xe0], 0
jne 0x4e4ddf
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.004e7600
add esp, 8
test eax, eax
jne 0x4e4ddf
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4e4ddf
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jg 0x4e4dd4
test eax, eax
jns 0x4e4dd6
mov eax, ecx
push eax
call fcn.004eb2f0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc0
ret
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc0
ret