Function at 0x1d49640
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x548
mov eax, dword [0x1e94008]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov dword [ebp - 0x53c], edi
cmp dword [edi + 0x38], 0
je 0x1d49867
cmp byte [edi + 0x3c], 0
jne 0x1d49867
push ebx
push esi
mov ecx, dword [edi + 0x38]
mov dword [ebp - 0x534], 0
call dword [sym.imp.tier0_d.dll_public:_void___thiscall_CThreadMutex::Lock_void_]
mov eax, dword [edi + 0x38]
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x540], esi
mov byte [ebp - 0x535], 1
mov edi, dword [eax + 0x20]
test edi, edi
je 0x1d4973c
mov eax, dword [edi + 0xc]
mov dword [edi + 8], ebx
test eax, eax
je 0x1d496bc
cmp ebx, 0x3f
jae 0x1d496bc
mov dword [ebp + ebx*4 - 0x104], eax
jmp 0x1d496c3
mov byte [ebp - 0x535], 0
mov eax, dword [ebp - 0x534]
xor esi, esi
test eax, eax
je 0x1d496ec
nop
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 0x28]
cmp dword [ebp + esi*4 - 0x530], eax
mov eax, dword [ebp - 0x534]
je 0x1d496ec
inc esi
cmp esi, eax
jb 0x1d496d0
cmp esi, eax
jne 0x1d4970c
cmp eax, 0x100
jae 0x1d4970c
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov dword [ebp + esi*4 - 0x530], eax
inc dword [ebp - 0x534]
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 0x28]
cmp dword [ebp - 0x540], eax
cmova eax, dword [ebp - 0x540]
inc ebx
mov esi, eax
mov dword [ebp - 0x540], esi
cmp ebx, 0x100
ja 0x1d4973c
mov edi, dword [edi]
test edi, edi
jne 0x1d496a4
mov edi, dword [ebp - 0x53c]
mov ecx, dword [edi + 0x38]
call dword [sym.imp.tier0_d.dll_public:_void___thiscall_CThreadMutex::Unlock_void_]
cmp byte [edi + 0x3c], 0
jne 0x1d49865
test ebx, ebx
je 0x1d4991d
cmp byte [ebp - 0x535], 0
je 0x1d49878
mov eax, dword [edi + 0x40]
push 0x1388
mov dword [ebp + ebx*4 - 0x104], eax
lea eax, [ebp - 0x104]
push 0
push eax
lea eax, [ebx + 1]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, ebx
jae 0x1d4985b
xor ecx, ecx
xor edi, edi
add eax, ecx
mov esi, ebx
push 0
lea ecx, [ebp - 0x104]
inc edi
push 0
mov dword [ebp + eax*4 - 0x104], 0
inc eax
sub esi, eax
mov dword [ebp - 0x540], eax
lea eax, [ecx + eax*4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ecx, dword [ebp - 0x540]
cmp eax, esi
jb 0x1d49798
test edi, edi
jle 0x1d49855
mov esi, dword [ebp - 0x53c]
mov ecx, dword [esi + 0x38]
call dword [sym.imp.tier0_d.dll_public:_void___thiscall_CThreadMutex::Lock_void_]
mov ecx, esi
mov eax, dword [ecx + 0x38]
mov esi, dword [eax + 0x20]
test esi, esi
je 0x1d4984c
cmp byte [ecx + 0x3c], 0
jne 0x1d49846
mov eax, dword [esi + 8]
test eax, eax
js 0x1d49840
cmp eax, ebx
ja 0x1d49846
cmp dword [ebp + eax*4 - 0x104], 0
jne 0x1d49840
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x130]
push eax
push dword [esi + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x28]
push eax
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
call eax
test al, al
jne 0x1d49827
sub edi, 1
je 0x1d49846
mov ecx, dword [ebp - 0x53c]
mov esi, dword [esi]
test esi, esi
jne 0x1d497f3
mov ecx, dword [ebp - 0x53c]
mov ecx, dword [ecx + 0x38]
call dword [sym.imp.tier0_d.dll_public:_void___thiscall_CThreadMutex::Unlock_void_]
mov edi, dword [ebp - 0x53c]
cmp byte [edi + 0x3c], 0
je 0x1d49672
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.01e029b1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x548]
mov dword [ebp - 0x548], 0
push eax
push 0
push 0
lea eax, [ebp - 0x534]
mov dword [ebp - 0x544], 0x1388
push eax
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edi, eax
test edi, edi
jle 0x1d49855
mov esi, dword [ebp - 0x53c]
mov ecx, dword [esi + 0x38]
call dword [sym.imp.tier0_d.dll_public:_void___thiscall_CThreadMutex::Lock_void_]
mov ecx, dword [esi + 0x38]
mov esi, dword [ecx + 0x20]
test esi, esi
je 0x1d49909
nop word [eax + eax]
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x534]
push eax
mov eax, dword [ecx]
call dword [eax + 0x28]
push eax
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1d49903
nop word [eax + eax]
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
call eax
test al, al
jne 0x1d498f0
sub edi, 1
je 0x1d49909
mov esi, dword [esi]
test esi, esi
jne 0x1d498d0
mov edi, dword [ebp - 0x53c]
mov ecx, dword [edi + 0x38]
call dword [sym.imp.tier0_d.dll_public:_void___thiscall_CThreadMutex::Unlock_void_]
jmp 0x1d4985b
push 0x1388
lea ecx, [edi + 0x40]
call dword [sym.imp.tier0_d.dll_public:_bool___thiscall_CThreadSyncObject::Wait_unsigned_int_]
jmp 0x1d4985b