Function at 0x1001fd50
Capabilities:
Get socket status
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov dword [ebp - 0x264], ecx
mov dword [ebp - 0x124], 0
mov eax, dword [ebp - 0x264]
mov ecx, dword [eax + 0x144]
push ecx
call sub.ntdll.dll_strlen
add esp, 4
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x128], 0x3e8
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], 0
mov ecx, dword [ebp - 0x264]
cmp dword [ecx + 0x144], 0
jne 0x1001fdd5
push 0x8c9
push 0x1003c580
push str.SendBuf
call dword [sym.imp.MSVCR80.dll__wassert]
add esp, 0xc
mov eax, dword [ebp - 0x264]
cmp dword [eax + 0x144], 0
jne 0x1001fe0d
push 0x19b
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
cmp dword [ebp - 0x118], 0
jle 0x100201b6
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x234], 0
jmp 0x1001fe49
mov eax, dword [ebp - 0x234]
add eax, 1
mov dword [ebp - 0x234], eax
mov ecx, dword [ebp - 0x234]
cmp ecx, dword [ebp - 0x230]
jae 0x1001fe76
mov edx, dword [ebp - 0x234]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp + edx*4 - 0x22c]
cmp ecx, dword [eax + 0x14c]
jne 0x1001fe74
jmp 0x1001fe76
jmp 0x1001fe3a
mov edx, dword [ebp - 0x234]
cmp edx, dword [ebp - 0x230]
jne 0x1001feb5
cmp dword [ebp - 0x230], 0x40
jae 0x1001feb5
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x264]
mov edx, dword [ecx + 0x14c]
mov dword [ebp + eax*4 - 0x22c], edx
mov eax, dword [ebp - 0x230]
add eax, 1
mov dword [ebp - 0x230], eax
xor ecx, ecx
jne 0x1001fe2e
cmp dword [ebp - 0x114], 0
je 0x1001ff59
mov dword [ebp - 0x238], 0
jmp 0x1001fee5
mov edx, dword [ebp - 0x238]
add edx, 1
mov dword [ebp - 0x238], edx
mov eax, dword [ebp - 0x238]
cmp eax, dword [ebp - 0x110]
jae 0x1001ff12
mov ecx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp + ecx*4 - 0x10c]
cmp eax, dword [edx + 0x14c]
jne 0x1001ff10
jmp 0x1001ff12
jmp 0x1001fed6
mov ecx, dword [ebp - 0x238]
cmp ecx, dword [ebp - 0x110]
jne 0x1001ff51
cmp dword [ebp - 0x110], 0x40
jae 0x1001ff51
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x264]
mov ecx, dword [eax + 0x14c]
mov dword [ebp + edx*4 - 0x10c], ecx
mov edx, dword [ebp - 0x110]
add edx, 1
mov dword [ebp - 0x110], edx
xor eax, eax
jne 0x1001feca
lea ecx, [ebp - 0x120]
push ecx
push 0
lea edx, [ebp - 0x230]
push edx
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x264]
mov edx, dword [ecx + 0x14c]
add edx, 1
push edx
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x1001ffc9
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x110], 0
push 0x6d
lea ecx, [ebp - 0x248]
call fcn.10009f00
mov eax, dword [eax]
mov dword [ebp - 0x244], eax
push 0x10042bf4
lea ecx, [ebp - 0x244]
push ecx
call sub.MSVCR80.dll__CxxThrowException
cmp dword [ebp - 4], 0
jne 0x1002000c
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x110], 0
push 0x192
lea ecx, [ebp - 0x250]
call fcn.10009f00
mov edx, dword [eax]
mov dword [ebp - 0x24c], edx
push 0x10042bf4
lea eax, [ebp - 0x24c]
push eax
call sub.MSVCR80.dll__CxxThrowException
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x264]
mov eax, dword [edx + 0x14c]
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x10020057
cmp dword [ebp - 0x114], 0
je 0x100201b1
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp - 0x264]
mov eax, dword [edx + 0x14c]
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100201b1
mov dword [ebp - 0x114], 0
mov ecx, dword [ebp - 0x118]
push ecx
mov edx, dword [ebp - 0x264]
mov eax, dword [edx + 0x144]
add eax, dword [ebp - 0x124]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.libssl_1_1.dll_SSL_write
add esp, 0xc
mov dword [ebp - 4], eax
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x10020113
mov edx, dword [ebp - 0x128]
sub edx, 1
mov dword [ebp - 0x128], edx
cmp dword [ebp - 0x128], 1
jge 0x10020113
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x268], eax
push 0x8f6
push str...openssl_0.9.8l_srcCSmtp.cpp
call fcn.1001fc90
add esp, 8
push eax
push str._s:_send_context_error.
mov eax, dword [ebp - 0x268]
push eax
mov ecx, dword [ebp - 0x268]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
add esp, 0xc
push 0x66
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 0x100201b6
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.libssl_1_1.dll_SSL_get_error
add esp, 8
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x26c], 0
je 0x10020146
cmp dword [ebp - 0x26c], 2
je 0x10020168
cmp dword [ebp - 0x26c], 3
je 0x10020166
jmp 0x10020174
mov edx, dword [ebp - 0x118]
sub edx, dword [ebp - 4]
mov dword [ebp - 0x118], edx
mov eax, dword [ebp - 0x124]
add eax, dword [ebp - 4]
mov dword [ebp - 0x124], eax
jmp 0x100201b1
jmp 0x100201b1
mov dword [ebp - 0x114], 1
jmp 0x100201b1
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x230], 0
push 0x19e
lea ecx, [ebp - 0x260]
call fcn.10009f00
mov ecx, dword [eax]
mov dword [ebp - 0x25c], ecx
push 0x10042bf4
lea edx, [ebp - 0x25c]
push edx
call sub.MSVCR80.dll__CxxThrowException
jmp 0x1001fe0d
mov eax, dword [ebp - 0x264]
mov ecx, dword [eax + 0x144]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x110], 0
mov esp, ebp
pop ebp
ret 8