Function at 0x1001e390
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov dword [ebp - 0x25c], ecx
mov eax, dword [ebp - 0x25c]
cmp dword [eax + 0x1ac], 0
jne 0x1001e3d7
push 0x19e
lea ecx, [ebp - 0x238]
call fcn.10009f00
mov ecx, dword [eax]
mov dword [ebp - 0x234], ecx
push 0x10042bf4
lea edx, [ebp - 0x234]
push edx
call sub.MSVCR80.dll__CxxThrowException
mov eax, dword [ebp - 0x25c]
mov ecx, dword [eax + 0x1ac]
push ecx
call sub.libssl_1_1.dll_SSL_new
add esp, 4
mov edx, dword [ebp - 0x25c]
mov dword [edx + 0x1b0], eax
mov eax, dword [ebp - 0x25c]
cmp dword [eax + 0x1b0], 0
jne 0x1001e430
push 0x19e
lea ecx, [ebp - 0x240]
call fcn.10009f00
mov ecx, dword [eax]
mov dword [ebp - 0x23c], ecx
push 0x10042bf4
lea edx, [ebp - 0x23c]
push edx
call sub.MSVCR80.dll__CxxThrowException
mov eax, dword [ebp - 0x25c]
mov ecx, dword [eax + 0x14c]
push ecx
mov edx, dword [ebp - 0x25c]
mov eax, dword [edx + 0x1b0]
push eax
call sub.libssl_1_1.dll_SSL_set_fd
add esp, 8
push 0
push 4
push 0x21
mov ecx, dword [ebp - 0x25c]
mov edx, dword [ecx + 0x1b0]
push edx
call sub.libssl_1_1.dll_SSL_ctrl
add esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x11c], 0xb4
mov dword [ebp - 0x118], 0
mov eax, 1
test eax, eax
je 0x1001e798
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x110], 0
cmp dword [ebp - 0x120], 0
je 0x1001e559
mov dword [ebp - 0x22c], 0
jmp 0x1001e4e5
mov ecx, dword [ebp - 0x22c]
add ecx, 1
mov dword [ebp - 0x22c], ecx
mov edx, dword [ebp - 0x22c]
cmp edx, dword [ebp - 0x228]
jae 0x1001e512
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x25c]
mov edx, dword [ebp + eax*4 - 0x224]
cmp edx, dword [ecx + 0x14c]
jne 0x1001e510
jmp 0x1001e512
jmp 0x1001e4d6
mov eax, dword [ebp - 0x22c]
cmp eax, dword [ebp - 0x228]
jne 0x1001e551
cmp dword [ebp - 0x228], 0x40
jae 0x1001e551
mov ecx, dword [ebp - 0x22c]
mov edx, dword [ebp - 0x25c]
mov eax, dword [edx + 0x14c]
mov dword [ebp + ecx*4 - 0x224], eax
mov ecx, dword [ebp - 0x228]
add ecx, 1
mov dword [ebp - 0x228], ecx
xor edx, edx
jne 0x1001e4ca
cmp dword [ebp - 0x114], 0
je 0x1001e5f5
mov dword [ebp - 0x230], 0
jmp 0x1001e581
mov eax, dword [ebp - 0x230]
add eax, 1
mov dword [ebp - 0x230], eax
mov ecx, dword [ebp - 0x230]
cmp ecx, dword [ebp - 0x110]
jae 0x1001e5ae
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 0x25c]
mov ecx, dword [ebp + edx*4 - 0x10c]
cmp ecx, dword [eax + 0x14c]
jne 0x1001e5ac
jmp 0x1001e5ae
jmp 0x1001e572
mov edx, dword [ebp - 0x230]
cmp edx, dword [ebp - 0x110]
jne 0x1001e5ed
cmp dword [ebp - 0x110], 0x40
jae 0x1001e5ed
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x25c]
mov edx, dword [ecx + 0x14c]
mov dword [ebp + eax*4 - 0x10c], edx
mov eax, dword [ebp - 0x110]
add eax, 1
mov dword [ebp - 0x110], eax
xor ecx, ecx
jne 0x1001e566
cmp dword [ebp - 0x120], 0
jne 0x1001e60b
cmp dword [ebp - 0x114], 0
je 0x1001e6d2
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x114], 0
lea edx, [ebp - 0x11c]
push edx
push 0
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp - 0x25c]
mov eax, dword [edx + 0x14c]
add eax, 1
push eax
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x1001e68f
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x110], 0
push 0x6d
lea ecx, [ebp - 0x248]
call fcn.10009f00
mov ecx, dword [eax]
mov dword [ebp - 0x244], ecx
push 0x10042bf4
lea edx, [ebp - 0x244]
push edx
call sub.MSVCR80.dll__CxxThrowException
cmp dword [ebp - 4], 0
jne 0x1001e6d2
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x110], 0
push 0x192
lea ecx, [ebp - 0x250]
call fcn.10009f00
mov eax, dword [eax]
mov dword [ebp - 0x24c], eax
push 0x10042bf4
lea ecx, [ebp - 0x24c]
push ecx
call sub.MSVCR80.dll__CxxThrowException
mov edx, dword [ebp - 0x25c]
mov eax, dword [edx + 0x1b0]
push eax
call sub.libssl_1_1.dll_SSL_connect
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x25c]
mov eax, dword [edx + 0x1b0]
push eax
call sub.libssl_1_1.dll_SSL_get_error
add esp, 8
mov dword [ebp - 0x260], eax
cmp dword [ebp - 0x260], 0
je 0x1001e726
cmp dword [ebp - 0x260], 2
je 0x1001e74a
cmp dword [ebp - 0x260], 3
je 0x1001e73e
jmp 0x1001e756
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x110], 0
jmp 0x1001e798
mov dword [ebp - 0x120], 1
jmp 0x1001e793
mov dword [ebp - 0x114], 1
jmp 0x1001e793
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x110], 0
push 0x19e
lea ecx, [ebp - 0x258]
call fcn.10009f00
mov ecx, dword [eax]
mov dword [ebp - 0x254], ecx
push 0x10042bf4
lea edx, [ebp - 0x254]
push edx
call sub.MSVCR80.dll__CxxThrowException
jmp 0x1001e49c
mov esp, ebp
pop ebp
ret