Function at 0x100d7c50
Capabilities:
Get socket status

Disassembly:
mov eax, 0x348
call fcn.1026b810
mov eax, dword [0x10343c80]
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 0x100d7cc1
cmp dword [esp + 0x360], edx
je 0x100d7cc1
mov dword [esp + 0x254], esi
mov dword [esp + 0x250], 1
cmp ecx, 0xffffffff
je 0x100d7ce1
cmp dword [esp + 0x368], edx
je 0x100d7ce1
mov dword [esp + 0x150], ecx
mov dword [esp + 0x14c], 1
cmp esi, 0xffffffff
je 0x100d7cf3
mov edx, 1
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], edx
cmp ecx, 0xffffffff
je 0x100d7d20
xor eax, eax
test edx, edx
je 0x100d7d0b
nop
cmp dword [esp + eax*4 + 0x4c], ecx
je 0x100d7d0b
inc eax
cmp eax, edx
jb 0x100d7d00
cmp eax, edx
jne 0x100d7d1c
cmp edx, 0x40
jae 0x100d7d1c
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 0x100d7d50
cmp ecx, 0xffffffff
jne 0x100d7d50
cmp ebp, ecx
jb 0x100d7d50
ja 0x100d7d49
cmp ebx, ecx
jb 0x100d7d50
xor eax, eax
jmp 0x100d7f3f
test eax, eax
je 0x100d7d5d
push eax
call fcn.10131e10
add esp, 4
push ebp
push ebx
call fcn.100d7c20
lea ecx, [edi + 1]
mov dword [esp + 0x3c], eax
add esp, 8
mov dword [esp + 0x1c], ecx
test eax, eax
je 0x100d7d7d
xor eax, eax
jmp 0x100d7eea
call fcn.10123000
cmp edx, ebp
jb 0x100d7d95
ja 0x100d7d8c
cmp eax, ebx
jbe 0x100d7d95
mov ebx, 0x3e7
xor ecx, ecx
jmp 0x100d7dc2
sub ebx, eax
mov ecx, ebp
sbb ecx, edx
mov edx, ebx
mov eax, ecx
not edx
not eax
test eax, eax
ja 0x100d7db9
jb 0x100d7db1
cmp edx, 0x3e7
jae 0x100d7db9
or ebx, 0xffffffff
or ecx, 0xffffffff
jmp 0x100d7dc2
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 0x100d7f27
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x1c]
cmp eax, 0x2714
mov eax, dword [esp + 0x34]
je 0x100d7d72
mov eax, dword [esp + 0x20]
test eax, eax
je 0x100d7f38
push eax
call fcn.10131dd0
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.1026af9a
add esp, 0x348
ret