Function at 0x101d84c0
Capabilities:
Get socket status

Disassembly:
mov eax, 0x348
call fcn.101fe2f0
mov eax, dword [0x102c5980]
xor eax, esp
mov dword [esp + 0x344], eax
mov eax, dword [esp + 0x364]
xor edx, edx
mov ecx, dword [esp + 0x354]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x358]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24c], 0
mov dword [esp + 0x148], 0
mov dword [esp + 0x44], edx
push edi
cmp esi, 0xffffffff
je 0x101d8531
cmp dword [esp + 0x360], edx
je 0x101d8531
mov dword [esp + 0x254], esi
mov dword [esp + 0x250], 1
cmp ecx, 0xffffffff
je 0x101d8551
cmp dword [esp + 0x368], edx
je 0x101d8551
mov dword [esp + 0x150], ecx
mov dword [esp + 0x14c], 1
cmp esi, 0xffffffff
je 0x101d8563
mov edx, 1
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], edx
cmp ecx, 0xffffffff
je 0x101d8590
xor eax, eax
test edx, edx
je 0x101d857b
nop
cmp dword [esp + eax*4 + 0x4c], ecx
je 0x101d857b
inc eax
cmp eax, edx
jb 0x101d8570
cmp eax, edx
jne 0x101d858c
cmp edx, 0x40
jae 0x101d858c
mov dword [esp + eax*4 + 0x4c], ecx
inc dword [esp + 0x48]
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x370]
cmp ecx, esi
mov ebx, dword [esp + 0x36c]
mov edi, ecx
cmovle edi, esi
cmp esi, 0xffffffff
jne 0x101d85c0
cmp ecx, 0xffffffff
jne 0x101d85c0
cmp ebp, ecx
jb 0x101d85c0
ja 0x101d85b9
cmp ebx, ecx
jb 0x101d85c0
xor eax, eax
jmp 0x101d87af
test eax, eax
je 0x101d85cd
push eax
call fcn.10056560
add esp, 4
push ebp
push ebx
call fcn.101d8490
lea ecx, [edi + 1]
mov dword [esp + 0x3c], eax
add esp, 8
mov dword [esp + 0x1c], ecx
test eax, eax
je 0x101d85ed
xor eax, eax
jmp 0x101d875a
call fcn.1005a340
cmp edx, ebp
jb 0x101d8605
ja 0x101d85fc
cmp eax, ebx
jbe 0x101d8605
mov ebx, 0x3e7
xor ecx, ecx
jmp 0x101d8632
sub ebx, eax
mov ecx, ebp
sbb ecx, edx
mov edx, ebx
mov eax, ecx
not edx
not eax
test eax, eax
ja 0x101d8629
jb 0x101d8621
cmp edx, 0x3e7
jae 0x101d8629
or ebx, 0xffffffff
or ecx, 0xffffffff
jmp 0x101d8632
add ebx, 0x3e7
adc ecx, 0
mov eax, ebx
mov dword [esp + 0x10], ebx
mov esi, 0x6d694b2f
mov ebp, 0x12e0be82
mul esi
mov dword [esp + 0x2c], eax
mov edi, edx
mov eax, ebx
mul ebp
mov ebx, eax
mov dword [esp + 0x14], edx
mov eax, ecx
mul esi
mov esi, eax
mov ebp, edx
mov eax, ecx
mov edx, 0x12e0be82
mul edx
add esi, edi
mov edi, 0x3b9aca00
mov dword [esp + 0x18], eax
adc ebp, 0
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x14]
add ebx, esi
mov dword [esp + 0x2c], ebx
adc edx, 0
mov ebx, dword [esp + 0x24]
xor eax, eax
add ebp, edx
mov edx, dword [esp + 0x18]
adc eax, eax
add edx, ebp
mov ebp, dword [esp + 0x10]
adc ebx, eax
sub ebp, edx
mov eax, ecx
sbb eax, ebx
shrd ebp, eax, 1
shr eax, 1
add ebp, edx
adc eax, ebx
mov ebx, dword [esp + 0x10]
shrd ebp, eax, 0x1d
shr eax, 0x1d
mul edi
mov dword [esp + 0x2c], ebp
mov esi, eax
mov eax, ebp
mul edi
mov ebp, 0x624dd2f
add esi, edx
sub ebx, eax
mov eax, ebx
mov dword [esp + 0x10], ebx
sbb ecx, esi
mov esi, 0x1a9fbe77
mul esi
mov dword [esp + 0x24], eax
mov edi, edx
mov eax, ebx
mul ebp
mov ebx, eax
mov dword [esp + 0x24], edx
mov eax, ecx
mul esi
mov esi, eax
mov ebp, edx
mov eax, ecx
mov edx, 0x624dd2f
mul edx
add esi, edi
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x24]
adc ebp, 0
add ebx, esi
mov dword [esp + 0x18], eax
adc edx, 0
xor eax, eax
add ebp, edx
adc eax, eax
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
add edx, ebp
mov ebp, dword [esp + 0x10]
adc ebx, eax
mov eax, dword [esp + 0x2c]
sub ebp, edx
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
sbb ecx, ebx
shrd ebp, ecx, 1
shr ecx, 1
add ebp, edx
adc ecx, ebx
mov ebx, dword [esp + 0x36c]
shrd ebp, ecx, 9
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x3c], ebp
mov ebp, dword [esp + 0x370]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x154]
push eax
lea eax, [esp + 0x25c]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
cmp esi, 0xffffffff
jne 0x101d8797
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x1c]
cmp eax, 0x2714
mov eax, dword [esp + 0x34]
je 0x101d85e2
mov eax, dword [esp + 0x20]
test eax, eax
je 0x101d87a8
push eax
call fcn.10056520
add esp, 4
not esi
shr esi, 0x1f
mov eax, esi
mov ecx, dword [esp + 0x354]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101fdd0b
add esp, 0x348
ret