Function at 0x1001e3e0
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 0x1001e427
push 0x19e
lea ecx, [ebp - 0x238]
call fcn.10007900
mov ecx, dword [eax]
mov dword [ebp - 0x234], ecx
push 0x10046434
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 0x1001e480
push 0x19e
lea ecx, [ebp - 0x240]
call fcn.10007900
mov ecx, dword [eax]
mov dword [ebp - 0x23c], ecx
push 0x10046434
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 0x1001e7e8
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x110], 0
cmp dword [ebp - 0x120], 0
je 0x1001e5a9
mov dword [ebp - 0x22c], 0
jmp 0x1001e535
mov ecx, dword [ebp - 0x22c]
add ecx, 1
mov dword [ebp - 0x22c], ecx
mov edx, dword [ebp - 0x22c]
cmp edx, dword [ebp - 0x228]
jae 0x1001e562
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x25c]
mov edx, dword [ebp + eax*4 - 0x224]
cmp edx, dword [ecx + 0x14c]
jne 0x1001e560
jmp 0x1001e562
jmp 0x1001e526
mov eax, dword [ebp - 0x22c]
cmp eax, dword [ebp - 0x228]
jne 0x1001e5a1
cmp dword [ebp - 0x228], 0x40
jae 0x1001e5a1
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 0x1001e51a
cmp dword [ebp - 0x114], 0
je 0x1001e645
mov dword [ebp - 0x230], 0
jmp 0x1001e5d1
mov eax, dword [ebp - 0x230]
add eax, 1
mov dword [ebp - 0x230], eax
mov ecx, dword [ebp - 0x230]
cmp ecx, dword [ebp - 0x110]
jae 0x1001e5fe
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 0x25c]
mov ecx, dword [ebp + edx*4 - 0x10c]
cmp ecx, dword [eax + 0x14c]
jne 0x1001e5fc
jmp 0x1001e5fe
jmp 0x1001e5c2
mov edx, dword [ebp - 0x230]
cmp edx, dword [ebp - 0x110]
jne 0x1001e63d
cmp dword [ebp - 0x110], 0x40
jae 0x1001e63d
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 0x1001e5b6
cmp dword [ebp - 0x120], 0
jne 0x1001e65b
cmp dword [ebp - 0x114], 0
je 0x1001e722
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 0x1001e6df
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x110], 0
push 0x6d
lea ecx, [ebp - 0x248]
call fcn.10007900
mov ecx, dword [eax]
mov dword [ebp - 0x244], ecx
push 0x10046434
lea edx, [ebp - 0x244]
push edx
call sub.MSVCR80.dll__CxxThrowException
cmp dword [ebp - 4], 0
jne 0x1001e722
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x110], 0
push 0x192
lea ecx, [ebp - 0x250]
call fcn.10007900
mov eax, dword [eax]
mov dword [ebp - 0x24c], eax
push 0x10046434
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 0x1001e776
cmp dword [ebp - 0x260], 2
je 0x1001e79a
cmp dword [ebp - 0x260], 3
je 0x1001e78e
jmp 0x1001e7a6
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x110], 0
jmp 0x1001e7e8
mov dword [ebp - 0x120], 1
jmp 0x1001e7e3
mov dword [ebp - 0x114], 1
jmp 0x1001e7e3
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x110], 0
push 0x19e
lea ecx, [ebp - 0x258]
call fcn.10007900
mov ecx, dword [eax]
mov dword [ebp - 0x254], ecx
push 0x10046434
lea edx, [ebp - 0x254]
push edx
call sub.MSVCR80.dll__CxxThrowException
jmp 0x1001e4ec
mov esp, ebp
pop ebp
ret