Function at 0x1001fda0
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 0x1001fe25
push 0x8d8
push 0x1003ea90
push str.SendBuf
call dword [sym.imp.MSVCR80.dll__wassert]
add esp, 0xc
mov eax, dword [ebp - 0x264]
cmp dword [eax + 0x144], 0
jne 0x1001fe5d
push 0x19b
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
cmp dword [ebp - 0x118], 0
jle 0x10020206
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x234], 0
jmp 0x1001fe99
mov eax, dword [ebp - 0x234]
add eax, 1
mov dword [ebp - 0x234], eax
mov ecx, dword [ebp - 0x234]
cmp ecx, dword [ebp - 0x230]
jae 0x1001fec6
mov edx, dword [ebp - 0x234]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp + edx*4 - 0x22c]
cmp ecx, dword [eax + 0x14c]
jne 0x1001fec4
jmp 0x1001fec6
jmp 0x1001fe8a
mov edx, dword [ebp - 0x234]
cmp edx, dword [ebp - 0x230]
jne 0x1001ff05
cmp dword [ebp - 0x230], 0x40
jae 0x1001ff05
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 0x1001fe7e
cmp dword [ebp - 0x114], 0
je 0x1001ffa9
mov dword [ebp - 0x238], 0
jmp 0x1001ff35
mov edx, dword [ebp - 0x238]
add edx, 1
mov dword [ebp - 0x238], edx
mov eax, dword [ebp - 0x238]
cmp eax, dword [ebp - 0x110]
jae 0x1001ff62
mov ecx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp + ecx*4 - 0x10c]
cmp eax, dword [edx + 0x14c]
jne 0x1001ff60
jmp 0x1001ff62
jmp 0x1001ff26
mov ecx, dword [ebp - 0x238]
cmp ecx, dword [ebp - 0x110]
jne 0x1001ffa1
cmp dword [ebp - 0x110], 0x40
jae 0x1001ffa1
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 0x1001ff1a
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 0x10020019
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x110], 0
push 0x6d
lea ecx, [ebp - 0x248]
call fcn.10007900
mov eax, dword [eax]
mov dword [ebp - 0x244], eax
push 0x10046434
lea ecx, [ebp - 0x244]
push ecx
call sub.MSVCR80.dll__CxxThrowException
cmp dword [ebp - 4], 0
jne 0x1002005c
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x110], 0
push 0x192
lea ecx, [ebp - 0x250]
call fcn.10007900
mov edx, dword [eax]
mov dword [ebp - 0x24c], edx
push 0x10046434
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 0x100200a7
cmp dword [ebp - 0x114], 0
je 0x10020201
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 0x10020201
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 0x10020163
mov edx, dword [ebp - 0x128]
sub edx, 1
mov dword [ebp - 0x128], edx
cmp dword [ebp - 0x128], 1
jge 0x10020163
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x268], eax
push 0x905
push str...openssl_0.9.8l_srcCSmtp.cpp
call fcn.1001fce0
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.10007900
mov ecx, dword [eax]
mov dword [ebp - 0x254], ecx
push 0x10046434
lea edx, [ebp - 0x254]
push edx
call sub.MSVCR80.dll__CxxThrowException
jmp 0x10020206
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 0x10020196
cmp dword [ebp - 0x26c], 2
je 0x100201b8
cmp dword [ebp - 0x26c], 3
je 0x100201b6
jmp 0x100201c4
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 0x10020201
jmp 0x10020201
mov dword [ebp - 0x114], 1
jmp 0x10020201
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x230], 0
push 0x19e
lea ecx, [ebp - 0x260]
call fcn.10007900
mov ecx, dword [eax]
mov dword [ebp - 0x25c], ecx
push 0x10046434
lea edx, [ebp - 0x25c]
push edx
call sub.MSVCR80.dll__CxxThrowException
jmp 0x1001fe5d
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