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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x194
call fcn.007081d0
mov eax, dword [0x7d0e44]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x174], 0
mov dword [ebp - 0x17c], 0
mov dword [ebp - 0x164], 1
mov dword [ebp - 0x184], 0
call fcn.005ab2f0
cmp eax, 1
je 0x4b3da4
xor eax, eax
jmp 0x4b4389
lea eax, [ebp - 0x150]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
push 1
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.005a93e0
add esp, 0x1c
test eax, eax
jne 0x4b3de2
mov eax, dword [0x7d10f0]
push eax
call fcn.005283a0
add esp, 4
xor eax, eax
jmp 0x4b4389
cmp dword [ebp + 0x14], 0
je 0x4b3dfc
mov ecx, dword [ebp - 0x150]
push ecx
call fcn.005a8f50
add esp, 4
cmp dword [ebp + 0x14], eax
jne 0x4b3e3c
cmp dword [ebp + 0x18], 0
je 0x4b3e16
mov edx, dword [ebp - 0x150]
push edx
call fcn.005a9060
add esp, 4
cmp dword [ebp + 0x18], eax
jne 0x4b3e3c
cmp dword [ebp + 0x1c], 0
je 0x4b3e30
mov eax, dword [ebp - 0x150]
push eax
call fcn.005a9010
add esp, 4
cmp dword [ebp + 0x1c], eax
jne 0x4b3e3c
mov dword [ebp - 0x188], 0
jmp 0x4b3e5d
push 0x120
push str.appslib_s_socket.c
push str.assertion_failed:__family__AF_UNSPEC__family__BIO_ADDRINFO_family_res_____type__0__type__BIO_ADDRINFO_socktype_res_____protocol__0__protocol__BIO_ADDRINFO_protocol_res__
call fcn.005470f0
add esp, 0xc
mov dword [ebp - 0x188], 1
mov ecx, dword [ebp - 0x150]
push ecx
call fcn.005a8f50
add esp, 4
mov dword [ebp - 0x15c], eax
mov edx, dword [ebp - 0x150]
push edx
call fcn.005a9060
add esp, 4
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x150]
push eax
call fcn.005a9010
add esp, 4
mov dword [ebp - 0x16c], eax
mov ecx, dword [ebp - 0x150]
push ecx
call fcn.005a8f30
add esp, 4
mov dword [ebp - 0x168], eax
mov edx, dword [ebp - 0x150]
push edx
call fcn.005a8ff0
add esp, 4
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x15c], 0x17
jne 0x4b3ede
mov eax, dword [ebp - 0x164]
or eax, 2
mov dword [ebp - 0x164], eax
cmp dword [ebp - 0x158], 0
je 0x4b3fa3
mov ecx, dword [ebp - 0x158]
push ecx
call fcn.005a9060
add esp, 4
cmp eax, dword [ebp - 0x170]
jne 0x4b3fa3
mov edx, dword [ebp - 0x158]
push edx
call fcn.005a9010
add esp, 4
cmp eax, dword [ebp - 0x16c]
jne 0x4b3fa3
cmp dword [ebp - 0x15c], 2
jne 0x4b3f77
mov eax, dword [ebp - 0x158]
push eax
call fcn.005a8f50
add esp, 4
cmp eax, 0x17
jne 0x4b3f77
mov ecx, dword [ebp - 0x15c]
mov dword [ebp - 0x174], ecx
mov edx, dword [ebp - 0x168]
mov dword [ebp - 0x17c], edx
mov dword [ebp - 0x15c], 0x17
mov eax, dword [ebp - 0x158]
push eax
call fcn.005a8f30
add esp, 4
mov dword [ebp - 0x168], eax
jmp 0x4b3fa3
cmp dword [ebp - 0x15c], 0x17
jne 0x4b3fa3
mov ecx, dword [ebp - 0x158]
push ecx
call fcn.005a8f50
add esp, 4
cmp eax, 2
jne 0x4b3fa3
mov edx, dword [ebp - 0x164]
and edx, 0xfffffffd
mov dword [ebp - 0x164], edx
push 0
mov eax, dword [ebp - 0x16c]
push eax
mov ecx, dword [ebp - 0x170]
push ecx
mov edx, dword [ebp - 0x15c]
push edx
call fcn.005abdd0
add esp, 0x10
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0xffffffff
jne 0x4b400b
cmp dword [ebp - 0x174], 0
je 0x4b400b
push 0
mov eax, dword [ebp - 0x16c]
push eax
mov ecx, dword [ebp - 0x170]
push ecx
mov edx, dword [ebp - 0x174]
push edx
call fcn.005abdd0
add esp, 0x10
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x168], eax
cmp dword [ebp - 0x14c], 0xffffffff
je 0x4b4035
mov ecx, dword [ebp - 0x164]
push ecx
mov edx, dword [ebp - 0x168]
push edx
mov eax, dword [ebp - 0x14c]
push eax
call fcn.005aba50
add esp, 0xc
test eax, eax
jne 0x4b4070
mov ecx, dword [ebp - 0x150]
push ecx
call fcn.005a8f70
add esp, 4
mov edx, dword [0x7d10f0]
push edx
call fcn.005283a0
add esp, 4
cmp dword [ebp - 0x14c], 0xffffffff
je 0x4b406b
mov eax, dword [ebp - 0x14c]
push eax
call fcn.005ab800
add esp, 4
jmp 0x4b4358
mov ecx, dword [ebp - 0x168]
push ecx
call fcn.005a9310
add esp, 4
movzx edx, ax
mov dword [ebp - 0x18c], edx
mov eax, dword [ebp - 0x150]
push eax
call fcn.005a8f70
add esp, 4
mov dword [ebp - 0x150], 0
cmp dword [ebp - 0x18c], 0
jne 0x4b40b6
mov dword [ebp - 0x180], 1
jmp 0x4b40c0
mov dword [ebp - 0x180], 0
push 0
mov ecx, dword [ebp - 0x180]
push ecx
mov edx, dword [ebp - 0x14c]
push edx
mov eax, dword [ebp + 0x2c]
push eax
call fcn.004b4810
add esp, 0x10
test eax, eax
jne 0x4b4103
mov ecx, dword [ebp - 0x14c]
push ecx
call fcn.005ab800
add esp, 4
mov edx, dword [0x7d10f0]
push edx
call fcn.005283a0
add esp, 4
jmp 0x4b4358
cmp dword [ebp + 8], 0
je 0x4b4114
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14c]
mov dword [eax], ecx
cmp dword [ebp + 0x18], 1
jne 0x4b42f9
mov edx, dword [0x7d2054]
push edx
call fcn.005a90b0
add esp, 4
call fcn.005a9160
mov dword [0x7d2054], eax
cmp dword [0x7d2054], 0
jne 0x4b4163
mov eax, dword [ebp - 0x14c]
push eax
call fcn.005ab800
add esp, 4
mov ecx, dword [0x7d10f0]
push ecx
call fcn.005283a0
add esp, 4
jmp 0x4b4358
push 0
mov edx, dword [0x7d2054]
push edx
mov eax, dword [ebp - 0x14c]
push eax
call fcn.005ab610
add esp, 0xc
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0
jge 0x4b419d
mov ecx, dword [ebp - 0x154]
push ecx
call fcn.005ac280
add esp, 4
test eax, eax
jne 0x4b4163
cmp dword [ebp - 0x154], 0
jge 0x4b41c9
mov edx, dword [0x7d10f0]
push edx
call fcn.005283a0
add esp, 4
mov eax, dword [ebp - 0x14c]
push eax
call fcn.005ab800
add esp, 4
jmp 0x4b4358
push 1
mov ecx, dword [ebp - 0x154]
push ecx
call fcn.005ab120
add esp, 8
mov edx, dword [ebp + 0x24]
push edx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0x154]
push edx
call dword [ebp + 0x20]
add esp, 0x10
mov dword [ebp - 0x178], eax
push 1
mov eax, dword [ebp - 0x154]
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov dword [ebp - 0x194], 0
mov dword [ebp - 0x190], 0x7a120
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x160], 0
jmp 0x4b4241
mov ecx, dword [ebp - 0x160]
add ecx, 1
mov dword [ebp - 0x160], ecx
mov edx, dword [ebp - 0x160]
cmp edx, dword [ebp - 0x148]
jae 0x4b4268
mov eax, dword [ebp - 0x160]
mov ecx, dword [ebp + eax*4 - 0x144]
cmp ecx, dword [ebp - 0x154]
jne 0x4b4266
jmp 0x4b4268
jmp 0x4b4232
mov edx, dword [ebp - 0x160]
cmp edx, dword [ebp - 0x148]
jne 0x4b42a1
cmp dword [ebp - 0x148], 0x40
jae 0x4b42a1
mov eax, dword [ebp - 0x160]
mov ecx, dword [ebp - 0x154]
mov dword [ebp + eax*4 - 0x144], ecx
mov edx, dword [ebp - 0x148]
add edx, 1
mov dword [ebp - 0x148], edx
xor eax, eax
jne 0x4b4226
lea ecx, [ebp - 0x194]
push ecx
push 0
push 0
lea edx, [ebp - 0x148]
push edx
mov eax, dword [ebp - 0x154]
add eax, 1
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x4b42e8
push 0
push 0x40
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x154]
push edx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x4b421c
mov eax, dword [ebp - 0x154]
push eax
call fcn.005ab800
add esp, 4
jmp 0x4b4318
mov ecx, dword [ebp + 0x24]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0x14c]
push ecx
call dword [ebp + 0x20]
add esp, 0x10
mov dword [ebp - 0x178], eax
cmp dword [ebp + 0x28], 0xffffffff
je 0x4b4327
mov edx, dword [ebp + 0x28]
sub edx, 1
mov dword [ebp + 0x28], edx
cmp dword [ebp - 0x178], 0
jl 0x4b4336
cmp dword [ebp + 0x28], 0
jne 0x4b4353
mov eax, dword [ebp - 0x14c]
push eax
call fcn.005ab800
add esp, 4
mov ecx, dword [ebp - 0x178]
mov dword [ebp - 0x184], ecx
jmp 0x4b4358
jmp 0x4b4114
cmp dword [ebp + 0x14], 1
jne 0x4b436b
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__unlink]
add esp, 4
mov eax, dword [0x7d2054]
push eax
call fcn.005a90b0
add esp, 4
mov dword [0x7d2054], 0
mov eax, dword [ebp - 0x184]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.007081b5
mov esp, ebp
pop ebp
ret