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

Disassembly:
mov eax, 0x1038
call fcn.00499920
mov eax, dword [0x612790]
xor eax, esp
mov dword [esp + 0x1034], eax
mov eax, dword [esp + 0x1048]
mov ecx, dword [esp + 0x1044]
push ebp
mov ebp, dword [esp + 0x1040]
push edi
mov edi, dword [esp + 0x1048]
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], eax
test edi, edi
jne 0x49e0fb
cmp ecx, 0xffffffff
je 0x49e24c
push esi
xor esi, esi
mov dword [esp + 0xc], esi
cmp dword [ebp + 0x78], esi
jle 0x49e24b
push ebx
xor ebx, ebx
lea edx, [esi + 0x1c]
mov dword [esp + 0x1c], ebx
add ebx, dword [ebp + 0x74]
mov eax, dword [ebx + 0x1c]
cmp eax, 0xffffffff
je 0x49e231
cmp dword [ebx + 0x54], 0
jne 0x49e231
test edi, edi
je 0x49e19a
push edi
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x49e225
mov esi, dword [edi]
xor ecx, ecx
mov edx, dword [ebx + 0x1c]
test esi, esi
je 0x49e15c
lea eax, [edi + 4]
nop
cmp dword [eax], edx
je 0x49e172
inc ecx
add eax, 4
cmp ecx, esi
jb 0x49e150
mov esi, dword [esp + 0x10]
mov edx, 0x1c
cmp dword [ebx + 0x1c], 0xffffffff
jne 0x49e1a4
xor edi, edi
jmp 0x49e267
lea eax, [esi - 1]
cmp ecx, eax
jae 0x49e193
lea edx, [ecx + 1]
lea edx, [edi + edx*4]
nop
mov eax, dword [edx + 4]
lea edx, [edx + 4]
mov dword [edx - 4], eax
inc ecx
mov esi, dword [edi]
lea eax, [esi - 1]
cmp ecx, eax
jb 0x49e180
lea eax, [esi - 1]
mov dword [edi], eax
jmp 0x49e15c
cmp eax, ecx
jne 0x49e231
jmp 0x49e165
cmp dword [ebx], 2
mov eax, 0x10
cmovne eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x91b8]
mov ecx, dword [ebx + 0x1c]
test eax, eax
je 0x49e1e7
push dword [ebp + 0x91bc]
mov eax, dword [eax + 0xc]
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x2c]
push edx
push 0
push 0x1001
lea edx, [esp + 0x54]
push edx
push ecx
call eax
add esp, 0x1c
jmp 0x49e204
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
push 0
push 0x1001
lea eax, [esp + 0x50]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
cmp edi, 0xffffffff
jne 0x49e263
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x49e21d
cmp eax, 0x2733
jne 0x49e267
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1054]
mov edx, 0x1c
mov ebx, dword [esp + 0x1c]
inc esi
add ebx, 0x58
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], ebx
cmp esi, dword [ebp + 0x78]
jl 0x49e115
pop ebx
pop esi
mov ecx, dword [esp + 0x103c]
pop edi
pop ebp
xor ecx, esp
call fcn.00498b38
add esp, 0x1038
ret
test edi, edi
jg 0x49e27e
push dword [esp + 0x18]
push esi
push ebp
call fcn.0049d340
add esp, 0xc
test edi, edi
jle 0x49e21d
jmp 0x49e160
movzx eax, word [esp + 0x24]
mov ecx, dword [ebx]
cmp eax, ecx
jne 0x49e21d
sub ecx, 2
je 0x49e2bb
sub ecx, 0x15
jne 0x49e21d
lea edx, [ebx + 4]
lea eax, [esp + 0x2c]
lea esi, [ecx + 0xc]
nop dword [eax]
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x49e21d
add edx, 4
add eax, 4
sub esi, 4
jae 0x49e2a0
mov esi, dword [esp + 0x10]
jmp 0x49e2ca
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x28]
cmp eax, dword [ecx]
jne 0x49e21d
push dword [esp + 0x18]
lea eax, [esp + 0x44]
push 0
push esi
push edi
push eax
push ebp
call fcn.0049db20
add esp, 0x18
jmp 0x49e160