Function at 0x4a9000
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push ebx
push esi
push edi
call fcn.004a4e00
call fcn.004a5d60
jmp 0x4a9020
mov eax, dword [0x69fb40]
test eax, eax
je 0x4a95db
cmp eax, 0xffffffff
je 0x4a95db
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x130], 1
test eax, eax
je 0x4a9054
mov esi, eax
mov dword [ebp - 4], eax
call fcn.004574b0
cmp byte [0x6f6722], 0
mov ebx, eax
mov dword [ebp - 0x18], ebx
je 0x4a937a
call fcn.004a8a40
xor edi, edi
cmp dword [0x6f25f4], edi
jbe 0x4a90f3
mov esi, 0x6f260c
nop
cmp dword [esi - 0xc], 0
je 0x4a90e4
lea eax, [esi - 0x14]
cmp eax, dword [0x6f25c0]
je 0x4a90e4
mov ecx, ebx
sub ecx, dword [esi + 0x18]
cmp ecx, 0x1388
jbe 0x4a90ab
lea edx, [esi - 0x14]
push ebx
push edx
call fcn.004a7f70
add esp, 8
mov eax, dword [esi]
test eax, eax
je 0x4a90e4
cmp byte [esi + 0x12], 0
je 0x4a90e4
mov ecx, ebx
sub ecx, eax
cmp ecx, 0x3a98
jbe 0x4a90cf
lea edx, [esi - 0x14]
push edx
call fcn.004a7f50
add esp, 4
cmp byte [esi + 0x15], 0
jne 0x4a90e4
mov eax, dword [esi]
cmp eax, dword [0x6f25c4]
jbe 0x4a90e4
mov dword [0x6f25c4], eax
inc edi
add esi, 0x70
cmp edi, dword [0x6f25f4]
jb 0x4a9080
mov esi, dword [ebp - 4]
mov eax, dword [0x6f25c4]
test eax, eax
je 0x4a9113
mov ecx, ebx
sub ecx, eax
cmp ecx, 0x3a98
jbe 0x4a9113
call fcn.004a6600
mov dword [0x6f25c4], ebx
cmp byte [0x6f5e0a], 0
je 0x4a937a
call fcn.004a43d0
test al, al
je 0x4a937a
push ebx
call fcn.004a7ae0
mov edx, dword [ebp - 0x130]
add esp, 4
cmp dword [0x6f25f4], 0
mov dword [ebp - 0xc], 0
jbe 0x4a9260
mov edi, 0x6f2654
cmp byte [edi - 0x36], 0
je 0x4a9247
lea eax, [edi - 0x5c]
cmp eax, dword [0x6f25c0]
je 0x4a9247
xor ebx, ebx
cmp byte [edi], bl
jbe 0x4a9247
lea ecx, [edi + 4]
mov dword [ebp - 8], ecx
mov edi, edi
mov eax, dword [ebp - 8]
mov esi, dword [eax]
cmp byte [esi + 0x14], 2
jne 0x4a91f9
cmp byte [esi + 0x1c], 0
je 0x4a91ba
movzx ecx, word [esi + 0x18]
movzx eax, word [esi + 0x16]
sub eax, ecx
cmp eax, 0x8000
jle 0x4a91a9
add eax, 0xffff0000
jmp 0x4a91b5
cmp eax, 0xffff8000
jge 0x4a91b5
add eax, 0x10000
cmp eax, 0x10
jge 0x4a91f9
xor eax, eax
test edx, edx
je 0x4a91d0
mov ecx, dword [esi]
cmp dword [ebp + eax*4 - 0x12c], ecx
je 0x4a91d0
inc eax
cmp eax, edx
jb 0x4a91c2
cmp eax, edx
jne 0x4a91ef
cmp edx, 0x40
jae 0x4a91ef
mov edx, dword [esi]
mov dword [ebp + eax*4 - 0x12c], edx
mov edx, dword [ebp - 0x130]
inc edx
mov dword [ebp - 0x130], edx
mov eax, dword [esi]
cmp eax, dword [ebp - 4]
jbe 0x4a91f9
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4a9237
cmp dword [ebp - 0x18], eax
jbe 0x4a9237
cmp byte [esi + 0x14], 1
jne 0x4a921e
lea eax, [edi - 0x5c]
push esi
push eax
call fcn.004a7420
mov edx, dword [ebp - 0x130]
add esp, 8
cmp byte [esi + 0x14], 3
jne 0x4a9237
lea ecx, [edi - 0x5c]
push esi
push ecx
call fcn.004a74d0
mov edx, dword [ebp - 0x130]
add esp, 8
movzx eax, byte [edi]
add dword [ebp - 8], 4
inc ebx
cmp ebx, eax
jb 0x4a9180
mov eax, dword [ebp - 0xc]
inc eax
add edi, 0x70
mov dword [ebp - 0xc], eax
cmp eax, dword [0x6f25f4]
jb 0x4a9155
mov esi, dword [ebp - 4]
mov ecx, dword [0x69fb44]
test ecx, ecx
je 0x4a92a6
cmp ecx, 0xffffffff
je 0x4a92a6
xor eax, eax
test edx, edx
je 0x4a9283
cmp dword [ebp + eax*4 - 0x12c], ecx
je 0x4a9283
inc eax
cmp eax, edx
jb 0x4a9275
cmp eax, edx
jne 0x4a92a0
cmp edx, 0x40
jae 0x4a92a0
mov dword [ebp + eax*4 - 0x12c], ecx
mov edx, dword [ebp - 0x130]
inc edx
mov dword [ebp - 0x130], edx
cmp ecx, esi
jbe 0x4a92a6
mov esi, ecx
mov ecx, dword [0x69fb48]
test ecx, ecx
je 0x4a92f1
cmp ecx, 0xffffffff
je 0x4a92f1
xor eax, eax
test edx, edx
je 0x4a92ce
jmp 0x4a92c0
cmp dword [ebp + eax*4 - 0x12c], ecx
je 0x4a92ce
inc eax
cmp eax, edx
jb 0x4a92c0
cmp eax, edx
jne 0x4a92eb
cmp edx, 0x40
jae 0x4a92eb
mov dword [ebp + eax*4 - 0x12c], ecx
mov edx, dword [ebp - 0x130]
inc edx
mov dword [ebp - 0x130], edx
cmp ecx, esi
jbe 0x4a92f1
mov esi, ecx
mov ecx, dword [0x69fb4c]
test ecx, ecx
je 0x4a9337
cmp ecx, 0xffffffff
je 0x4a9337
xor eax, eax
test edx, edx
je 0x4a9314
cmp dword [ebp + eax*4 - 0x12c], ecx
je 0x4a9314
inc eax
cmp eax, edx
jb 0x4a9306
cmp eax, edx
jne 0x4a9331
cmp edx, 0x40
jae 0x4a9331
mov dword [ebp + eax*4 - 0x12c], ecx
mov edx, dword [ebp - 0x130]
inc edx
mov dword [ebp - 0x130], edx
cmp ecx, esi
jbe 0x4a9337
mov esi, ecx
mov ecx, dword [0x69fb50]
test ecx, ecx
je 0x4a937a
cmp ecx, 0xffffffff
je 0x4a937a
xor eax, eax
test edx, edx
je 0x4a935e
lea esp, [esp]
cmp dword [ebp + eax*4 - 0x12c], ecx
je 0x4a935e
inc eax
cmp eax, edx
jb 0x4a9350
cmp eax, edx
jne 0x4a9374
cmp edx, 0x40
jae 0x4a9374
mov dword [ebp + eax*4 - 0x12c], ecx
inc dword [ebp - 0x130]
cmp ecx, esi
jbe 0x4a937a
mov esi, ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0x2710
call fcn.004a4e20
cmp dword [ebp - 0x130], 0
jne 0x4a93c1
mov eax, 0x10624dd3
imul dword [ebp - 0x10]
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x3e8
add ecx, edx
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov dword [ebp - 4], edi
jmp 0x4a93dd
lea eax, [ebp - 0x14]
push eax
push 0
push 0
lea ecx, [ebp - 0x130]
push ecx
inc esi
push esi
call dword [sym.imp.WS2_32.dll_select]
mov edi, eax
mov dword [ebp - 4], eax
call fcn.004a4e00
mov eax, dword [0x69fb40]
test eax, eax
je 0x4a95db
cmp eax, 0xffffffff
je 0x4a9025
test edi, edi
jle 0x4a9025
lea edx, [ebp - 0x130]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a947b
mov edx, dword [0x69fb40]
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push 0
push 0x820
push 0x6f5e20
push edx
mov dword [ebp - 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
mov esi, eax
test esi, esi
jle 0x4a946f
cmp word [ebp - 0x2c], 2
jne 0x4a946d
mov eax, dword [ebp - 0x2a]
push esi
push 0x6f5e20
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov edx, dword [ebp - 0x28]
movzx ecx, ax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_ntohl]
push eax
call fcn.004a8c10
add esp, 0x10
test esi, esi
jns 0x4a9411
dec edi
mov dword [ebp - 4], edi
je 0x4a9020
cmp byte [0x6f6722], 0
je 0x4a9020
cmp byte [0x6f5e0a], 0
je 0x4a9020
call fcn.004a43d0
test al, al
je 0x4a9020
mov ecx, dword [0x69fb44]
lea eax, [ebp - 0x130]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a94cd
push 0
call fcn.004a7790
add esp, 4
dec edi
mov dword [ebp - 4], edi
je 0x4a9020
mov eax, dword [0x69fb48]
lea edx, [ebp - 0x130]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a94f7
push 1
call fcn.004a7790
add esp, 4
dec edi
mov dword [ebp - 4], edi
je 0x4a9020
mov edx, dword [0x69fb4c]
lea ecx, [ebp - 0x130]
push ecx
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a951d
call fcn.004a7b60
dec edi
mov dword [ebp - 4], edi
je 0x4a9020
mov ecx, dword [0x69fb50]
lea eax, [ebp - 0x130]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a9543
call fcn.004a7990
dec edi
mov dword [ebp - 4], edi
je 0x4a9020
cmp dword [0x6f25f4], 0
mov dword [ebp - 0xc], 0
jbe 0x4a9020
mov eax, 0x6f25f8
mov dword [ebp - 8], eax
nop
cmp byte [eax + 0x26], 0
je 0x4a95c1
cmp eax, dword [0x6f25c0]
je 0x4a95c1
movzx edi, byte [eax + 0x5c]
test edi, edi
je 0x4a95b4
mov edx, dword [ebp - 8]
lea ebx, [edx + edi*4 + 0x60]
lea ecx, [ecx]
mov esi, dword [ebx - 4]
mov ecx, dword [esi]
sub ebx, 4
lea eax, [ebp - 0x130]
push eax
push ecx
dec edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a95b0
mov edx, dword [ebp - 8]
push esi
push edx
call fcn.004a8750
add esp, 8
dec dword [ebp - 4]
je 0x4a9020
test edi, edi
jne 0x4a9580
cmp dword [ebp - 4], 0
je 0x4a9020
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
inc ecx
add eax, 0x70
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
cmp ecx, dword [0x6f25f4]
jb 0x4a9560
jmp 0x4a9020
call fcn.004a4e20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret