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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2124
call fcn.005fc660
push edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x211c], ecx
mov byte [ebp - 0x2014], 0
mov ecx, 0x7ff
xor eax, eax
lea edi, [ebp - 0x2013]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edx, edx
mov dl, byte [0x784c38]
test edx, edx
je 0x439c16
mov dword [ebp - 0x2118], 0
mov dword [ebp - 0x2120], 0
jmp 0x439a38
mov eax, dword [ebp - 0x2120]
add eax, 1
mov dword [ebp - 0x2120], eax
mov ecx, dword [ebp - 0x2120]
cmp ecx, dword [ebp - 0x2118]
jae 0x439a5c
mov edx, dword [ebp - 0x2120]
mov eax, dword [ebp + edx*4 - 0x2114]
cmp eax, dword [ebp - 0x10]
jne 0x439a5a
jmp 0x439a5c
jmp 0x439a29
mov ecx, dword [ebp - 0x2120]
cmp ecx, dword [ebp - 0x2118]
jne 0x439a92
cmp dword [ebp - 0x2118], 0x40
jae 0x439a92
mov edx, dword [ebp - 0x2120]
mov eax, dword [ebp - 0x10]
mov dword [ebp + edx*4 - 0x2114], eax
mov ecx, dword [ebp - 0x2118]
add ecx, 1
mov dword [ebp - 0x2118], ecx
xor edx, edx
test edx, edx
jne 0x439a1d
mov dword [ebp - 0x2124], 0
jmp 0x439ab3
mov eax, dword [ebp - 0x2124]
add eax, 1
mov dword [ebp - 0x2124], eax
mov ecx, dword [ebp - 0x2124]
cmp ecx, dword [ebp - 0x2118]
jae 0x439ada
mov edx, dword [ebp - 0x2124]
mov eax, dword [ebp + edx*4 - 0x2114]
cmp eax, dword [ebp - 0x211c]
jne 0x439ad8
jmp 0x439ada
jmp 0x439aa4
mov ecx, dword [ebp - 0x2124]
cmp ecx, dword [ebp - 0x2118]
jne 0x439b13
cmp dword [ebp - 0x2118], 0x40
jae 0x439b13
mov edx, dword [ebp - 0x2124]
mov eax, dword [ebp - 0x211c]
mov dword [ebp + edx*4 - 0x2114], eax
mov ecx, dword [ebp - 0x2118]
add ecx, 1
mov dword [ebp - 0x2118], ecx
xor edx, edx
test edx, edx
jne 0x439a98
push 0
push 0
push 0
lea eax, [ebp - 0x2118]
push eax
push 0
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jg 0x439b40
jmp 0x439c39
lea ecx, [ebp - 0x2118]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x439baa
push 0
push 0x2000
lea eax, [ebp - 0x2014]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jg 0x439b7a
jmp 0x439c37
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x2014]
push eax
mov ecx, dword [ebp - 0x211c]
push ecx
call fcn.0043994f
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x439ba5
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 4]
je 0x439baa
jmp 0x439c35
lea eax, [ebp - 0x2118]
push eax
mov ecx, dword [ebp - 0x211c]
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x439c11
push 0
push 0x2000
lea edx, [ebp - 0x2014]
push edx
mov eax, dword [ebp - 0x211c]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jg 0x439be7
jmp 0x439c33
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x2014]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.0043994f
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x439c0f
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 4]
je 0x439c11
jmp 0x439c31
jmp 0x439a03
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x211c]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x439c3b
jmp 0x439c16
jmp 0x439c16
jmp 0x439c16
jmp 0x439c16
jmp 0x439c16
pop edi
mov esp, ebp
pop ebp
ret 4